gmpy: move outside python-packages.nix

This commit is contained in:
Florian Klink 2018-09-05 23:33:42 +02:00
parent f051f66c9a
commit 7339a4004c
2 changed files with 25 additions and 19 deletions

View File

@ -0,0 +1,24 @@
{ buildPythonPackage, fetchurl, isPyPy, gmp } :
let
pname = "gmpy";
version = "1.17";
in
buildPythonPackage {
inherit pname version;
disabled = isPyPy;
src = fetchurl {
url = "mirror://pypi/g/gmpy/${pname}-${version}.zip";
sha256 = "1a79118a5332b40aba6aa24b051ead3a31b9b3b9642288934da754515da8fa14";
};
buildInputs = [ gmp ];
meta = {
description = "GMP or MPIR interface to Python 2.4+ and 3.x";
homepage = http://code.google.com/p/gmpy/;
};
}

View File

@ -2624,25 +2624,7 @@ in {
GeoIP = callPackage ../development/python-modules/GeoIP { }; GeoIP = callPackage ../development/python-modules/GeoIP { };
gmpy = buildPythonPackage rec { gmpy = callPackage ../development/python-modules/gmpy { };
name = "gmpy-1.17";
disabled = isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/g/gmpy/${name}.zip";
sha256 = "1a79118a5332b40aba6aa24b051ead3a31b9b3b9642288934da754515da8fa14";
};
buildInputs = [
pkgs.gcc
pkgs.gmp
];
meta = {
description = "GMP or MPIR interface to Python 2.4+ and 3.x";
homepage = http://code.google.com/p/gmpy/;
};
};
gmpy2 = buildPythonPackage rec { gmpy2 = buildPythonPackage rec {
name = "gmpy2-2.0.6"; name = "gmpy2-2.0.6";