git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.gmpy2: backport upstream bugfixes (#59987)
commit41d594b44828544f26f98792ea8e600addda195d authorTimo Kaufmann <timokau@zoho.com> dateMon 22 Apr 2019, 00:09 (8 years ago) parent5ba8811
1 file changed+12
pkgs/development/python-modules/gmpy2/default.nix+12
pkgs/development/python-modules/gmpy2/default.nix+12
@@ -1,6 +1,7 @@
11{ stdenv
22, buildPythonPackage
33, fetchFromGitHub
4+, fetchpatch
45, isPyPy
56, gmp
67, mpfr
@@ -24,6 +25,17 @@ buildPythonPackage {
2425 sha256 = "1wg4w4q2l7n26ksrdh4rwqmifgfm32n7x29cgdvmmbv5lmilb5hz";
2526 };
2627
28+ patches = [
29+ # Backport of two bugfixes (including a segfault):
30+ # https://github.com/aleaxit/gmpy/pull/217
31+ # https://github.com/aleaxit/gmpy/pull/218
32+ (fetchpatch {
33+ name = "bugfixes.patch";
34+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/gmpy2/patches/PR217_PR218_conversion_methods.patch?id=b7fbb9a4dac5d6882f6b83a57447dd79ecafb84c";
35+ sha256 = "1x3gwvqac36k4ypclxq37fcvi6p790k4xdpm2bj2b3xsvjb80ycz";
36+ })
37+ ];
38+
2739 buildInputs = [ gmp mpfr libmpc ];
2840
2941 meta = with stdenv.lib; {