git.iko.soy/typeable/nixpkgs
on master help sign in
cysignals: import patch to fix intermittent sage test
commita2967199a432a0a79921a8a66894388811e26fd2 authorMauricio Collares <mauricio@collares.org> dateSat 6 Mar 2021, 23:12 (6 years ago) parentedc78bb
1 file changed+11
pkgs/development/python-modules/cysignals/default.nix+11
pkgs/development/python-modules/cysignals/default.nix+11
@@ -1,4 +1,5 @@
11{ lib
2+, fetchpatch
23, fetchPypi
34, buildPythonPackage
45, cython
@@ -16,6 +17,16 @@ buildPythonPackage rec {
1617 sha256 = "1ckxzch3wk5cg80mppky5jib5z4fzslny3001r5zg4ar1ixbc1w1";
1718 };
1819
20+ patches = [
21+ # fixes intermittent crashes in Sage tests (including in interfaces/singular.py)
22+ # will be included in cysignals 1.10.3: https://github.com/sagemath/cysignals/pull/127
23+ (fetchpatch {
24+ name = "fix-verify_exc_value.patch";
25+ url = "https://github.com/sagemath/cysignals/commit/49a7eee4bba3ab8f340cf56c371fa4f5ed702dcc.patch";
26+ sha256 = "sha256-Pfc5tL9VDSP6ftDoHoIb+MDi5rjYqr0PRfIajFuuYVs=";
27+ })
28+ ];
29+
1930 # explicit check:
2031 # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
2132 hardeningDisable = [