pythonPackages.h5py: 2.7.1 -> 2.8.0 (#41581)

This commit is contained in:
Jaakko Luttinen
2018-06-07 15:57:06 +03:00
committed by Robert Schütz
parent 2be28b1df5
commit 0b41fa32d1
2 changed files with 5 additions and 104 deletions

View File

@@ -1,5 +1,5 @@
{ stdenv, fetchPypi, fetchpatch, python, buildPythonPackage
, numpy, hdf5, cython, six, pkgconfig
{ stdenv, fetchPypi, fetchpatch, isPy27, python, buildPythonPackage
, numpy, hdf5, cython, six, pkgconfig, unittest2
, mpi4py ? null, openssh }:
assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi;
@@ -10,12 +10,12 @@ let
mpi = hdf5.mpi;
mpiSupport = hdf5.mpiSupport;
in buildPythonPackage rec {
version = "2.7.1";
version = "2.8.0";
pname = "h5py";
src = fetchPypi {
inherit pname version;
sha256 = "180a688311e826ff6ae6d3bda9b5c292b90b28787525ddfcb10a29d5ddcae2cc";
sha256 = "0mdr6wrq02ac93m1aqx9kad0ppfzmm4imlxqgyy1x4l7hmdcc9p6";
};
configure_flags = "--hdf5=${hdf5}" + optionalString mpiSupport " --mpi";
@@ -30,18 +30,13 @@ in buildPythonPackage rec {
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else "";
checkInputs = optional isPy27 unittest2;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ hdf5 cython ]
++ optional mpiSupport mpi;
propagatedBuildInputs = [ numpy six]
++ optionals mpiSupport [ mpi4py openssh ];
patches = [
# Patch is based on upstream patch. The tox.ini hunk had to be removed.
# https://github.com/h5py/h5py/commit/5009e062a6f7d4e074cab0fcb42a780ac2b1d7d4.patch
./numpy-1.14.patch
];
meta = {
description =
"Pythonic interface to the HDF5 binary data format";