Skip to content

Commit e3e90b8

Browse files
authored
python313Packages.flammkuchen: fix build with NumPy v2 (#380781)
2 parents 21d4bbf + b39a906 commit e3e90b8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

pkgs/development/python-modules/flammkuchen/default.nix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
buildPythonPackage,
4+
fetchpatch2,
45
fetchPypi,
56
numpy,
67
pandas,
@@ -13,16 +14,24 @@
1314
buildPythonPackage rec {
1415
pname = "flammkuchen";
1516
version = "1.0.3";
16-
format = "pyproject";
17+
pyproject = true;
1718

1819
src = fetchPypi {
1920
inherit pname version;
2021
hash = "sha256-z68HBsU9J6oe8+YL4OOQiMYQRs3TZUDM+e2ssqo6BFI=";
2122
};
2223

23-
nativeBuildInputs = [ setuptools ];
24+
patches = [
25+
(fetchpatch2 {
26+
name = "numpy-v2-compat.patch";
27+
url = "https://github.com/portugueslab/flammkuchen/commit/c523ea78e10facd98d4893f045249c68bae17940.patch?full_index=1";
28+
hash = "sha256-/goNkiEBrcprywQYf2oKvGbu5j12hmalPuB45wNNt+I=";
29+
})
30+
];
31+
32+
build-system = [ setuptools ];
2433

25-
propagatedBuildInputs = [
34+
dependencies = [
2635
numpy
2736
scipy
2837
tables

pkgs/development/python-modules/stytra/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
qimage2ndarray,
2828
scikit-image,
2929
scipy,
30+
setuptools,
3031
tables,
3132
}:
3233

@@ -46,7 +47,9 @@ buildPythonPackage rec {
4647
./0000-workaround-pyqtgraph.patch
4748
];
4849

49-
propagatedBuildInputs = [
50+
build-system = [ setuptools ];
51+
52+
dependencies = [
5053
opencv4
5154
pyqt5
5255
pyqtgraph

0 commit comments

Comments
 (0)