2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, which
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "sasview";
|
|
|
|
version = "5.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SasView";
|
|
|
|
repo = "sasview";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.pyqt5
|
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
bumps
|
|
|
|
h5py
|
|
|
|
lxml
|
|
|
|
periodictable
|
|
|
|
pillow
|
2022-02-10 20:34:41 +00:00
|
|
|
pyparsing
|
|
|
|
pyqt5
|
|
|
|
qt5reactor
|
2020-04-24 23:36:52 +00:00
|
|
|
sasmodels
|
|
|
|
scipy
|
2022-02-10 20:34:41 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
xhtml2pdf
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postBuild = ''
|
|
|
|
${python3.interpreter} src/sas/qtgui/convertUI.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
unittest-xml-reporting
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestFlagsArray = [ "test" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.sasview.org";
|
|
|
|
description = "Fitting and data analysis for small angle scattering data";
|
|
|
|
maintainers = with maintainers; [ rprospero ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|