2019-04-09 11:40:00 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPyPy
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
, libmpc
|
|
|
|
}:
|
2018-09-05 23:34:08 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gmpy2";
|
2019-04-09 11:40:00 +02:00
|
|
|
version = "2.1a4";
|
2018-09-05 23:34:08 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2019-04-09 11:40:00 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aleaxit";
|
|
|
|
repo = "gmpy";
|
|
|
|
rev = "gmpy2-${version}";
|
|
|
|
sha256 = "1wg4w4q2l7n26ksrdh4rwqmifgfm32n7x29cgdvmmbv5lmilb5hz";
|
2018-09-05 23:34:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gmp mpfr libmpc ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x";
|
2018-09-18 14:29:48 +02:00
|
|
|
homepage = https://github.com/aleaxit/gmpy/;
|
2018-09-05 23:34:08 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|