1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, imageio
5, ipykernel
6, ipython
7, napari-plugin-engine
8, pythonOlder
9, qtconsole
10, setuptools-scm
11}:
12
13buildPythonPackage rec {
14 pname = "napari-console";
15 version = "0.0.7";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "napari";
22 repo = pname;
23 rev = "refs/tags/v${version}";
24 hash = "sha256-vHLCVMgrcs54pGb48wQpc0h7QBIfE6r7hCSoDNI3QvA=";
25 };
26
27 SETUPTOOLS_SCM_PRETEND_VERSION = version;
28
29 nativeBuildInputs = [
30 setuptools-scm
31 ];
32
33 propagatedBuildInputs = [
34 imageio
35 ipykernel
36 ipython
37 napari-plugin-engine
38 qtconsole
39 ];
40
41 # Circular dependency: napari
42 doCheck = false;
43
44 pythonImportsCheck = [
45 "napari_console"
46 ];
47
48 meta = with lib; {
49 description = "A plugin that adds a console to napari";
50 homepage = "https://github.com/napari/napari-console";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ SomeoneSerge ];
53 };
54}