mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
pythonPackages.pysnmp: refactor move to python-modules
This commit is contained in:
parent
2de9035fca
commit
64b4bcc014
30
pkgs/development/python-modules/pysnmp/default.nix
Normal file
30
pkgs/development/python-modules/pysnmp/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user