Merge pull request #142330 from uvNikita/py3-apcaccess/init

python3Packages.apcaccess: init at 0.0.13
This commit is contained in:
Fabian Affolter 2021-10-21 13:19:09 +02:00 committed by GitHub
commit 19a363fd6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 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

@ -42,7 +42,7 @@
"anel_pwrctrl" = ps: with ps; [ ]; # missing inputs: anel_pwrctrl-homeassistant
"anthemav" = ps: with ps; [ ]; # missing inputs: anthemav
"apache_kafka" = ps: with ps; [ aiokafka ];
"apcupsd" = ps: with ps; [ ]; # missing inputs: apcaccess
"apcupsd" = ps: with ps; [ apcaccess ];
"api" = ps: with ps; [ aiohttp-cors ];
"apns" = ps: with ps; [ ]; # missing inputs: apns2
"apple_tv" = ps: with ps; [ pyatv ];

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 { };