Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 574 B view raw
1{ stdenv, buildPythonPackage, fetchurl, isPyPy, gmp, mpfr, libmpc } : 2 3let 4 pname = "gmpy2"; 5 version = "2.0.8"; 6in 7 8buildPythonPackage { 9 inherit pname version; 10 11 disabled = isPyPy; 12 13 src = fetchurl { 14 url = "mirror://pypi/g/gmpy2/${pname}-${version}.zip"; 15 sha256 = "0grx6zmi99iaslm07w6c2aqpnmbkgrxcqjrqpfq223xri0r3w8yx"; 16 }; 17 18 buildInputs = [ gmp mpfr libmpc ]; 19 20 meta = with stdenv.lib; { 21 description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x"; 22 homepage = https://github.com/aleaxit/gmpy/; 23 license = licenses.gpl3Plus; 24 }; 25}