mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:44:50 +00:00
53a374d98d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-sasmodels/versions
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.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SasView";
|
|
repo = "sasmodels";
|
|
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 ];
|
|
};
|
|
}
|