14 excludedTests = [ "reimport_from_subinterpreter" ]
15 # cython's testsuite is not working very well with libc++
16 # We are however optimistic about things outside of testsuite still working
17 ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
18 # Some tests in the test suite isn't working on aarch64. Disable them for
19 # now until upstream finds a workaround.
20 # Upstream issue here: https://github.com/cython/cython/issues/2308
21 ++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
22 ++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
25 in buildPythonPackage rec {
33 hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM=";
45 env.LC_ALL = "en_US.UTF-8";
48 export HOME="$NIX_BUILD_TOP"
49 ${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
51 ${lib.optionalString (builtins.length excludedTests != 0)
52 ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
55 # https://github.com/cython/cython/issues/2785
58 # doCheck = !stdenv.isDarwin;
60 # force regeneration of generated code in source distributions
61 # https://github.com/cython/cython/issues/5089
62 setupHook = ./setup-hook.sh;
65 changelog = "https://github.com/cython/cython/blob/${version}/CHANGES.rst";
66 description = "An optimising static compiler for both the Python programming language and the extended Cython programming language";
67 homepage = "https://cython.org";
68 license = lib.licenses.asl20;
69 maintainers = with lib.maintainers; [ fridh ];