python312Packages.sasmodels: 1.0.7 -> 1.0.8 ()

This commit is contained in:
OTABI Tomoya 2024-09-29 14:05:03 +09:00 committed by GitHub
commit 95fa10c283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,20 +2,23 @@
lib, lib,
fetchFromGitHub, fetchFromGitHub,
buildPythonPackage, buildPythonPackage,
pytest, setuptools,
pytestCheckHook,
numpy, numpy,
scipy, scipy,
matplotlib, bumps,
docutils, docutils,
pyopencl, matplotlib,
opencl-headers, opencl-headers,
pycuda,
pyopencl,
pythonOlder, pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sasmodels"; pname = "sasmodels";
version = "1.0.7"; version = "1.0.8";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -23,25 +26,34 @@ buildPythonPackage rec {
owner = "SasView"; owner = "SasView";
repo = "sasmodels"; repo = "sasmodels";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-GZQYVvQ4bEBizTmJ+o5fIfGr8gn2/4uD3PxIswEjzSE="; hash = "sha256-fa6/13z11AuTRItZOEmTbjpU1aT6Ur7evi6UvVvXQck=";
}; };
build-system = [ setuptools ];
buildInputs = [ opencl-headers ]; buildInputs = [ opencl-headers ];
propagatedBuildInputs = [ dependencies = [
docutils
matplotlib
numpy numpy
scipy scipy
pyopencl
]; ];
# Note: the 1.0.5 release should be compatible with pytest6, so this can optional-dependencies = {
# be set back to 'pytest' at that point full = [
nativeCheckInputs = [ pytest ]; docutils
bumps
matplotlib
# columnize
];
server = [ bumps ];
opencl = [ pyopencl ];
cuda = [ pycuda ];
};
checkPhase = '' nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
HOME=$(mktemp -d) py.test -c ./pytest.ini
preCheck = ''
export HOME=$TMPDIR
''; '';
pythonImportsCheck = [ "sasmodels" ]; pythonImportsCheck = [ "sasmodels" ];