pkgs/development/python-modules: stdenv.lib -> lib
This commit is contained in:
@@ -16,12 +16,12 @@ let
|
||||
++ [ "reimport_from_subinterpreter" ]
|
||||
# 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" ]
|
||||
++ 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" ]
|
||||
++ stdenv.lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
|
||||
++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
|
||||
++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
|
||||
;
|
||||
|
||||
in buildPythonPackage rec {
|
||||
@@ -55,7 +55,7 @@ in buildPythonPackage rec {
|
||||
export HOME="$NIX_BUILD_TOP"
|
||||
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
||||
--no-code-style \
|
||||
${stdenv.lib.optionalString (builtins.length excludedTests != 0)
|
||||
${lib.optionalString (builtins.length excludedTests != 0)
|
||||
''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user