pythonPackages.ipaddr: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 16:12:25 -04:00 committed by Frederik Rietdijk
parent 076857913f
commit b0e0dd399b
2 changed files with 24 additions and 16 deletions

View File

@ -0,0 +1,23 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "ipaddr";
version = "2.1.11";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v";
};
meta = with stdenv.lib; {
description = "Google's IP address manipulation library";
homepage = http://code.google.com/p/ipaddr-py/;
license = licenses.asl20;
};
}

View File

@ -5618,22 +5618,7 @@ in {
ipywidgets = callPackage ../development/python-modules/ipywidgets { };
ipaddr = buildPythonPackage rec {
name = "ipaddr-${version}";
version = "2.1.11";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/i/ipaddr/${name}.tar.gz";
sha256 = "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v";
};
meta = {
description = "Google's IP address manipulation library";
homepage = http://code.google.com/p/ipaddr-py/;
license = licenses.asl20;
};
};
ipaddr = callPackage ../development/python-modules/ipaddr { };
ipaddress = if (pythonAtLeast "3.3") then null else buildPythonPackage rec {
name = "ipaddress-1.0.18";