Something went wrong. Try again.
lol
Something went wrong. Try again.
1.8 kB · 103 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, hatch-vcs,
# dependencies build, platformdirs, psygnal, pydantic, pydantic-extra-types, pyyaml, rich, tomli, tomli-w, typer,
# tests imagemagick, jsonschema, magicgui, napari-plugin-engine, numpy, pytest-pretty, pytestCheckHook,
# passthru napari, # reverse dependency, for tests}:
buildPythonPackage (finalAttrs: { pname = "napari-npe2"; version = "0.8.1"; pyproject = true;
src = fetchFromGitHub { owner = "napari"; repo = "npe2"; tag = "v${finalAttrs.version}"; hash = "sha256-cR7hf5v+RgcENY3rSHnOB4E/TONVYvHKS5i3Kv1Sbuc="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ build platformdirs psygnal pydantic pydantic-extra-types pyyaml rich tomli tomli-w typer ];
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; };
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"; };})