3
0
Fork 0
forked from mirrors/nixpkgs

python.pkgs.gmpy2: backport upstream bugfixes (#59987)

This commit is contained in:
Timo Kaufmann 2019-04-22 00:09:33 +02:00 committed by GitHub
parent 5ba8811758
commit 41d594b448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, isPyPy
, gmp
, mpfr
@ -24,6 +25,17 @@ buildPythonPackage {
sha256 = "1wg4w4q2l7n26ksrdh4rwqmifgfm32n7x29cgdvmmbv5lmilb5hz";
};
patches = [
# Backport of two bugfixes (including a segfault):
# https://github.com/aleaxit/gmpy/pull/217
# https://github.com/aleaxit/gmpy/pull/218
(fetchpatch {
name = "bugfixes.patch";
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/gmpy2/patches/PR217_PR218_conversion_methods.patch?id=b7fbb9a4dac5d6882f6b83a57447dd79ecafb84c";
sha256 = "1x3gwvqac36k4ypclxq37fcvi6p790k4xdpm2bj2b3xsvjb80ycz";
})
];
buildInputs = [ gmp mpfr libmpc ];
meta = with stdenv.lib; {