python3Packages.apcaccess: init at 0.0.13

conduit-nginx
Nikita Uvarov 2021-10-20 12:41:34 +02:00
parent f00a3308d1
commit 231cfadcd7
No known key found for this signature in database
GPG Key ID: D3C4D7873B85C975
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "apcaccess";
version = "0.0.13";
src = fetchFromGitHub {
owner = "flyte";
repo = "apcaccess";
rev = version;
sha256 = "sha256-XLoNRh6MgXCfRtWD9NpVZSyroW6E9nRYw6Grxa+AQkc=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "setup_requires='pytest-runner'," ""
'';
pythonImportsCheck = [
"apcaccess"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Library offers programmatic access to the status information provided by apcupsd over its Network Information Server";
homepage = "https://github.com/flyte/apcaccess";
license = licenses.mit;
maintainers = with maintainers; [ uvnikita ];
};
}

View File

@ -511,6 +511,8 @@ in {
apache-airflow = callPackage ../development/python-modules/apache-airflow { };
apcaccess = callPackage ../development/python-modules/apcaccess { };
apipkg = callPackage ../development/python-modules/apipkg { };
apispec = callPackage ../development/python-modules/apispec { };