pythonPackages.pandas_17: remove it
This commit is contained in:
parent
d58302d5bb
commit
a4098c1133
@ -14913,79 +14913,6 @@ in modules // {
|
|||||||
|
|
||||||
pandas = self.pandas_18;
|
pandas = self.pandas_18;
|
||||||
|
|
||||||
pandas_17 = let
|
|
||||||
inherit (pkgs.stdenv.lib) optional optionalString;
|
|
||||||
inherit (pkgs.stdenv) isDarwin;
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
name = "pandas-${version}";
|
|
||||||
version = "0.17.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz";
|
|
||||||
sha256 = "cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ nose ] ++ optional isDarwin pkgs.libcxx;
|
|
||||||
propagatedBuildInputs = with self; [
|
|
||||||
dateutil
|
|
||||||
scipy_0_17
|
|
||||||
numexpr
|
|
||||||
pytz
|
|
||||||
xlrd
|
|
||||||
bottleneck
|
|
||||||
sqlalchemy
|
|
||||||
lxml
|
|
||||||
html5lib
|
|
||||||
modules.sqlite3
|
|
||||||
beautifulsoup4
|
|
||||||
] ++ optional isDarwin pkgs.darwin.locale; # provides the locale command
|
|
||||||
|
|
||||||
# For OSX, we need to add a dependency on libcxx, which provides
|
|
||||||
# `complex.h` and other libraries that pandas depends on to build.
|
|
||||||
patchPhase = optionalString isDarwin ''
|
|
||||||
cpp_sdk="${pkgs.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']"
|
|
||||||
|
|
||||||
# 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 `-e` flag disables a few problematic tests.
|
|
||||||
# https://github.com/pydata/pandas/issues/11169
|
|
||||||
# https://github.com/pydata/pandas/issues/11287
|
|
||||||
# The test_sql checks fail specifically on python 3.5; see here:
|
|
||||||
# https://github.com/pydata/pandas/issues/11112
|
|
||||||
checkPhase = let
|
|
||||||
testsToSkip = ["test_data" "test_excel" "test_html" "test_json"
|
|
||||||
"test_frequencies" "test_frame"
|
|
||||||
"test_read_clipboard_infer_excel"
|
|
||||||
"test_interp_alt_scipy" "test_nanops" "test_stats"] ++
|
|
||||||
optional isPy35 "test_sql";
|
|
||||||
in ''
|
|
||||||
runHook preCheck
|
|
||||||
# The flag `-A 'not network'` will disable tests that use internet.
|
|
||||||
# The `-e` flag disables a few problematic tests.
|
|
||||||
${python.executable} setup.py nosetests -A 'not slow and not network' --stop \
|
|
||||||
-e '${concatStringsSep "|" testsToSkip}' --verbosity=3
|
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://pandas.pydata.org/";
|
|
||||||
description = "Python Data Analysis Library";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = with maintainers; [ raskin fridh ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pandas_18 = let
|
pandas_18 = let
|
||||||
inherit (pkgs.stdenv.lib) optional optionalString;
|
inherit (pkgs.stdenv.lib) optional optionalString;
|
||||||
inherit (pkgs.stdenv) isDarwin;
|
inherit (pkgs.stdenv) isDarwin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user