pythonPackages.pandas_18: init at 0.18.0
This commit is contained in:
parent
f2d2d515ee
commit
8585441ae5
@ -14645,6 +14645,79 @@ in modules // {
|
||||
};
|
||||
};
|
||||
|
||||
pandas_18 = let
|
||||
inherit (pkgs.stdenv.lib) optional optionalString;
|
||||
inherit (pkgs.stdenv) isDarwin;
|
||||
in buildPythonPackage rec {
|
||||
name = "pandas-${version}";
|
||||
version = "0.18.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz";
|
||||
sha256 = "050qw0ap5bhyv5flp78x3lcq1dlminl3xaj6kbrm0jqmx0672xf9";
|
||||
};
|
||||
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
buildInputs = with self; [ nose pkgs.glibcLocales ] ++ optional isDarwin pkgs.libcxx;
|
||||
propagatedBuildInputs = with self; [
|
||||
dateutil
|
||||
scipy
|
||||
numexpr
|
||||
pytz
|
||||
xlrd
|
||||
bottleneck
|
||||
sqlalchemy
|
||||
lxml
|
||||
html5lib
|
||||
modules.sqlite3
|
||||
beautifulsoup4
|
||||
openpyxl
|
||||
xlwt
|
||||
] ++ 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 = [];
|
||||
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' \
|
||||
--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;
|
||||
};
|
||||
};
|
||||
|
||||
xlrd = buildPythonPackage rec {
|
||||
name = "xlrd-${version}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user