pynac: import segfault fix

+11
+11
pkgs/applications/science/math/pynac/default.nix
··· 1 1 { lib, stdenv 2 + , fetchpatch 2 3 , fetchFromGitHub 3 4 , autoreconfHook 4 5 , pkg-config ··· 19 20 rev = "pynac-${version}"; 20 21 sha256 = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A="; 21 22 }; 23 + 24 + patches = [ 25 + # the patch below is included in sage 9.4 and should be included 26 + # in a future pynac release. see https://trac.sagemath.org/ticket/28357 27 + (fetchpatch { 28 + name = "realpartloop.patch"; 29 + url = "https://git.sagemath.org/sage.git/plain/build/pkgs/pynac/patches/realpartloop.patch?h=9.4.beta5"; 30 + sha256 = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4="; 31 + }) 32 + ]; 22 33 23 34 buildInputs = [ 24 35 flint