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 { lib
, appdirs
, build
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, appdirs
, pyyaml
, pytomlpp
, pydantic
, magicgui , magicgui
, typer
, setuptools-scm
, napari # reverse dependency, for tests , napari # reverse dependency, for tests
, psygnal
, pydantic
, pythonOlder
, pytomlpp
, pyyaml
, rich
, setuptools-scm
, typer
}: }:
let buildPythonPackage rec {
pname = "napari-npe2"; pname = "napari-npe2";
version = "0.5.1"; version = "0.5.1";
in
buildPythonPackage {
inherit pname version;
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "napari"; owner = "napari";
repo = "npe2"; repo = "npe2";
@ -34,19 +36,26 @@ buildPythonPackage {
# but then setuptools refuses to acknowledge it when building napari # but then setuptools refuses to acknowledge it when building napari
setuptools-scm setuptools-scm
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
appdirs appdirs
pyyaml build
pytomlpp
pydantic
magicgui magicgui
pydantic
pytomlpp
pyyaml
rich
typer typer
]; ];
pythonImportsCheck = [
"npe2"
];
passthru.tests = { inherit napari; }; passthru.tests = { inherit napari; };
meta = with lib; { 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"; homepage = "https://github.com/napari/npe2";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ SomeoneSerge ]; maintainers = with maintainers; [ SomeoneSerge ];