forked from mirrors/nixpkgs
31 lines
772 B
Nix
31 lines
772 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils
|
|
, pyopencl, opencl-headers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sasmodels";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SasView";
|
|
repo = "sasmodels";
|
|
rev = "v${version}";
|
|
sha256 = "0k4334nxf1n6gwb9m57sqcchmlssglfd116mpl72glmmdc451d5j";
|
|
};
|
|
|
|
buildInputs = [ opencl-headers ];
|
|
checkInputs = [ pytest ];
|
|
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 ];
|
|
};
|
|
}
|