Files
nixpkgs/pkgs/development/python-modules/atenpdu/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
888 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
async-timeout,
pysnmp,
pythonOlder,
poetry-core,
}:
buildPythonPackage rec {
pname = "atenpdu";
version = "0.6.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-BcCw5y5LB0jLp9dRP0ZsAObTZ07kS+h+Hm8PZ0NwU3E=";
};
build-system = [ poetry-core ];
dependencies = [
async-timeout
pysnmp
];
# Module has no test
doCheck = false;
pythonImportsCheck = [ "atenpdu" ];
meta = with lib; {
description = "Python interface to control ATEN PE PDUs";
homepage = "https://github.com/mtdcr/pductl";
changelog = "https://github.com/mtdcr/pductl/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "pductl";
broken = versionAtLeast pysnmp.version "7";
};
}