mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
python312Packages.sasmodels: refactor inputs
This commit is contained in:
parent
7d1fd25075
commit
4a9f452e17
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user