python3Packages.aqipy-atmotech: modernize

This commit is contained in:
Harinn
2026-06-04 19:46:36 +07:00
parent 01ba858c14
commit ebde39a6a0
@@ -6,7 +6,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aqipy-atmotech";
version = "0.1.5";
pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "atmotube";
repo = "aqipy";
rev = version;
tag = finalAttrs.version;
hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
};
@@ -24,7 +24,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
--replace-fail "'pytest-runner'" ""
'';
pythonImportsCheck = [ "aqipy" ];
@@ -35,4 +35,4 @@ buildPythonPackage rec {
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})