python311Packages.tables: fix build

This commit is contained in:
Weijia Wang 2024-01-20 11:11:28 +01:00
parent 27e48d2c55
commit 7609aa254f

View file

@ -1,6 +1,5 @@
{ lib
, fetchPypi
, fetchpatch
, buildPythonPackage
, pythonOlder
, blosc2
@ -23,7 +22,7 @@
buildPythonPackage rec {
pname = "tables";
version = "3.9.2";
pyproject = true;
format = "setuptools";
disabled = pythonOlder "3.8";
@ -32,20 +31,6 @@ buildPythonPackage rec {
hash = "sha256-1HAmPC5QxLfIY1oNmawf8vnnBMJNceX6M8RSnn0K2cM=";
};
patches = [
(fetchpatch {
name = "numpy-1.25-compatibility.patch";
url = "https://github.com/PyTables/PyTables/commit/337792561e5924124efd20d6fea6bbbd2428b2aa.patch";
hash = "sha256-pz3A/jTPWXXlzr+Yl5PRUvdSAinebFsoExfek4RUHkc=";
})
(fetchpatch {
name = "numexpr-2.8.5-compatibility.patch";
url = "https://github.com/PyTables/PyTables/commit/1a235490ebe1a138da1139cfa19829b5f0a2af37.patch";
includes = [ "tables/tests/test_queries.py" ];
hash = "sha256-uMS+Z2Zcz68ILMQaBdIDMnCyasozCaCGOiGIyw0+Evc=";
})
];
nativeBuildInputs = [
blosc2
cython