Loading pkgs/development/python-modules/napari-npe2/default.nix +56 −13 Original line number Diff line number Diff line Loading @@ -2,31 +2,48 @@ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, # build-system hatchling, hatch-vcs, pythonOlder, pyyaml, platformdirs, # dependencies build, platformdirs, psygnal, pydantic, tomli-w, tomli, pydantic-extra-types, pyyaml, rich, tomli-w, typer, # python<3.11 only tomli, # tests imagemagick, jsonschema, magicgui, napari-plugin-engine, numpy, pytest-pretty, pytestCheckHook, # passthru napari, # reverse dependency, for tests }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "napari-npe2"; version = "0.7.9"; version = "0.8.0"; pyproject = true; src = fetchFromGitHub { owner = "napari"; repo = "npe2"; tag = "v${version}"; hash = "sha256-q+vgzUuSSHFR64OajT/j/tLsNgSm3azQPCvDlrIvceM="; tag = "v${finalAttrs.version}"; hash = "sha256-aZOs9wTYcblt9EZftYHKFWI/GvpZcC2KqVTAis15+Iw="; }; build-system = [ Loading @@ -35,13 +52,14 @@ buildPythonPackage rec { ]; dependencies = [ pyyaml platformdirs build platformdirs psygnal pydantic tomli-w pydantic-extra-types pyyaml rich tomli-w typer ] ++ lib.optionals (pythonOlder "3.11") [ Loading @@ -50,6 +68,30 @@ buildPythonPackage rec { pythonImportsCheck = [ "npe2" ]; nativeCheckInputs = [ imagemagick jsonschema magicgui napari-plugin-engine numpy pytest-pretty pytestCheckHook ]; disabledTests = [ # Require internet connection "test_cli_fetch" "test_fetch_npe1_manifest_dock_widget_as_attribute" "test_fetch_npe1_manifest_with_sample_data" "test_fetch_npe2_manifest" "test_get_manifest_from_wheel" "test_get_pypi_url" # No package or entry point found with name 'svg' "test_cli_convert_svg" "test_conversion" ]; passthru.tests = { inherit napari; }; Loading @@ -57,8 +99,9 @@ buildPythonPackage rec { meta = { description = "Plugin system for napari (the image visualizer)"; homepage = "https://github.com/napari/npe2"; changelog = "https://github.com/napari/npe2/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ SomeoneSerge ]; mainProgram = "npe2"; }; } }) pkgs/development/python-modules/napari/default.nix +9 −4 Original line number Diff line number Diff line { lib, buildPythonPackage, pythonAtLeast, fetchFromGitHub, # build-system Loading Loading @@ -53,15 +54,19 @@ zarr, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "napari"; version = "0.6.6"; pyproject = true; # napari uses pydantic v1 which is not compatible with python 3.14 # ValueError: '__slots__' in __slots__ conflicts with class variable disabled = pythonAtLeast "3.14"; src = fetchFromGitHub { owner = "napari"; repo = "napari"; tag = "v${version}"; tag = "v${finalAttrs.version}"; hash = "sha256-F0l6GWyZ6n4HNZW7XyUk4ZBPQfrAW4DWixCaRHViDPI="; }; Loading Loading @@ -202,8 +207,8 @@ buildPythonPackage rec { meta = { description = "Fast, interactive, multi-dimensional image viewer"; homepage = "https://github.com/napari/napari"; changelog = "https://github.com/napari/napari/releases/tag/${src.tag}"; changelog = "https://github.com/napari/napari/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ SomeoneSerge ]; }; } }) Loading
pkgs/development/python-modules/napari-npe2/default.nix +56 −13 Original line number Diff line number Diff line Loading @@ -2,31 +2,48 @@ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, # build-system hatchling, hatch-vcs, pythonOlder, pyyaml, platformdirs, # dependencies build, platformdirs, psygnal, pydantic, tomli-w, tomli, pydantic-extra-types, pyyaml, rich, tomli-w, typer, # python<3.11 only tomli, # tests imagemagick, jsonschema, magicgui, napari-plugin-engine, numpy, pytest-pretty, pytestCheckHook, # passthru napari, # reverse dependency, for tests }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "napari-npe2"; version = "0.7.9"; version = "0.8.0"; pyproject = true; src = fetchFromGitHub { owner = "napari"; repo = "npe2"; tag = "v${version}"; hash = "sha256-q+vgzUuSSHFR64OajT/j/tLsNgSm3azQPCvDlrIvceM="; tag = "v${finalAttrs.version}"; hash = "sha256-aZOs9wTYcblt9EZftYHKFWI/GvpZcC2KqVTAis15+Iw="; }; build-system = [ Loading @@ -35,13 +52,14 @@ buildPythonPackage rec { ]; dependencies = [ pyyaml platformdirs build platformdirs psygnal pydantic tomli-w pydantic-extra-types pyyaml rich tomli-w typer ] ++ lib.optionals (pythonOlder "3.11") [ Loading @@ -50,6 +68,30 @@ buildPythonPackage rec { pythonImportsCheck = [ "npe2" ]; nativeCheckInputs = [ imagemagick jsonschema magicgui napari-plugin-engine numpy pytest-pretty pytestCheckHook ]; disabledTests = [ # Require internet connection "test_cli_fetch" "test_fetch_npe1_manifest_dock_widget_as_attribute" "test_fetch_npe1_manifest_with_sample_data" "test_fetch_npe2_manifest" "test_get_manifest_from_wheel" "test_get_pypi_url" # No package or entry point found with name 'svg' "test_cli_convert_svg" "test_conversion" ]; passthru.tests = { inherit napari; }; Loading @@ -57,8 +99,9 @@ buildPythonPackage rec { meta = { description = "Plugin system for napari (the image visualizer)"; homepage = "https://github.com/napari/npe2"; changelog = "https://github.com/napari/npe2/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ SomeoneSerge ]; mainProgram = "npe2"; }; } })
pkgs/development/python-modules/napari/default.nix +9 −4 Original line number Diff line number Diff line { lib, buildPythonPackage, pythonAtLeast, fetchFromGitHub, # build-system Loading Loading @@ -53,15 +54,19 @@ zarr, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "napari"; version = "0.6.6"; pyproject = true; # napari uses pydantic v1 which is not compatible with python 3.14 # ValueError: '__slots__' in __slots__ conflicts with class variable disabled = pythonAtLeast "3.14"; src = fetchFromGitHub { owner = "napari"; repo = "napari"; tag = "v${version}"; tag = "v${finalAttrs.version}"; hash = "sha256-F0l6GWyZ6n4HNZW7XyUk4ZBPQfrAW4DWixCaRHViDPI="; }; Loading Loading @@ -202,8 +207,8 @@ buildPythonPackage rec { meta = { description = "Fast, interactive, multi-dimensional image viewer"; homepage = "https://github.com/napari/napari"; changelog = "https://github.com/napari/napari/releases/tag/${src.tag}"; changelog = "https://github.com/napari/napari/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ SomeoneSerge ]; }; } })