mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python3Packages.array-api-compat: refactor (#336659)
This commit is contained in:
commit
9c833b1027
@ -14,7 +14,6 @@
|
||||
config,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
cupy,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -45,13 +44,10 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "array_api_compat" ];
|
||||
|
||||
# CUDA (used via cupy) is not available in the testing sandbox
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
python -m pytest -k 'not cupy'
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
pytestFlagsArray = [
|
||||
"-k"
|
||||
"'not cupy'"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://data-apis.org/array-api-compat";
|
||||
|
Loading…
Reference in New Issue
Block a user