From 711d382967a5cf1aee14d51dcd2925b2e38320fe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 Feb 2024 16:01:04 +0100 Subject: [PATCH] sasview: 5.0.4 -> 5.0.6 Diff: https://github.com/SasView/sasview/compare/refs/tags/v5.0.4...v5.0.6 --- .../science/misc/sasview/default.nix | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/science/misc/sasview/default.nix b/pkgs/applications/science/misc/sasview/default.nix index ddc0cdfa4e5b..bb961365fb14 100644 --- a/pkgs/applications/science/misc/sasview/default.nix +++ b/pkgs/applications/science/misc/sasview/default.nix @@ -1,30 +1,21 @@ { lib , python3 , fetchFromGitHub -, fetchpatch , wrapQtAppsHook }: python3.pkgs.buildPythonApplication rec { pname = "sasview"; - version = "5.0.4"; + version = "5.0.6"; + pyproject = true; src = fetchFromGitHub { owner = "SasView"; repo = "sasview"; - rev = "v${version}"; - hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY="; + rev = "refs/tags/v${version}"; + hash = "sha256-cwP9VuvO4GPlbAxCqw31xISTi9NoF5RoBQmjWusrnzc="; }; - 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="; - }) - ]; - # AttributeError: module 'numpy' has no attribute 'float'. postPatch = '' substituteInPlace src/sas/sascalc/pr/p_invertor.py \ @@ -33,6 +24,7 @@ python3.pkgs.buildPythonApplication rec { nativeBuildInputs = [ python3.pkgs.pyqt5 + python3.pkgs.setuptools wrapQtAppsHook ]; @@ -66,12 +58,20 @@ python3.pkgs.buildPythonApplication rec { unittest-xml-reporting ]; - pytestFlagsArray = [ "test" ]; + pytestFlagsArray = [ + "test" + ]; + + disabledTests = [ + # NoKnownLoaderException + "test_invalid_cansas" + "test_data_reader_exception" + ]; meta = with lib; { - homepage = "https://www.sasview.org"; description = "Fitting and data analysis for small angle scattering data"; - maintainers = with maintainers; [ rprospero ]; + homepage = "https://www.sasview.org"; license = licenses.bsd3; + maintainers = with maintainers; [ rprospero ]; }; }