Unverified Commit ed1fbb69 authored by Eric Berquist's avatar Eric Berquist
Browse files

python3Packages.array-api-compat: refactor

- use pytestFlagsArray instead of checkPhase to skip tests against cupy
- remove unnecessary trivial nix-update-script for Python packages
parent 180f9e21
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -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";