Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pynut2 / default.nix
blob4c56cdff0de8a2846214f2eb4e963c12b9045205
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 }:
7 buildPythonPackage rec {
8   pname = "pynut2";
9   version = "2.1.2";
10   format = "setuptools";
12   src = fetchFromGitHub {
13     owner = "mezz64";
14     repo = "python-nut2";
15     rev = version;
16     sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx";
17   };
19   propagatedBuildInputs = [
20     requests
21   ];
23   pythonImportsCheck = [ "pynut2.nut2" ];
25   # tests are unmaintained and broken
26   doCheck = false;
28   meta = with lib; {
29     description = "API overhaul of PyNUT, a Python library to allow communication with NUT (Network UPS Tools) servers.";
30     homepage = "https://github.com/mezz64/python-nut2";
31     license = with licenses; [ gpl3Plus ];
32     maintainers = [ maintainers.luker ];
33   };