mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
darwin purity: pythonPackages.pandas
This commit is contained in:
parent
95388b6500
commit
58b862b750
|
@ -68,6 +68,8 @@ let
|
||||||
done
|
done
|
||||||
'' + optionalString stdenv.isDarwin ''
|
'' + optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
|
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
|
||||||
|
substituteInPlace Lib/multiprocessing/__init__.py \
|
||||||
|
--replace 'os.popen(comm)' 'os.popen("nproc")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -95,11 +97,7 @@ let
|
||||||
] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
|
] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
|
||||||
)
|
)
|
||||||
++ optional zlibSupport zlib
|
++ optional zlibSupport zlib
|
||||||
|
++ optionals stdenv.isDarwin [ CF configd ];
|
||||||
# depend on CF and configd only if purity is an issue
|
|
||||||
# the impure bootstrap compiler can't build CoreFoundation currently. it requires
|
|
||||||
# <mach-o/dyld.h> which is in our pure bootstrapTools, but not in the system headers.
|
|
||||||
++ optionals (stdenv.isDarwin && !stdenv.cc.nativeLibc) [ CF configd ];
|
|
||||||
|
|
||||||
# Build the basic Python interpreter without modules that have
|
# Build the basic Python interpreter without modules that have
|
||||||
# external dependencies.
|
# external dependencies.
|
||||||
|
|
|
@ -5677,6 +5677,9 @@ let
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ argh pathtools pyyaml ];
|
propagatedBuildInputs = with self; [ argh pathtools pyyaml ];
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin
|
||||||
|
[ pkgs.darwin.apple_sdk.frameworks.CoreServices pkgs.darwin.cf-private ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
|
@ -11836,6 +11839,11 @@ let
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "['pandas/src/klib', 'pandas/src']" \
|
--replace "['pandas/src/klib', 'pandas/src']" \
|
||||||
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
|
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
|
||||||
|
|
||||||
|
# disable clipboard tests since pbcopy/pbpaste are not open source
|
||||||
|
substituteInPlace pandas/io/tests/test_clipboard.py \
|
||||||
|
--replace pandas.util.clipboard no_such_module \
|
||||||
|
--replace OSError ImportError
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# The flag `-A 'not network'` will disable tests that use internet.
|
# The flag `-A 'not network'` will disable tests that use internet.
|
||||||
|
|
Loading…
Reference in a new issue