pythonPackages.pysnmp: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:01:49 -04:00 committed by Frederik Rietdijk
parent 2de9035fca
commit 64b4bcc014
2 changed files with 31 additions and 22 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pyasn1
, pycrypto
, pysmi
}:
buildPythonPackage rec {
version = "4.3.2";
pname = "pysnmp";
src = fetchPypi {
inherit pname version;
sha256 = "0xw925f3p02vdpb3f0ls60qj59w44aiyfs3s0nhdr9vsy4fxhavw";
};
# NameError: name 'mibBuilder' is not defined
doCheck = false;
propagatedBuildInputs = [ pyasn1 pycrypto pysmi ];
meta = with stdenv.lib; {
homepage = http://pysnmp.sf.net;
description = "A pure-Python SNMPv1/v2c/v3 library";
license = licenses.bsd2;
maintainers = with maintainers; [ koral ];
};
}

View File

@ -3402,28 +3402,7 @@ in {
pysmi = callPackage ../development/python-modules/pysmi { };
pysnmp = buildPythonPackage rec {
version = "4.3.2";
name = "pysnmp-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pysnmp/${name}.tar.gz";
sha256 = "0xw925f3p02vdpb3f0ls60qj59w44aiyfs3s0nhdr9vsy4fxhavw";
};
# NameError: name 'mibBuilder' is not defined
doCheck = false;
propagatedBuildInputs = with self; [ pyasn1 pycrypto pysmi ];
meta = {
homepage = http://pysnmp.sf.net;
description = "A pure-Python SNMPv1/v2c/v3 library";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ koral ];
};
};
pysnmp = callPackage ../development/python-modules/pysnmp { };
pysocks = buildPythonPackage rec {
name = "pysocks-${version}";