diff --git a/pkgs/development/python-modules/napari-npe2/default.nix b/pkgs/development/python-modules/napari-npe2/default.nix index 4ca75cf0237c..f6658ad1f6f8 100644 --- a/pkgs/development/python-modules/napari-npe2/default.nix +++ b/pkgs/development/python-modules/napari-npe2/default.nix @@ -1,25 +1,27 @@ { lib +, appdirs +, build , buildPythonPackage , fetchFromGitHub -, appdirs -, pyyaml -, pytomlpp -, pydantic , magicgui -, typer -, setuptools-scm , napari # reverse dependency, for tests +, psygnal +, pydantic +, pythonOlder +, pytomlpp +, pyyaml +, rich +, setuptools-scm +, typer }: -let +buildPythonPackage rec { pname = "napari-npe2"; version = "0.5.1"; -in -buildPythonPackage { - inherit pname version; - format = "pyproject"; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "napari"; repo = "npe2"; @@ -34,19 +36,26 @@ buildPythonPackage { # but then setuptools refuses to acknowledge it when building napari setuptools-scm ]; + propagatedBuildInputs = [ appdirs - pyyaml - pytomlpp - pydantic + build magicgui + pydantic + pytomlpp + pyyaml + rich typer ]; + pythonImportsCheck = [ + "npe2" + ]; + passthru.tests = { inherit napari; }; meta = with lib; { - description = "Yet another plugin system for napari (the image visualizer)"; + description = "Plugin system for napari (the image visualizer)"; homepage = "https://github.com/napari/npe2"; license = licenses.bsd3; maintainers = with maintainers; [ SomeoneSerge ];