Something went wrong. Try again.
lol
Something went wrong. Try again.
4.3 kB · 209 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# nativeBuildInputs qt6,
# dependencies app-model, appdirs, cachey, certifi, dask, docstring-parser, imageio, jsonschema, magicgui, napari-console, napari-npe2, napari-svg, pandas, pillow, pint, psutil, pydantic, pydantic-extra-types, pydantic-settings, pyopengl, pyyaml, scikit-image, scipy, superqt, tifffile, toolz, tqdm, typing-extensions, vispy, wrapt,
# tests hypothesis, pooch, pretend, pyautogui, pytest-pretty, pytest-qt, pytestCheckHook, writableTmpDirAsHomeHook, xarray, zarr,}:
buildPythonPackage (finalAttrs: { pname = "napari"; version = "0.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "napari"; repo = "napari"; tag = "v${finalAttrs.version}"; hash = "sha256-fDt9n4+yQcA03IO7sMhcpiP3TfOWfyvbCjY7ImEj+Qg="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"--maxfail=5", ' "" '';
build-system = [ setuptools setuptools-scm ];
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
buildInputs = [ qt6.qtbase ];
dependencies = [ app-model appdirs cachey certifi dask docstring-parser imageio jsonschema magicgui napari-console napari-npe2 napari-svg pandas pillow pint psutil pydantic pydantic-extra-types pydantic-settings pyopengl pyyaml scikit-image scipy superqt tifffile toolz tqdm typing-extensions vispy wrapt ] ++ dask.optional-dependencies.array;
postFixup = '' wrapQtApp $out/bin/napari '';
preCheck = '' rm src/napari/__init__.py '';
nativeCheckInputs = [ hypothesis pooch pretend pyautogui pytest-pretty pytest-qt pytestCheckHook writableTmpDirAsHomeHook xarray zarr ];
disabledTestPaths = [ # Require DISPLAY access "src/napari/_qt/"
# AttributeError: 'Selection' object has no attribute 'replace_selection' "src/napari/layers/shapes/_tests/test_shapes.py" "src/napari/layers/shapes/_tests/test_shapes_key_bindings.py" "src/napari/layers/shapes/_tests/test_shapes_mouse_bindings.py"
# Fatal Python error: Aborted "src/napari/_tests/test_adding_removing.py" "src/napari/_tests/test_advanced.py" "src/napari/_tests/test_cli.py" "src/napari/_tests/test_conftest_fixtures.py" "src/napari/_tests/test_function_widgets.py" "src/napari/_tests/test_key_bindings.py" "src/napari/_tests/test_layer_utils_with_qt.py" "src/napari/_tests/test_mouse_bindings.py" "src/napari/_tests/test_multiple_viewers.py" "src/napari/_tests/test_notebook_display.py" "src/napari/_tests/test_top_level_availability.py" "src/napari/_tests/test_with_screenshot.py" "src/napari/_vispy/" ];
enabledTestPaths = [ "src/napari/_tests/" ];
disabledTests = [ # Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted. "test_PublicOnlyProxy"
# NameError: name 'utils' is not defined "test_create_func_deprecated" "test_create_func_renamed" "test_create_func"
# AttributeError: 'Selection' object has no attribute 'replace_selection' "test_add_empty_shapes_layer" "test_update_data_updates_layer_extent_cache"
# Fatal Python error: Aborted "test_add_layer_data_to_viewer_optional" "test_from_layer_data_tuple_accept_deprecating_dict" "test_layer_rename_updates_combobox" "test_layers_populate_immediately" "test_magicgui_add_data" "test_magicgui_add_future_data" "test_magicgui_add_layer" "test_magicgui_add_layer_inheritance" "test_magicgui_add_threadworker" "test_magicgui_data_updated" "test_magicgui_get_data" "test_magicgui_get_viewer" "test_make_napari_viewer" "test_singlescreen_window_settings" "test_sys_info" "test_view" ];
meta = { description = "Fast, interactive, multi-dimensional image viewer"; homepage = "https://github.com/napari/napari"; changelog = "https://github.com/napari/napari/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ SomeoneSerge ]; };})