2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-04-09 10:40:00 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-04-21 23:09:33 +01:00
|
|
|
, fetchpatch
|
2019-04-09 10:40:00 +01:00
|
|
|
, isPyPy
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
, libmpc
|
|
|
|
}:
|
2018-09-05 22:34:08 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gmpy2";
|
2020-11-30 13:02:34 +00:00
|
|
|
version = "2.1.0b5";
|
2018-09-05 22:34:08 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2019-04-09 10:40:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aleaxit";
|
|
|
|
repo = "gmpy";
|
|
|
|
rev = "gmpy2-${version}";
|
2020-11-30 13:02:34 +00:00
|
|
|
sha256 = "1mqzyp7qwqqyk6jbicgx22svdy2106xwhmhfvdf0vpnmwswcxclb";
|
2018-09-05 22:34:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gmp mpfr libmpc ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-05 22:34:08 +01:00
|
|
|
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aleaxit/gmpy/";
|
2018-09-05 22:34:08 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|