mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-28 08:00:17 +02:00
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:
parent
256a3735ec
commit
a2407280d7
|
@ -2,6 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, python
|
, python
|
||||||
, glibcLocales
|
, glibcLocales
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
@ -41,6 +42,15 @@ in buildPythonPackage rec {
|
||||||
buildInputs = [ glibcLocales gdb ];
|
buildInputs = [ glibcLocales gdb ];
|
||||||
LC_ALL = "en_US.UTF-8";
|
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 = ''
|
checkPhase = ''
|
||||||
export HOME="$NIX_BUILD_TOP"
|
export HOME="$NIX_BUILD_TOP"
|
||||||
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
||||||
|
|
Loading…
Reference in a new issue