sasview: fix build

Caused by `asscalar` numpy API removal.
See https://github.com/SasView/sasview/pull/2178
This commit is contained in:
Anthony Roussel 2022-09-18 20:42:33 +02:00
parent aaf4f4600c
commit 341029d5cc
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,6 +1,7 @@
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, wrapQtAppsHook
}:
@ -15,6 +16,15 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY=";
};
patches = [
# Fix `asscalar` numpy API removal.
# See https://github.com/SasView/sasview/pull/2178
(fetchpatch {
url = "https://github.com/SasView/sasview/commit/b1ab08c2a4e8fdade7f3e4cfecf3dfec38b8f3c5.patch";
hash = "sha256-IH8g4XPziVAnkmBdzLH1ii8vN6kyCmOgrQlH2HEbm5o=";
})
];
nativeBuildInputs = [
python3.pkgs.pyqt5
wrapQtAppsHook