1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/sasmodels/default.nix

31 lines
772 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils
, pyopencl, opencl-headers
}:
buildPythonPackage rec {
2018-10-17 14:36:04 +01:00
pname = "sasmodels";
version = "1.0.0";
src = fetchFromGitHub {
owner = "SasView";
repo = "sasmodels";
2018-10-17 14:36:04 +01:00
rev = "v${version}";
sha256 = "082wnk10axincc4a62zxyr33l7v80yf7iz630y3421b50fwwyd8j";
};
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 ];
};
}