summary refs log tree commit diff
path: root/pkgs/development/python-modules/pandas
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2018-06-02 18:17:22 +0000
committerOrivej Desh <orivej@gmx.fr>2018-06-02 18:36:41 +0000
commit49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584 (patch)
tree4974a7f4d420434f23684ce5c3c7c730a1e1bbd4 /pkgs/development/python-modules/pandas
parente7eac1b8550214790c7b1c7abc77c0696601e60a (diff)
downloadnixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar.gz
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar.bz2
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar.lz
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar.xz
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.tar.zst
nixpkgs-49dc36c9a8576b69fe50a7789dc6ef9d6c3ca584.zip
pandas: fix check with the current pytest
pandas 0.23.0 has fixed this too, but it introduces new test failures.
Diffstat (limited to 'pkgs/development/python-modules/pandas')
-rw-r--r--pkgs/development/python-modules/pandas/default.nix2
-rw-r--r--pkgs/development/python-modules/pandas/pandas-0.22.0-pytest-3.5.1.patch13
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix
index 3f9188a6322..cb497742e47 100644
--- a/pkgs/development/python-modules/pandas/default.nix
+++ b/pkgs/development/python-modules/pandas/default.nix
@@ -55,6 +55,8 @@ in buildPythonPackage rec {
     xlwt
   ];
 
+  patches = [ ./pandas-0.22.0-pytest-3.5.1.patch ];
+
   # For OSX, we need to add a dependency on libcxx, which provides
   # `complex.h` and other libraries that pandas depends on to build.
   postPatch = optionalString isDarwin ''
diff --git a/pkgs/development/python-modules/pandas/pandas-0.22.0-pytest-3.5.1.patch b/pkgs/development/python-modules/pandas/pandas-0.22.0-pytest-3.5.1.patch
new file mode 100644
index 00000000000..cba71b91316
--- /dev/null
+++ b/pkgs/development/python-modules/pandas/pandas-0.22.0-pytest-3.5.1.patch
@@ -0,0 +1,13 @@
+--- a/pandas/tests/io/test_pytables.py
++++ b/pandas/tests/io/test_pytables.py
+@@ -5028,8 +5028,8 @@ class TestHDFStore(Base):
+             with ensure_clean_path(self.path) as path:
+                 with catch_warnings(record=True):
+                     with pytest.raises(
+-                        ValueError, msg=("cannot have non-object label "
+-                                         "DataIndexableCol")):
++                        ValueError, message=("cannot have non-object label "
++                                             "DataIndexableCol")):
+                         df.to_hdf(path, 'df', format='table',
+                                   data_columns=True)
+