pythonPackages.pysmi: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:00:11 -04:00 committed by Frederik Rietdijk
parent 52a7cbe5bc
commit 2de9035fca
2 changed files with 29 additions and 22 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, ply
}:
buildPythonPackage rec {
version = "0.0.7";
pname = "pysmi";
src = fetchPypi {
inherit pname version;
sha256 = "05h1lv2a687b9qjc399w6728ildx7majbn338a0c4k3gw6wnv7wr";
};
propagatedBuildInputs = [ ply ];
# Tests require pysnmp, which in turn requires pysmi => infinite recursion
doCheck = false;
meta = with stdenv.lib; {
homepage = http://pysmi.sf.net;
description = "SNMP SMI/MIB Parser";
license = licenses.bsd2;
maintainers = with maintainers; [ koral ];
};
}

View File

@ -3400,28 +3400,7 @@ in {
PyRSS2Gen = callPackage ../development/python-modules/pyrss2gen { };
pysmi = buildPythonPackage rec {
version = "0.0.7";
name = "pysmi-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pysmi/${name}.tar.gz";
sha256 = "05h1lv2a687b9qjc399w6728ildx7majbn338a0c4k3gw6wnv7wr";
};
# Tests require pysnmp, which in turn requires pysmi => infinite recursion
doCheck = false;
propagatedBuildInputs = with self; [ ply ];
meta = {
homepage = http://pysmi.sf.net;
description = "SNMP SMI/MIB Parser";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ koral ];
};
};
pysmi = callPackage ../development/python-modules/pysmi { };
pysnmp = buildPythonPackage rec {
version = "4.3.2";