diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index 7dc18cefc481..bab23c58c0d9 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, fetchPypi, buildPythonPackage, pythonOlder, @@ -23,14 +24,14 @@ buildPythonPackage rec { pname = "tables"; - version = "3.10.1"; + version = "3.10.2"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-SqB6xzS5wDe66vRK7GTskCrSR/V4EbWfMMTjHTHxJs8="; + hash = "sha256-JUSBKnGG+tuoMdbdNOtJzNeI1qg/TkwrQxuDW2eWyRA="; }; build-system = [ @@ -59,15 +60,12 @@ buildPythonPackage rec { # When doing `make distclean`, ignore docs postPatch = '' - substituteInPlace Makefile --replace "src doc" "src" # Force test suite to error when unittest runner fails substituteInPlace tables/tests/test_suite.py \ - --replace "return 0" "assert result.wasSuccessful(); return 0" \ - --replace "return 1" "assert result.wasSuccessful(); return 1" - substituteInPlace requirements.txt \ - --replace "cython>=0.29.21" "" \ - --replace "blosc2~=2.0.0" "blosc2" - ''; + --replace-fail "return 0" "assert result.wasSuccessful(); return 0" \ + --replace-fail "return 1" "assert result.wasSuccessful(); return 1" + substituteInPlace tables/__init__.py \ + --replace-fail 'find_library("blosc2")' '"${lib.getLib c-blosc}/lib/libblosc${stdenv.hostPlatform.extensions.sharedLibrary}"' ''; # Regenerate C code with Cython preBuild = ''