summary refs log tree commit diff
path: root/pkgs/development/python-modules/Cython
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-06-07 10:50:58 +0200
committerRobert Schütz <rschuetz17@gmail.com>2018-06-07 10:50:58 +0200
commitdf92030a3257b4fd75db5e001da72150b4fb5f65 (patch)
tree171860f8cb4c7c7cc3226f78e717bbb5f6ec190b /pkgs/development/python-modules/Cython
parentf0cc913df386af6586faa6d167bf65f716033d91 (diff)
downloadnixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar.gz
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar.bz2
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar.lz
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar.xz
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.tar.zst
nixlib-df92030a3257b4fd75db5e001da72150b4fb5f65.zip
python36Packages.cython: Disable the "test_coerce_to_numpy" test on aarch64 (#41453)
Diffstat (limited to 'pkgs/development/python-modules/Cython')
-rw-r--r--pkgs/development/python-modules/Cython/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/Cython/default.nix b/pkgs/development/python-modules/Cython/default.nix
index a9488b540e28..948f8e700acb 100644
--- a/pkgs/development/python-modules/Cython/default.nix
+++ b/pkgs/development/python-modules/Cython/default.nix
@@ -11,7 +11,18 @@
 , ncurses
 }:
 
-buildPythonPackage rec {
+let
+  excludedTests = []
+    # cython's testsuite is not working very well with libc++
+    # We are however optimistic about things outside of testsuite still working
+    ++ stdenv.lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
+    # Some tests in the test suite isn't working on aarch64. Disable them for
+    # now until upstream finds a workaround.
+    # Upstream issue here: https://github.com/cython/cython/issues/2308
+    ++ stdenv.lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
+  ;
+
+in buildPythonPackage rec {
   pname = "Cython";
   version = "0.28.2";
 
@@ -29,12 +40,11 @@ buildPythonPackage rec {
   buildInputs = [ glibcLocales gdb ];
   LC_ALL = "en_US.UTF-8";
 
-  # cython's testsuite is not working very well with libc++
-  # We are however optimistic about things outside of testsuite still working
   checkPhase = ''
     export HOME="$NIX_BUILD_TOP"
     ${python.interpreter} runtests.py \
-      ${if stdenv.cc.isClang or false then ''--exclude="(cpdef_extern_func|libcpp_algo)"'' else ""}
+      ${stdenv.lib.optionalString (builtins.length excludedTests != 0)
+        ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
   '';
 
   meta = {