02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
34 lines
758 B
Nix
34 lines
758 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynut2";
|
|
version = "2.1.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mezz64";
|
|
repo = "python-nut2";
|
|
rev = version;
|
|
sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "pynut2.nut2" ];
|
|
|
|
# tests are unmaintained and broken
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|