1{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils
2, pyopencl, opencl-headers
3}:
4
5buildPythonPackage rec {
6 pname = "sasmodels-unstable";
7 version = "2018-04-27";
8
9 src = fetchFromGitHub {
10 owner = "SasView";
11 repo = "sasmodels";
12 rev = "33969b656596e8b6cc8ce934cd1f8062f7b11cf2";
13 sha256 = "00rvhafg08qvx0k9mzn1ppdkc9i5yfn2gr3hidrf416srf8zgb85";
14 };
15
16 buildInputs = [ opencl-headers ];
17 checkInputs = [ pytest ];
18 propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ];
19
20 checkPhase = ''
21 HOME=$(mktemp -d) py.test -c ./pytest.ini
22 '';
23
24 meta = {
25 description = "Library of small angle scattering models";
26 homepage = http://sasview.org;
27 license = lib.licenses.bsd3;
28 maintainers = with lib.maintainers; [ rprospero ];
29 };
30}