Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 733 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5}: 6 7buildPythonPackage rec { 8 pname = "pynut2"; 9 version = "2.1.2"; 10 11 src = fetchFromGitHub { 12 owner = "mezz64"; 13 repo = "python-nut2"; 14 rev = version; 15 sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx"; 16 }; 17 18 propagatedBuildInputs = [ 19 requests 20 ]; 21 22 pythonImportsCheck = [ "pynut2.nut2" ]; 23 24 # tests are unmaintained and broken 25 doCheck = false; 26 27 meta = with lib; { 28 description = "API overhaul of PyNUT, a Python library to allow communication with NUT (Network UPS Tools) servers."; 29 homepage = "https://github.com/mezz64/python-nut2"; 30 license = with licenses; [ gpl3Plus ]; 31 maintainers = [ maintainers.luker ]; 32 }; 33}