mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
python3Packages.aqipy-atmotech: migrate to pyproject (#528195)
This commit is contained in:
@@ -3,25 +3,28 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aqipy-atmotech";
|
||||
version = "0.1.5";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "atmotube";
|
||||
repo = "aqipy";
|
||||
rev = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'" ""
|
||||
--replace-fail "'pytest-runner'" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "aqipy" ];
|
||||
@@ -29,7 +32,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Library for AQI calculation";
|
||||
homepage = "https://github.com/atmotube/aqipy";
|
||||
changelog = "https://github.com/atmotube/aqipy/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user