diff --git a/pkgs/development/python-modules/napari-npe2/default.nix b/pkgs/development/python-modules/napari-npe2/default.nix index 02a0a99047e3..25b6bfbbd2da 100644 --- a/pkgs/development/python-modules/napari-npe2/default.nix +++ b/pkgs/development/python-modules/napari-npe2/default.nix @@ -1,20 +1,20 @@ { 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 { @@ -37,15 +37,17 @@ buildPythonPackage rec { ]; dependencies = [ - appdirs - build - magicgui - pydantic - pytomlpp pyyaml + platformdirs + build + psygnal + pydantic + tomli-w rich typer - tomli-w + ] + ++ lib.optionals (pythonOlder "3.11") [ + tomli ]; pythonImportsCheck = [ "npe2" ]; @@ -54,11 +56,11 @@ buildPythonPackage rec { 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"; }; }