My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/gmpy2/default.nix

36 lines
634 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPyPy
, gmp
, mpfr
, libmpc
}:
let
pname = "gmpy2";
version = "2.1.2";
in
buildPythonPackage {
inherit pname version;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "aleaxit";
repo = "gmpy";
rev = "gmpy2-${version}";
sha256 = "sha256-ARCttNzRA+Ji2j2NYaSCDXgvoEg01T9BnYadyqON2o0=";
};
buildInputs = [ gmp mpfr libmpc ];
pythonImportsCheck = [ "gmpy2" ];
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;
};
}