nixpkgs/pkgs/development/python-modules/gmpy2/default.nix

36 lines
623 B
Nix
Raw Normal View History

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