about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/napari-console/default.nix
blob: acefdcc14bca0a3744b8b7b037b8db2862f58aa0 (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
47
48
49
50
51
52
53
54
{ lib
, buildPythonPackage
, fetchFromGitHub
, imageio
, ipykernel
, ipython
, napari-plugin-engine
, pythonOlder
, qtconsole
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "napari-console";
  version = "0.0.7";
  format = "pyproject";

  disabled = pythonOlder "3.8";

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

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    imageio
    ipykernel
    ipython
    napari-plugin-engine
    qtconsole
  ];

  # Circular dependency: napari
  doCheck = false;

  pythonImportsCheck = [
    "napari_console"
  ];

  meta = with lib; {
    description = "A plugin that adds a console to napari";
    homepage = "https://github.com/napari/napari-console";
    license = licenses.bsd3;
    maintainers = with maintainers; [ SomeoneSerge ];
  };
}