b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, appdirs
|
|
, build
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, magicgui
|
|
, napari # reverse dependency, for tests
|
|
, psygnal
|
|
, pydantic
|
|
, pythonOlder
|
|
, pytomlpp
|
|
, pyyaml
|
|
, rich
|
|
, setuptools-scm
|
|
, typer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "napari-npe2";
|
|
version = "0.6.1";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "napari";
|
|
repo = "npe2";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1wGMd4box+ulHcEL4zoArJ3ez95s7GcbXa9bWfLbSCw=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
# npe2 *can* build without it,
|
|
# but then setuptools refuses to acknowledge it when building napari
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
build
|
|
magicgui
|
|
pydantic
|
|
pytomlpp
|
|
pyyaml
|
|
rich
|
|
typer
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"npe2"
|
|
];
|
|
|
|
passthru.tests = { inherit napari; };
|
|
|
|
meta = with lib; {
|
|
description = "Plugin system for napari (the image visualizer)";
|
|
homepage = "https://github.com/napari/npe2";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
};
|
|
}
|