23 buildPythonPackage rec {
26 format = "setuptools";
28 disabled = pythonOlder "3.8";
31 inherit pname version;
32 hash = "sha256-1HAmPC5QxLfIY1oNmawf8vnnBMJNceX6M8RSnn0K2cM=";
50 propagatedBuildInputs = [
55 packaging # uses packaging.version at runtime
58 # When doing `make distclean`, ignore docs
60 substituteInPlace Makefile --replace "src doc" "src"
61 # Force test suite to error when unittest runner fails
62 substituteInPlace tables/tests/test_suite.py \
63 --replace "return 0" "assert result.wasSuccessful(); return 0" \
64 --replace "return 1" "assert result.wasSuccessful(); return 1"
65 substituteInPlace requirements.txt \
66 --replace "cython>=0.29.21" "" \
67 --replace "blosc2~=2.0.0" "blosc2"
70 # Regenerate C code with Cython
76 "--hdf5=${lib.getDev hdf5}"
77 "--lzo=${lib.getDev lzo}"
78 "--bzip2=${lib.getDev bzip2}"
79 "--blosc=${lib.getDev c-blosc}"
80 "--blosc2=${lib.getDev blosc2.c-blosc2}"
83 nativeCheckInputs = [ pytest ];
89 # Runs the light (yet comprehensive) subset of the test suite.
90 # The whole "heavy" test suite supposedly takes ~4 hours to run.
93 ${python.interpreter} -m tables.tests.test_all
97 pythonImportsCheck = [ "tables" ];
100 description = "Hierarchical datasets for Python";
101 homepage = "https://www.pytables.org/";
102 changelog = "https://github.com/PyTables/PyTables/releases/tag/v${version}";
103 license = licenses.bsd2;
104 maintainers = with maintainers; [ drewrisinger ];