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

36 lines
613 B
Nix
Raw Normal View History

{ lib
2019-04-09 10:40:00 +01:00
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
2019-04-09 10:40:00 +01: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 10:40:00 +01: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 lib; {
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x";
homepage = "https://github.com/aleaxit/gmpy/";
license = licenses.gpl3Plus;
};
}