aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix
index ab70a7782adf..832297c979de 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/default.nix
@@ -20,7 +20,6 @@
# Test Inputs
, glibcLocales
, hypothesis
-, moto
, pytestCheckHook
# Darwin inputs
, runtimeShell
@@ -35,6 +34,8 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "06vhk75hmzgv1sfbjzgnsw9x10h7y6bd6s6z7d6lfnn7wcgc83zi";
};
+ # See https://github.com/scipy/scipy/issues/13585 and https://github.com/pandas-dev/pandas/pull/40020
+ patches = [ ./fix-tests.patch ];
nativeBuildInputs = [ cython ];
buildInputs = lib.optional stdenv.isDarwin libcxx;
@@ -54,22 +55,12 @@ buildPythonPackage rec {
xlwt
];
- checkInputs = [ pytestCheckHook glibcLocales moto hypothesis ];
+ checkInputs = [ pytestCheckHook glibcLocales hypothesis ];
# doesn't work with -Werror,-Wunused-command-line-argument
# 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="${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']"
- '';
-
# Parallel Cythonization is broken in Python 3.8 on Darwin. Fixed in the next
# release. https://github.com/pandas-dev/pandas/pull/30862
setupPyBuildFlags = lib.optionals (!(isPy38 && stdenv.isDarwin)) [