nixpkgs/pkgs/development/python-modules/napari-svg/default.nix
2021-12-31 18:24:13 +02:00

31 lines
827 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, vispy
, napari-plugin-engine
, imageio
}: buildPythonPackage rec {
pname = "napari-svg";
version = "0.1.5";
src = fetchFromGitHub {
owner = "napari";
repo = pname;
rev = "v${version}";
sha256 = "sha256-20NLi6JTugP+hxqF2AnhSkuvhkGGbeG+tT3M2SZbtRc=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ vispy napari-plugin-engine imageio ];
checkInputs = [ pytestCheckHook ];
doCheck = false; # Circular dependency: napari
SETUPTOOLS_SCM_PRETEND_VERSION = version;
meta = with lib; {
description = "A plugin for writing svg files from napari";
homepage = "https://github.com/napari/napari-svg";
license = licenses.bsd3;
maintainers = with maintainers; [ SomeoneSerge ];
};
}