summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@fysik.su.se>2019-04-08 16:46:27 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-04-10 18:53:51 +0200
commitd5cc30b721ea10bd01db69f465e505effba245ad (patch)
tree00e2bf591b94f1c40c1192b13809e14f583bc603 /pkgs/development/python-modules
parent015888ce7f7bd8e5168390fc6a923972389f0727 (diff)
downloadnixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar.gz
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar.bz2
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar.lz
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar.xz
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.tar.zst
nixpkgs-d5cc30b721ea10bd01db69f465e505effba245ad.zip
pythonPackages.h5py: add patch to fix broken test
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/h5py/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix
index 69507798cbe..23e659ea7ae 100644
--- a/pkgs/development/python-modules/h5py/default.nix
+++ b/pkgs/development/python-modules/h5py/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchPypi, isPy27, python, buildPythonPackage
-, numpy, hdf5, cython, six, pkgconfig, unittest2
+, numpy, hdf5, cython, six, pkgconfig, unittest2, fetchpatch
 , mpi4py ? null, openssh }:
 
 assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi;
@@ -18,6 +18,12 @@ in buildPythonPackage rec {
     sha256 = "9d41ca62daf36d6b6515ab8765e4c8c4388ee18e2a665701fef2b41563821002";
   };
 
+  patches = [ ( fetchpatch {
+    # Skip a test that probes an already fixed bug in HDF5 (upstream patch)
+    url = "https://github.com/h5py/h5py/commit/141eafa531c6c09a06efe6a694251a1eea84908d.patch";
+    sha256 = "0lmdn0gznr7gadx7qkxybl945fvwk6r0cc4lg3ylpf8ril1975h8";
+  })];
+
   configure_flags = "--hdf5=${hdf5}" + optionalString mpiSupport " --mpi";
 
   postConfigure = ''