|
|
|
@ -59,16 +59,6 @@ buildPythonPackage rec { |
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/39687 |
|
|
|
|
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; |
|
|
|
|
|
|
|
|
|
# For OSX, we need to add a dependency on libcxx, which provides |
|
|
|
|
# `complex.h` and other libraries that pandas depends on to build. |
|
|
|
|
postPatch = lib.optionalString stdenv.isDarwin '' |
|
|
|
|
cpp_sdk="${lib.getDev libcxx}/include/c++/v1"; |
|
|
|
|
echo "Adding $cpp_sdk to the setup.py common_include variable" |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
--replace "['pandas/src/klib', 'pandas/src']" \ |
|
|
|
|
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
doCheck = !stdenv.isAarch32 && !stdenv.isAarch64; # upstream doesn't test this architecture |
|
|
|
|
|
|
|
|
|
# don't max out build cores, it breaks tests |
|
|
|
|