From 9cd240c14a573e8a1e74cc0d06d925920e6c6105 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Wed, 19 Aug 2020 22:51:32 -0500 Subject: [PATCH] python3Packages.h5py: 2.9.0 -> 2.10.0 also disable on python 2.7 Co-authored-by: Jon --- pkgs/development/python-modules/h5py/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix index 2ee4a858f61..8cb6b8c22f5 100644 --- a/pkgs/development/python-modules/h5py/default.nix +++ b/pkgs/development/python-modules/h5py/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchPypi, isPy27, python, buildPythonPackage , numpy, hdf5, cython, six, pkgconfig, unittest2, fetchpatch -, mpi4py ? null, openssh }: +, mpi4py ? null, openssh, pytest }: assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi; @@ -10,20 +10,15 @@ let mpi = hdf5.mpi; mpiSupport = hdf5.mpiSupport; in buildPythonPackage rec { - version = "2.9.0"; + version = "2.10.0"; pname = "h5py"; + disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "9d41ca62daf36d6b6515ab8765e4c8c4388ee18e2a665701fef2b41563821002"; + sha256 = "84412798925dc870ffd7107f045d7659e60f5d46d1c70c700375248bf6bf512d"; }; - 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 = '' @@ -36,7 +31,7 @@ in buildPythonPackage rec { preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else ""; - checkInputs = optional isPy27 unittest2 ++ [ openssh ]; + checkInputs = optional isPy27 unittest2 ++ [ pytest openssh ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ hdf5 cython ] ++ optional mpiSupport mpi;