pythonPackages.pandas: 0.19.2 -> 0.20.1

This commit is contained in:
Frederik Rietdijk 2017-04-22 23:44:00 +02:00
parent 50fb47df49
commit 9174bd2538

View File

@ -1,8 +1,9 @@
{ buildPythonPackage { buildPythonPackage
, fetchPypi
, python , python
, stdenv , stdenv
, fetchurl , fetchurl
, nose , pytest
, glibcLocales , glibcLocales
, cython , cython
, dateutil , dateutil
@ -27,16 +28,16 @@ let
inherit (stdenv) isDarwin; inherit (stdenv) isDarwin;
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "pandas"; pname = "pandas";
version = "0.19.2"; version = "0.20.1";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchPypi {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; inherit pname version;
sha256 = "6f0f4f598c2b16746803c8bafef7c721c57e4844da752d36240c0acf97658014"; sha256 = "42707365577ef69f7c9c168ddcf045df2957595a9ee71bc13c7997eecb96b190";
}; };
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
buildInputs = [ nose glibcLocales ] ++ optional isDarwin libcxx; buildInputs = [ pytest glibcLocales ] ++ optional isDarwin libcxx;
propagatedBuildInputs = [ propagatedBuildInputs = [
cython cython
dateutil dateutil
@ -70,14 +71,10 @@ in buildPythonPackage rec {
''; '';
# The flag `-A 'not network'` will disable tests that use internet. # The flag `-A 'not network'` will disable tests that use internet.
# The `-e` flag disables a few problematic tests.
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
# The flag `-w` provides the initial directory to search for tests. py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network
# The flag `-A 'not network'` will disable tests that use internet. runHook postCheck
nosetests -w $out/${python.sitePackages}/pandas --no-path-adjustment -A 'not slow and not network' \
--verbosity=3
runHook postCheck
''; '';
meta = { meta = {