Commit 04f9a5f5 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.scanpy: fix build

parent bc459417
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
  scikit-misc,

  # tests
  dependency-groups,
  jinja2,
  pytest-cov-stub,
  pytest-mock,
@@ -156,6 +157,7 @@ buildPythonPackage (finalAttrs: {
  };

  nativeCheckInputs = [
    dependency-groups
    jinja2
    pytest-cov-stub
    pytest-mock
@@ -172,6 +174,12 @@ buildPythonPackage (finalAttrs: {
    export NUMBA_CACHE_DIR=$(mktemp -d);
  '';

  pytestFlagsArray = [
    # UserWarning: 'where' used without 'out', expect unitialized memory in output.
    # If this is intentional, use out=None.
    "-Wignore::UserWarning"
  ];

  disabledTestPaths = [
    # try to download data:
    "tests/test_aggregated.py"
@@ -221,6 +229,11 @@ buildPythonPackage (finalAttrs: {
    # 'write/test.h5ad', errno = 2, error message = 'No such file or directory', flags = 13, o_flags
    # = 242)
    "test_write"

    # Snapshot tests failing because of warnings in output
    "scanpy.datasets._datasets.krumsiek11"
    "scanpy.datasets._datasets.toggleswitch"
    "scanpy.preprocessing._simple.filter_cells"
  ];

  pythonImportsCheck = [ "scanpy" ];