about summary refs log tree commit diff
path: root/pkgs/development/python-modules/h5py
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-07-19 12:30:31 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-07-19 14:12:13 +0200
commitc51b8dc2249974177d50d7b2662615f78abc4929 (patch)
treedb460f41090b7fc7e98f727b67e49f99cc05d7d2 /pkgs/development/python-modules/h5py
parent47e66f08e12aba48a7bc1e76fd9010bde0371e9e (diff)
pythonPackages.{h5py, h5py-mpi}: simplify expression/assertions
Diffstat (limited to 'pkgs/development/python-modules/h5py')
-rw-r--r--pkgs/development/python-modules/h5py/default.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix
index 5b1ca1927902c..37265a88e2c1c 100644
--- a/pkgs/development/python-modules/h5py/default.nix
+++ b/pkgs/development/python-modules/h5py/default.nix
@@ -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";