depot/third_party/nixpkgs/pkgs/development/python-modules/sasmodels/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

30 lines
774 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils
, pyopencl, opencl-headers
}:
buildPythonPackage rec {
pname = "sasmodels";
version = "1.0.2";
src = fetchFromGitHub {
owner = "SasView";
repo = "sasmodels";
rev = "v${version}";
sha256 = "1qvh7q0fkls5r8r9mrph6igcvv8x3qsslqsc5jf1n20alcs5zjrl";
};
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 ];
};
}