diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-06-23 11:48:06 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-06-23 11:48:06 +0200 |
commit | 46b7f6bdfd8f153d310215507a2209b6b788b9d6 (patch) | |
tree | 44daef829fc69bdc845aac61db2aa82f891e3fda /pkgs | |
parent | bb79a46357122714c60468a6ccc3522452145db7 (diff) | |
download | nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar.gz nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar.bz2 nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar.lz nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar.xz nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.tar.zst nixlib-46b7f6bdfd8f153d310215507a2209b6b788b9d6.zip |
python.pkgs.pandas: fix build
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pandas/default.nix | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index ebb06f0f47db..08fdddb73467 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -24,8 +24,9 @@ }: let - inherit (stdenv.lib) optional optionalString concatStringsSep; + inherit (stdenv.lib) optional optionals optionalString concatStringsSep; inherit (stdenv) isDarwin; + in buildPythonPackage rec { pname = "pandas"; version = "0.23.1"; @@ -67,6 +68,24 @@ in buildPythonPackage rec { "['pandas/src/klib', 'pandas/src', '$cpp_sdk']" ''; + + disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) ([ + # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat + # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case + "test_fallback_plural" + "test_ambiguous_flags" + "test_ambiguous_compat" + # Locale-related + "test_names" + "test_dt_accessor_datetime_name_accessors" + "test_datetime_name_accessors" + # Can't import from test folder + "test_oo_optimizable" + ] ++ optionals isDarwin [ + "test_locale" + "test_clipboard" + ]); + checkPhase = '' runHook preCheck '' @@ -79,13 +98,7 @@ in buildPythonPackage rec { chmod a+x pbcopy pbpaste export PATH=$(pwd):$PATH '' + '' - # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat - # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case - py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network \ - -k "not test_fallback_plural and \ - not test_ambiguous_flags and \ - not test_ambiguous_compat \ - ${optionalString isDarwin "and not test_locale and not test_clipboard"}" + py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network -k "$disabledTests" runHook postCheck ''; |