depot/third_party/nixpkgs/pkgs/applications/science/misc/sasview/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

62 lines
1.1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
, which
, wrapQtAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "sasview";
version = "5.0.4";
src = fetchFromGitHub {
owner = "SasView";
repo = "sasview";
rev = "v${version}";
hash = "sha256-TjcchqA6GCvkr59ZgDuGglan2RxLp+aMjJk28XhvoiY=";
};
nativeBuildInputs = [
python3.pkgs.pyqt5
wrapQtAppsHook
];
propagatedBuildInputs = with python3.pkgs; [
bumps
h5py
lxml
periodictable
pillow
pyparsing
pyqt5
qt5reactor
sasmodels
scipy
setuptools
xhtml2pdf
];
postBuild = ''
${python3.interpreter} src/sas/qtgui/convertUI.py
'';
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
checkInputs = with python3.pkgs; [
pytestCheckHook
unittest-xml-reporting
];
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;
};
}