|
|
|
@ -1,17 +1,16 @@ |
|
|
|
|
{ stdenv, fetchurl, python, buildPythonPackage |
|
|
|
|
, numpy, hdf5, cython, six, pkgconfig |
|
|
|
|
, mpiSupport ? false, mpi4py ? null, mpi ? null }: |
|
|
|
|
, mpi4py ? null }: |
|
|
|
|
|
|
|
|
|
assert mpiSupport == hdf5.mpiSupport; |
|
|
|
|
assert mpiSupport -> mpi != null |
|
|
|
|
&& mpi4py != null |
|
|
|
|
&& mpi == mpi4py.mpi |
|
|
|
|
&& mpi == hdf5.mpi |
|
|
|
|
; |
|
|
|
|
assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi; |
|
|
|
|
|
|
|
|
|
with stdenv.lib; |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
let |
|
|
|
|
mpi = hdf5.mpi; |
|
|
|
|
mpiSupport = hdf5.mpiSupport; |
|
|
|
|
|
|
|
|
|
in buildPythonPackage rec { |
|
|
|
|
name = "h5py-${version}"; |
|
|
|
|
version = "2.5.0"; |
|
|
|
|
|
|
|
|
|