python312Packages.deepdish: fix build

This commit is contained in:
Gaetan Lepage
2025-01-02 11:36:24 +01:00
parent 6a398a9156
commit 2eecf15ad7
@@ -1,7 +1,12 @@
{
lib,
fetchPypi,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
numpy,
scipy,
tables,
@@ -10,14 +15,23 @@
buildPythonPackage rec {
pname = "deepdish";
version = "0.3.7";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "1wqzwh3y0mjdyba5kfbvlamn561d3afz50zi712c7klkysz3mzva";
hash = "sha256-av86vvaTzsNEOPGD8p0aLZhiq6J7uVnU8k1W4AfkH/M=";
};
propagatedBuildInputs = [
postPatch = ''
substituteInPlace deepdish/core.py \
--replace-fail "np.ComplexWarning" "np.exceptions.ComplexWarning"
'';
build-system = [
setuptools
];
dependencies = [
numpy
scipy
tables
@@ -32,11 +46,11 @@ buildPythonPackage rec {
# The tests are broken: `ModuleNotFoundError: No module named 'deepdish.six.conf'`
doCheck = false;
meta = with lib; {
meta = {
description = "Flexible HDF5 saving/loading and other data science tools from the University of Chicago";
mainProgram = "ddls";
homepage = "https://github.com/uchicago-cs/deepdish";
license = licenses.asl20;
maintainers = with maintainers; [ ndl ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ndl ];
};
}