@@ -14990,6 +14990,59 @@ in {
1499014990
1499114991 pandas = callPackage ../development/python-modules/pandas { };
1499214992
14993+ pandas_17 = let
14994+ inherit (pkgs.stdenv.lib) optional optionalString;
14995+ inherit (pkgs.stdenv) isDarwin;
14996+ in buildPythonPackage rec {
14997+ name = "pandas-${version}";
14998+ version = "0.17.1";
14999+
15000+ src = pkgs.fetchurl {
15001+ url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz";
15002+ sha256 = "cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837";
15003+ };
15004+
15005+ buildInputs = with self; [ nose ] ++ optional isDarwin pkgs.libcxx;
15006+ propagatedBuildInputs = with self; [
15007+ dateutil
15008+ scipy_0_17
15009+ numexpr
15010+ pytz
15011+ xlrd
15012+ bottleneck
15013+ sqlalchemy
15014+ lxml
15015+ html5lib
15016+# modules.sqlite3
15017+ beautifulsoup4
15018+ ] ++ optional isDarwin pkgs.darwin.locale; # provides the locale command
15019+
15020+ # For OSX, we need to add a dependency on libcxx, which provides
15021+ # `complex.h` and other libraries that pandas depends on to build.
15022+ patchPhase = optionalString isDarwin ''
15023+ cpp_sdk="${pkgs.libcxx}/include/c++/v1";
15024+ echo "Adding $cpp_sdk to the setup.py common_include variable"
15025+ substituteInPlace setup.py \
15026+ --replace "['pandas/src/klib', 'pandas/src']" \
15027+ "['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
15028+
15029+ # disable clipboard tests since pbcopy/pbpaste are not open source
15030+ substituteInPlace pandas/io/tests/test_clipboard.py \
15031+ --replace pandas.util.clipboard no_such_module \
15032+ --replace OSError ImportError
15033+ '';
15034+
15035+ doCheck = false;
15036+
15037+ meta = {
15038+ homepage = "http://pandas.pydata.org/";
15039+ description = "Python Data Analysis Library";
15040+ license = licenses.bsd3;
15041+ maintainers = with maintainers; [ raskin fridh ];
15042+ platforms = platforms.unix;
15043+ };
15044+ };
15045+
1499315046 xlrd = buildPythonPackage rec {
1499415047 name = "xlrd-${version}";
1499515048
@@ -19348,6 +19401,8 @@ in {
1934819401
1934919402 scipy = callPackage ../development/python-modules/scipy { };
1935019403
19404+ scipy_0_17 = callPackage ../development/python-modules/scipy/0.17.1.nix { };
19405+
1935119406 scikitimage = buildPythonPackage rec {
1935219407 name = "scikit-image-${version}";
1935319408 version = "0.12.3";