git.iko.soy/typeable/nixpkgs
on master help sign in
darwin purity: pythonPackages.pandas
commit58b862b750dbfe00bc3e935f5ac8857b2fd6a591 authorJude Taylor <me@jude.bio> dateTue 3 Nov 2015, 13:59 (11 years ago) parent95388b6
2 files changed+11−5
pkgs/development/interpreters/python/2.7/default.nix+3−5 pkgs/top-level/python-packages.nix+8
pkgs/development/interpreters/python/2.7/default.nix+3−5
@@ -68,6 +68,8 @@ let
6868 done
6969 '' + optionalString stdenv.isDarwin ''
7070 substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
71+ substituteInPlace Lib/multiprocessing/__init__.py \
72+ --replace 'os.popen(comm)' 'os.popen("nproc")'
7173 '';
7274
7375 configureFlags = [
@@ -95,11 +97,7 @@ let
9597 ] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
9698 )
9799 ++ optional zlibSupport zlib
98−
99− # depend on CF and configd only if purity is an issue
100− # the impure bootstrap compiler can't build CoreFoundation currently. it requires
101− # <mach-o/dyld.h> which is in our pure bootstrapTools, but not in the system headers.
102− ++ optionals (stdenv.isDarwin && !stdenv.cc.nativeLibc) [ CF configd ];
100+ ++ optionals stdenv.isDarwin [ CF configd ];
103101
104102 # Build the basic Python interpreter without modules that have
105103 # external dependencies.
pkgs/top-level/python-packages.nix+8
@@ -5677,6 +5677,9 @@ let
56775677
56785678 propagatedBuildInputs = with self; [ argh pathtools pyyaml ];
56795679
5680+ buildInputs = stdenv.lib.optionals stdenv.isDarwin
5681+ [ pkgs.darwin.apple_sdk.frameworks.CoreServices pkgs.darwin.cf-private ];
5682+
56805683 doCheck = false;
56815684
56825685 src = pkgs.fetchurl {
@@ -11836,6 +11839,11 @@ let
1183611839 substituteInPlace setup.py \
1183711840 --replace "['pandas/src/klib', 'pandas/src']" \
1183811841 "['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
11842+
11843+ # disable clipboard tests since pbcopy/pbpaste are not open source
11844+ substituteInPlace pandas/io/tests/test_clipboard.py \
11845+ --replace pandas.util.clipboard no_such_module \
11846+ --replace OSError ImportError
1183911847 '';
1184011848
1184111849 # The flag `-A 'not network'` will disable tests that use internet.