3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/misc/sasview/default.nix

63 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-29 02:19:28 +00:00
{ lib
, python3
, fetchFromGitHub
, which
, wrapQtAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "sasview";
version = "5.0.4";
2022-01-29 02:19:28 +00:00
src = fetchFromGitHub {
owner = "SasView";
repo = "sasview";
rev = "v${version}";
hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY=";
};
2018-03-22 17:44:27 +00:00
2022-01-29 02:19:28 +00:00
nativeBuildInputs = [
python3.pkgs.pyqt5
wrapQtAppsHook
];
2022-01-29 02:19:28 +00:00
propagatedBuildInputs = with python3.pkgs; [
bumps
h5py
lxml
periodictable
pillow
2022-01-29 02:19:28 +00:00
pyparsing
pyqt5
qt5reactor
sasmodels
scipy
2022-01-29 02:19:28 +00:00
setuptools
xhtml2pdf
];
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
];
2022-01-29 02:19:28 +00:00
pytestFlagsArray = [ "test" ];
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;
};
}