18 buildPythonPackage rec {
21 disabled = pythonOlder "3.5";
24 inherit pname version;
25 sha256 = "sha256-6SqIetbyqYPlZKaZAt5KdkXDAGn8AavTU+xdolXF4f4=";
28 nativeBuildInputs = [ cython ];
36 propagatedBuildInputs = [
39 packaging # uses packaging.version at runtime
42 # When doing `make distclean`, ignore docs
44 substituteInPlace Makefile --replace "src doc" "src"
45 # Force test suite to error when unittest runner fails
46 substituteInPlace tables/tests/test_suite.py \
47 --replace "return 0" "assert result.wasSuccessful(); return 0" \
48 --replace "return 1" "assert result.wasSuccessful(); return 1"
51 # Regenerate C code with Cython
57 "--hdf5=${lib.getDev hdf5}"
58 "--lzo=${lib.getDev lzo}"
59 "--bzip2=${lib.getDev bzip2}"
60 "--blosc=${lib.getDev c-blosc}"
63 checkInputs = [ pytestCheckHook ];
67 # Runs the test suite as one single test via unittest. The whole "heavy" test suite supposedly takes ~5 hours to run.
70 "tables.tests.test_suite"
73 pythonImportsCheck = [ "tables" ];
76 description = "Hierarchical datasets for Python";
77 homepage = "https://www.pytables.org/";
78 license = licenses.bsd2;
79 maintainers = with maintainers; [ drewrisinger ];