2022-01-29 02:19:28 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, which
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "sasview";
|
|
|
|
version = "5.0.4";
|
2018-03-09 12:08:34 +00:00
|
|
|
|
2022-01-29 02:19:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SasView";
|
|
|
|
repo = "sasview";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY=";
|
2018-05-13 16:25:18 +01:00
|
|
|
};
|
2018-03-22 17:44:27 +00:00
|
|
|
|
2022-01-29 02:19:28 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.pyqt5
|
|
|
|
wrapQtAppsHook
|
2018-05-13 16:25:18 +01:00
|
|
|
];
|
|
|
|
|
2022-01-29 02:19:28 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2018-03-09 12:08:34 +00:00
|
|
|
bumps
|
|
|
|
h5py
|
|
|
|
lxml
|
|
|
|
periodictable
|
|
|
|
pillow
|
2022-01-29 02:19:28 +00:00
|
|
|
pyparsing
|
|
|
|
pyqt5
|
|
|
|
qt5reactor
|
2018-03-09 12:08:34 +00:00
|
|
|
sasmodels
|
|
|
|
scipy
|
2022-01-29 02:19:28 +00:00
|
|
|
setuptools
|
2018-05-13 16:25:18 +01:00
|
|
|
xhtml2pdf
|
|
|
|
];
|
2018-03-09 12:08:34 +00:00
|
|
|
|
2022-01-29 02:19:28 +00:00
|
|
|
postBuild = ''
|
|
|
|
${python3.interpreter} src/sas/qtgui/convertUI.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
unittest-xml-reporting
|
|
|
|
];
|
2018-03-09 12:08:34 +00:00
|
|
|
|
2022-01-29 02:19:28 +00:00
|
|
|
pytestFlagsArray = [ "test" ];
|
2018-03-09 12:08:34 +00:00
|
|
|
|
2018-05-13 16:25:18 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.sasview.org";
|
2018-03-09 12:08:34 +00:00
|
|
|
description = "Fitting and data analysis for small angle scattering data";
|
2018-05-13 16:25:18 +01:00
|
|
|
maintainers = with maintainers; [ rprospero ];
|
|
|
|
license = licenses.bsd3;
|
2018-03-09 12:08:34 +00:00
|
|
|
};
|
|
|
|
}
|