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