2018-10-26 16:01:49 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyasn1
|
2019-01-03 21:36:30 +00:00
|
|
|
, pycryptodomex
|
2018-10-26 16:01:49 +01:00
|
|
|
, pysmi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysnmp";
|
2019-09-26 21:56:57 +01:00
|
|
|
version = "4.4.12";
|
2018-10-26 16:01:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-26 21:56:57 +01:00
|
|
|
sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c";
|
2018-10-26 16:01:49 +01:00
|
|
|
};
|
|
|
|
|
2019-11-01 17:51:46 +00:00
|
|
|
patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ];
|
|
|
|
|
2018-10-26 16:01:49 +01:00
|
|
|
# NameError: name 'mibBuilder' is not defined
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-01-03 21:36:30 +00:00
|
|
|
propagatedBuildInputs = [ pyasn1 pycryptodomex pysmi ];
|
2018-10-26 16:01:49 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://snmplabs.com/pysnmp/index.html";
|
2018-10-26 16:01:49 +01:00
|
|
|
description = "A pure-Python SNMPv1/v2c/v3 library";
|
|
|
|
license = licenses.bsd2;
|
2019-02-09 22:36:51 +00:00
|
|
|
maintainers = with maintainers; [ primeos koral ];
|
2018-10-26 16:01:49 +01:00
|
|
|
};
|
|
|
|
}
|