blob: 2a02a9898fb3565e2df1ee476e83a05494ec8818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
standard-telnetlib,
setuptools,
}:
buildPythonPackage rec {
pname = "pynut2";
version = "2.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mezz64";
repo = "python-nut2";
rev = version;
sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx";
};
build-system = [ setuptools ];
dependencies = [
requests
standard-telnetlib
];
pythonImportsCheck = [ "pynut2.nut2" ];
# tests are unmaintained and broken
doCheck = false;
meta = {
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 lib.licenses; [ gpl3Plus ];
maintainers = [ lib.maintainers.luker ];
};
}
|