mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
50 lines
979 B
Nix
50 lines
979 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pycryptodomex
|
|
, pysnmp-pyasn1
|
|
, pysnmp-pysmi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysnmplib";
|
|
version = "5.0.20";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pysnmp";
|
|
repo = "pysnmp";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SrtOn9zETtobT6nMVHLi6hP7VZGBvXvFzoThTi3ITag=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pysnmp-pysmi
|
|
pysnmp-pyasn1
|
|
pycryptodomex
|
|
];
|
|
|
|
# Module has no test, examples are used for testing
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pysnmp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of v1/v2c/v3 SNMP engine";
|
|
homepage = "https://github.com/pysnmp/pysnmp";
|
|
changelog = "https://github.com/pysnmp/pysnmp/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|