2021-01-21 22:55:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2022-09-16 22:39:44 +00:00
|
|
|
async-timeout,
|
2024-09-01 13:31:24 +00:00
|
|
|
pysnmp,
|
2022-09-20 20:25:54 +00:00
|
|
|
pythonOlder,
|
2024-03-17 06:32:45 +00:00
|
|
|
poetry-core,
|
2021-01-21 22:55:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "atenpdu";
|
2024-10-09 18:09:20 +00:00
|
|
|
version = "0.6.3";
|
2024-03-17 06:32:45 +00:00
|
|
|
pyproject = true;
|
2022-09-20 20:25:54 +00:00
|
|
|
|
2024-10-09 18:09:20 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-21 22:55:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-09 18:09:20 +00:00
|
|
|
hash = "sha256-BcCw5y5LB0jLp9dRP0ZsAObTZ07kS+h+Hm8PZ0NwU3E=";
|
2021-01-21 22:55:34 +00:00
|
|
|
};
|
|
|
|
|
2024-10-09 18:09:20 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-09-01 13:31:24 +00:00
|
|
|
|
2024-10-09 18:09:20 +00:00
|
|
|
dependencies = [
|
2022-09-16 22:39:44 +00:00
|
|
|
async-timeout
|
2024-09-01 13:31:24 +00:00
|
|
|
pysnmp
|
2022-09-16 22:39:44 +00:00
|
|
|
];
|
2021-01-21 22:55:34 +00:00
|
|
|
|
2024-03-17 06:32:45 +00:00
|
|
|
# Module has no test
|
2021-01-21 22:55:34 +00:00
|
|
|
doCheck = false;
|
2022-09-20 20:25:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "atenpdu" ];
|
2021-01-21 22:55:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to control ATEN PE PDUs";
|
|
|
|
homepage = "https://github.com/mtdcr/pductl";
|
2024-03-17 06:32:45 +00:00
|
|
|
changelog = "https://github.com/mtdcr/pductl/releases/tag/${version}";
|
2024-10-09 18:09:20 +00:00
|
|
|
license = licenses.mit;
|
2021-01-21 22:55:34 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-10-09 18:09:20 +00:00
|
|
|
mainProgram = "pductl";
|
2021-01-21 22:55:34 +00:00
|
|
|
};
|
|
|
|
}
|