2018-05-12 22:17:03 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils
|
|
|
|
, pyopencl, opencl-headers
|
|
|
|
}:
|
2018-03-09 12:00:24 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-05-12 22:17:03 +01:00
|
|
|
pname = "sasmodels-unstable";
|
|
|
|
version = "2018-04-27";
|
2018-03-09 12:00:24 +00:00
|
|
|
|
2018-05-12 22:17:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SasView";
|
|
|
|
repo = "sasmodels";
|
|
|
|
rev = "33969b656596e8b6cc8ce934cd1f8062f7b11cf2";
|
|
|
|
sha256 = "00rvhafg08qvx0k9mzn1ppdkc9i5yfn2gr3hidrf416srf8zgb85";
|
|
|
|
};
|
2018-03-09 12:00:24 +00:00
|
|
|
|
2018-05-12 22:17:03 +01:00
|
|
|
buildInputs = [ opencl-headers ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ];
|
2018-03-09 12:00:24 +00:00
|
|
|
|
2018-05-12 22:17:03 +01:00
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test -c ./pytest.ini
|
|
|
|
'';
|
2018-03-09 12:00:24 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library of small angle scattering models";
|
|
|
|
homepage = http://sasview.org;
|
2018-03-21 13:32:30 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2018-03-09 12:00:24 +00:00
|
|
|
maintainers = with lib.maintainers; [ rprospero ];
|
|
|
|
};
|
|
|
|
}
|