Merge pull request #145204 from LucaFulchir/pynut2

This commit is contained in:
Sandro
2022-01-19 16:36:39 +01:00
committed by GitHub
4 changed files with 45 additions and 1 deletions
+6
View File
@@ -7170,6 +7170,12 @@
githubId = 13791;
name = "Luke Gorrie";
};
luker = {
email = "luker@fenrirproject.org";
github = "LucaFulchir";
githubId = 2486026;
name = "Luca Fulchir";
};
lumi = {
email = "lumi@pew.im";
github = "lumi-me-not";
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
#, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pynut2";
version = "2.1.2";
src = fetchFromGitHub {
owner = "mezz64";
repo = "python-nut2";
rev = version;
sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx";
};
propagatedBuildInputs = [
requests
];
# tests are completely broken, wrong imports and old api
#checkInputs = [
# pytestCheckHook
#];
pythonImportsCheck = [ "pynut2.nut2" ];
meta = with lib; {
description = "API overhaul of PyNUT, a Python library to allow communication with NUT (Network UPS Tools) servers.";
homepage = "https://github.com/mezz64/python-nut2";
license = with licenses; [ gpl3Plus ];
maintainers = [ maintainers.luker ];
};
}
@@ -589,7 +589,7 @@
"nuki" = ps: with ps; [ pynuki ];
"numato" = ps: with ps; [ ]; # missing inputs: numato-gpio
"number" = ps: with ps; [ ];
"nut" = ps: with ps; [ ]; # missing inputs: pynut2
"nut" = ps: with ps; [ pynut2 ];
"nws" = ps: with ps; [ pynws ];
"nx584" = ps: with ps; [ pynx584 ];
"nzbget" = ps: with ps; [ ]; # missing inputs: pynzbgetapi
+2
View File
@@ -6052,6 +6052,8 @@ in {
pynuki = callPackage ../development/python-modules/pynuki { };
pynut2 = callPackage ../development/python-modules/pynut2 { };
pynws = callPackage ../development/python-modules/pynws { };
pynx584 = callPackage ../development/python-modules/pynx584 { };