python313Packages.napari-npe2: fix build

Nick Cao 2fdf3337 9c8df656

Changed files
+17 -15
pkgs
development
python-modules
napari-npe2
+17 -15
pkgs/development/python-modules/napari-npe2/default.nix
···
{
lib,
-
appdirs,
-
build,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
-
magicgui,
-
napari, # reverse dependency, for tests
-
pydantic,
pythonOlder,
-
pytomlpp,
pyyaml,
+
platformdirs,
+
build,
+
psygnal,
+
pydantic,
+
tomli-w,
+
tomli,
rich,
typer,
-
tomli-w,
+
napari, # reverse dependency, for tests
}:
buildPythonPackage rec {
···
];
dependencies = [
-
appdirs
+
pyyaml
+
platformdirs
build
-
magicgui
+
psygnal
pydantic
-
pytomlpp
-
pyyaml
+
tomli-w
rich
typer
-
tomli-w
+
]
+
++ lib.optionals (pythonOlder "3.11") [
+
tomli
];
pythonImportsCheck = [ "npe2" ];
···
inherit napari;
};
-
meta = with lib; {
+
meta = {
description = "Plugin system for napari (the image visualizer)";
homepage = "https://github.com/napari/npe2";
-
license = licenses.bsd3;
-
maintainers = with maintainers; [ SomeoneSerge ];
+
license = lib.licenses.bsd3;
+
maintainers = with lib.maintainers; [ SomeoneSerge ];
mainProgram = "npe2";
};
}