18 buildPythonPackage rec {
23 disabled = pythonOlder "3.7";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-fa6/13z11AuTRItZOEmTbjpU1aT6Ur7evi6UvVvXQck=";
32 build-system = [ setuptools ];
34 buildInputs = [ opencl-headers ];
41 optional-dependencies = {
49 opencl = [ pyopencl ];
53 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
59 pythonImportsCheck = [ "sasmodels" ];
62 description = "Library of small angle scattering models";
63 homepage = "https://github.com/SasView/sasmodels";
64 license = licenses.bsd3;
65 maintainers = with maintainers; [ rprospero ];