48af15f7a5
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
40 lines
903 B
Nix
40 lines
903 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytest_5
|
|
, numpy
|
|
, scipy
|
|
, matplotlib
|
|
, docutils
|
|
, pyopencl
|
|
, opencl-headers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sasmodels";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SasView";
|
|
repo = "sasmodels";
|
|
rev = "v${version}";
|
|
sha256 = "0h2k81dm92sm0z086qy3ipw6y6cfgpb7ppl7lhjmx6816s3k50sa";
|
|
};
|
|
|
|
buildInputs = [ opencl-headers ];
|
|
# Note: the 1.0.5 release should be compatible with pytest6, so this can
|
|
# be set back to 'pytest' at that point
|
|
checkInputs = [ pytest_5 ];
|
|
propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ];
|
|
|
|
checkPhase = ''
|
|
HOME=$(mktemp -d) py.test -c ./pytest.ini
|
|
'';
|
|
|
|
meta = {
|
|
description = "Library of small angle scattering models";
|
|
homepage = "http://sasview.org";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ rprospero ];
|
|
};
|
|
}
|