blob: f60b281112cd5751629b288b6f802cc1ca8aa5a7 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchPypi,
async-timeout,
pysnmp,
pythonOlder,
poetry-core,
}:
buildPythonPackage rec {
pname = "atenpdu";
version = "0.6.2";
pyproject = true;
disabled = pythonOlder "3.";
src = fetchPypi {
inherit pname version;
hash = "sha256-KzRoE4tE/tQkKYroq5PbWKREmEl8AwbIOg3IHRZZtsQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail pysnmp-lextudio pysnmp
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
async-timeout
pysnmp
];
# Module has no test
doCheck = false;
pythonImportsCheck = [ "atenpdu" ];
meta = with lib; {
description = "Python interface to control ATEN PE PDUs";
mainProgram = "pductl";
homepage = "https://github.com/mtdcr/pductl";
changelog = "https://github.com/mtdcr/pductl/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|