1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, isPyPy
6, gmp
7, mpfr
8, libmpc
9}:
10
11let
12 pname = "gmpy2";
13 version = "2.1.0b5";
14in
15
16buildPythonPackage {
17 inherit pname version;
18
19 disabled = isPyPy;
20
21 src = fetchFromGitHub {
22 owner = "aleaxit";
23 repo = "gmpy";
24 rev = "gmpy2-${version}";
25 sha256 = "1mqzyp7qwqqyk6jbicgx22svdy2106xwhmhfvdf0vpnmwswcxclb";
26 };
27
28 buildInputs = [ gmp mpfr libmpc ];
29
30 meta = with lib; {
31 description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x";
32 homepage = "https://github.com/aleaxit/gmpy/";
33 license = licenses.gpl3Plus;
34 };
35}