python3Packages.apcaccess: init at 0.0.13
This commit is contained in:
parent
f00a3308d1
commit
231cfadcd7
37
pkgs/development/python-modules/apcaccess/default.nix
Normal file
37
pkgs/development/python-modules/apcaccess/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user