python.pkgs.pandas: fix build
This commit is contained in:
parent
bb79a46357
commit
46b7f6bdfd
@ -24,8 +24,9 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) optional optionalString concatStringsSep;
|
inherit (stdenv.lib) optional optionals optionalString concatStringsSep;
|
||||||
inherit (stdenv) isDarwin;
|
inherit (stdenv) isDarwin;
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "pandas";
|
pname = "pandas";
|
||||||
version = "0.23.1";
|
version = "0.23.1";
|
||||||
@ -67,6 +68,24 @@ in buildPythonPackage rec {
|
|||||||
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
|
"['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 = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
''
|
''
|
||||||
@ -79,13 +98,7 @@ in buildPythonPackage rec {
|
|||||||
chmod a+x pbcopy pbpaste
|
chmod a+x pbcopy pbpaste
|
||||||
export PATH=$(pwd):$PATH
|
export PATH=$(pwd):$PATH
|
||||||
'' + ''
|
'' + ''
|
||||||
# since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat
|
py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network -k "$disabledTests"
|
||||||
# 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"}"
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user