depot/third_party/nixpkgs/pkgs/development/python-modules/napari-npe2/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

62 lines
1 KiB
Nix

{ lib
, appdirs
, build
, buildPythonPackage
, fetchFromGitHub
, hatchling
, hatch-vcs
, magicgui
, napari # reverse dependency, for tests
, pydantic
, pythonOlder
, pytomlpp
, pyyaml
, rich
, typer
}:
buildPythonPackage rec {
pname = "napari-npe2";
version = "0.7.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "napari";
repo = "npe2";
rev = "refs/tags/v${version}";
hash = "sha256-PjoLocNTkcAnBNRbPi+MZqZtQ2bjWPIUVz0+k8nIn2A=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
hatchling
hatch-vcs
];
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 ];
};
}