python.pkgs.Cython: backport fix for non-int hashes

https://github.com/cython/cython/issues/2752 has already been accepted
upstream, is minimally invasive (only adds a feature, shouldn't break
any existing code) and is needed for the sage python3 update. Sage needs
this capability because it defines its own integer type.
This commit is contained in:
Timo Kaufmann 2019-11-27 23:55:34 +01:00 committed by Frederik Rietdijk
parent 256a3735ec
commit a2407280d7

View file

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch
, python
, glibcLocales
, pkgconfig
@ -41,6 +42,15 @@ in buildPythonPackage rec {
buildInputs = [ glibcLocales gdb ];
LC_ALL = "en_US.UTF-8";
patches = [
# https://github.com/cython/cython/issues/2752, needed by sage (https://trac.sagemath.org/ticket/26855) and up to be included in 0.30
(fetchpatch {
name = "non-int-conversion-to-pyhash.patch";
url = "https://github.com/cython/cython/commit/28251032f86c266065e4976080230481b1a1bb29.patch";
sha256 = "19rg7xs8gr90k3ya5c634bs8gww1sxyhdavv07cyd2k71afr83gy";
})
];
checkPhase = ''
export HOME="$NIX_BUILD_TOP"
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \