diff --git a/pkgs/development/python-modules/gmpy/default.nix b/pkgs/development/python-modules/gmpy/default.nix index c0522587724..9a2957fa23d 100644 --- a/pkgs/development/python-modules/gmpy/default.nix +++ b/pkgs/development/python-modules/gmpy/default.nix @@ -1,4 +1,4 @@ -{ buildPythonPackage, fetchurl, isPyPy, gmp } : +{ buildPythonPackage, fetchurl, isPyPy, gmp, pythonAtLeast } : let pname = "gmpy"; @@ -8,7 +8,10 @@ in buildPythonPackage { inherit pname version; - disabled = isPyPy; + # Python 3.11 has finally made changes to its C API for which gmpy 1.17, + # published in 2013, would require patching. It seems unlikely that any + # patches will be forthcoming. + disabled = isPyPy || pythonAtLeast "3.11"; src = fetchurl { url = "mirror://pypi/g/gmpy/${pname}-${version}.zip";