1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 async-timeout,
6 pysnmp-lextudio,
7 pythonOlder,
8 poetry-core,
9}:
10
11buildPythonPackage rec {
12 pname = "atenpdu";
13 version = "0.6.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-KzRoE4tE/tQkKYroq5PbWKREmEl8AwbIOg3IHRZZtsQ=";
21 };
22
23 nativeBuildInputs = [ poetry-core ];
24
25 propagatedBuildInputs = [
26 async-timeout
27 pysnmp-lextudio
28 ];
29
30 # Module has no test
31 doCheck = false;
32
33 pythonImportsCheck = [ "atenpdu" ];
34
35 meta = with lib; {
36 description = "Python interface to control ATEN PE PDUs";
37 mainProgram = "pductl";
38 homepage = "https://github.com/mtdcr/pductl";
39 changelog = "https://github.com/mtdcr/pductl/releases/tag/${version}";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}