Skip to content

Commit 51335e4

Browse files
committed
python313Packages.pyfma: add patch for numpy > 2
1 parent ffa3421 commit 51335e4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
fetchpatch,
56
importlib-metadata,
67
numpy,
78
pybind11,
@@ -24,6 +25,14 @@ buildPythonPackage rec {
2425
hash = "sha256-1qNa+FcIAP1IMzdNKrEbTVPo6gTOSCvhTRIHm6REJoo=";
2526
};
2627

28+
patches = [
29+
# Replace deprecated np.find_common_type calls with np.promote_types, https://github.com/nschloe/pyfma/pull/17
30+
(fetchpatch {
31+
url = "https://github.com/nschloe/pyfma/commit/e12d69d97a97657ab4fec3e8f2b2859f4360bc03.patch";
32+
hash = "sha256-BsQe4hpo+Cripa0FRGFnRBs1oQ1GZA1+ZYzycy5M4Ek=";
33+
})
34+
];
35+
2736
build-system = [ setuptools ];
2837

2938
buildInputs = [ pybind11 ];

0 commit comments

Comments
 (0)