mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 21:49:34 +03:00
python3Packages.array-api-compat: refactor
- use pytestFlagsArray instead of checkPhase to skip tests against cupy - remove unnecessary trivial nix-update-script for Python packages
This commit is contained in:
parent
180f9e2195
commit
ed1fbb695a
1 changed files with 4 additions and 8 deletions
|
@ -14,7 +14,6 @@
|
||||||
config,
|
config,
|
||||||
cudaSupport ? config.cudaSupport,
|
cudaSupport ? config.cudaSupport,
|
||||||
cupy,
|
cupy,
|
||||||
nix-update-script,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -45,13 +44,10 @@ buildPythonPackage rec {
|
||||||
pythonImportsCheck = [ "array_api_compat" ];
|
pythonImportsCheck = [ "array_api_compat" ];
|
||||||
|
|
||||||
# CUDA (used via cupy) is not available in the testing sandbox
|
# CUDA (used via cupy) is not available in the testing sandbox
|
||||||
checkPhase = ''
|
pytestFlagsArray = [
|
||||||
runHook preCheck
|
"-k"
|
||||||
python -m pytest -k 'not cupy'
|
"'not cupy'"
|
||||||
runHook postCheck
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://data-apis.org/array-api-compat";
|
homepage = "https://data-apis.org/array-api-compat";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue