2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
requests,
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynut2";
|
|
|
|
version = "2.1.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mezz64";
|
|
|
|
repo = "python-nut2";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pynut2.nut2" ];
|
|
|
|
|
|
|
|
# tests are unmaintained and broken
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "API overhaul of PyNUT, a Python library to allow communication with NUT (Network UPS Tools) servers";
|
2022-01-19 23:45:15 +00:00
|
|
|
homepage = "https://github.com/mezz64/python-nut2";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = [ maintainers.luker ];
|
|
|
|
};
|
|
|
|
}
|