bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
40 lines
747 B
Nix
40 lines
747 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pyasn1,
|
|
pycryptodomex,
|
|
pysmi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysnmp";
|
|
version = "4.4.12";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c";
|
|
};
|
|
|
|
patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ];
|
|
|
|
# NameError: name 'mibBuilder' is not defined
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [
|
|
pyasn1
|
|
pycryptodomex
|
|
pysmi
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://snmplabs.com/pysnmp/index.html";
|
|
description = "Pure-Python SNMPv1/v2c/v3 library";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [
|
|
primeos
|
|
koral
|
|
];
|
|
};
|
|
}
|