depot/third_party/nixpkgs/pkgs/development/python-modules/gmpy2/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

35 lines
621 B
Nix

{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, isPyPy
, gmp
, mpfr
, libmpc
}:
let
pname = "gmpy2";
version = "2.1.0b5";
in
buildPythonPackage {
inherit pname version;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "aleaxit";
repo = "gmpy";
rev = "gmpy2-${version}";
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;
};
}