about summary refs log tree commit diff
path: root/pkgs/development/python-modules/napari-svg/default.nix
blob: 635d0063f9174ce825af7bf56426df6fe0aeeb96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  imageio,
  napari-plugin-engine,
  numpy,
  pythonOlder,
  setuptools-scm,
  vispy,
}:

buildPythonPackage rec {
  pname = "napari-svg";
  version = "0.1.10";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "napari";
    repo = "napari-svg";
    rev = "refs/tags/v${version}";
    hash = "sha256-ywN9lUwBFW8zP7ivP7MNTYFbTCcmaZxAuKr056uY68Q=";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [
    imageio
    napari-plugin-engine
    numpy
    vispy
  ];

  # Circular dependency: napari
  doCheck = false;

  meta = with lib; {
    description = "Plugin for writing svg files from napari";
    homepage = "https://github.com/napari/napari-svg";
    changelog = "https://github.com/napari/napari-svg/releases/tag/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ SomeoneSerge ];
  };
}