2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pyasn1,
|
|
|
|
pycryptodomex,
|
|
|
|
pysmi,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysnmp";
|
|
|
|
version = "4.4.12";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ];
|
|
|
|
|
|
|
|
# NameError: name 'mibBuilder' is not defined
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
|
|
|
pycryptodomex
|
|
|
|
pysmi
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://snmplabs.com/pysnmp/index.html";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Pure-Python SNMPv1/v2c/v3 library";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
primeos
|
|
|
|
koral
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|