python310Packages.napari-npe2: adjust inputs

- disable on unsupported Python releases
- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-08-21 17:01:48 +02:00
parent 796a267784
commit 1cfd3c3a3f

View File

@ -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 ];