{ stdenv, fetchurl, python, buildPythonPackage , cython, bzip2, lzo, numpy, numexpr, hdf5 }: buildPythonPackage rec { version = "3.2.2"; name = "tables-${version}"; src = fetchurl { url = "https://pypi.python.org/packages/source/t/tables/${name}.tar.gz"; sha256 = "3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84"; }; buildInputs = [ hdf5 cython bzip2 lzo ]; propagatedBuildInputs = [ numpy numexpr ]; # The setup script complains about missing run-paths, but they are # actually set. setupPyBuildFlags = [ "--hdf5=${hdf5}" "--lzo=${lzo}" "--bzip2=${bzip2}" ]; setupPyInstallFlags = setupPyBuildFlags; # Run the test suite. # It requires the build path to be in the python search path. # These tests take quite some time. # If the hdf5 library is built with zlib then there is only one # test-failure. That is the same failure as described in the following # github issue: # https://github.com/PyTables/PyTables/issues/269 checkPhase = '' ${python}/bin/${python.executable} <