python312Packages.sasmodels: refactor inputs

This commit is contained in:
natsukium 2024-09-29 11:35:05 +09:00
parent 7d1fd25075
commit 4a9f452e17
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -3,13 +3,15 @@
fetchFromGitHub,
buildPythonPackage,
setuptools,
pytest,
pytestCheckHook,
numpy,
scipy,
matplotlib,
bumps,
docutils,
pyopencl,
matplotlib,
opencl-headers,
pycuda,
pyopencl,
pythonOlder,
}:
@ -32,19 +34,26 @@ buildPythonPackage rec {
buildInputs = [ opencl-headers ];
dependencies = [
docutils
matplotlib
numpy
scipy
pyopencl
];
# Note: the 1.0.5 release should be compatible with pytest6, so this can
# be set back to 'pytest' at that point
nativeCheckInputs = [ pytest ];
optional-dependencies = {
full = [
docutils
bumps
matplotlib
# columnize
];
server = [ bumps ];
opencl = [ pyopencl ];
cuda = [ pycuda ];
};
checkPhase = ''
HOME=$(mktemp -d) py.test -c ./pytest.ini
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [ "sasmodels" ];