1 { buildPythonPackage, fetchurl, isPyPy, gmp, pythonAtLeast } :
10 inherit pname version;
12 # Python 3.11 has finally made changes to its C API for which gmpy 1.17,
13 # published in 2013, would require patching. It seems unlikely that any
14 # patches will be forthcoming.
15 disabled = isPyPy || pythonAtLeast "3.11";
18 url = "mirror://pypi/g/gmpy/${pname}-${version}.zip";
19 sha256 = "1a79118a5332b40aba6aa24b051ead3a31b9b3b9642288934da754515da8fa14";
22 buildInputs = [ gmp ];
25 description = "GMP or MPIR interface to Python 2.4+ and 3.x";
26 homepage = "https://github.com/aleaxit/gmpy/";