python3Packages.aqipy-atmotech: modernize
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user