about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/napari-console/default.nix
blob: f809587f75f2f86c65f9c813a14589cc4e7a047d (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, pytest
, ipython
, ipykernel
, qtconsole
, napari-plugin-engine
, imageio
}: buildPythonPackage rec {
  pname = "napari-console";
  version = "0.0.4";
  src = fetchFromGitHub {
    owner = "napari";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-aVdYOzkZ+dqB680oDjNCg6quXU+QgUZI09E/MSTagyA=";
  };
  nativeBuildInputs = [ setuptools-scm ];
  # setup.py somehow requires pytest
  propagatedBuildInputs = [ pytest ipython ipykernel napari-plugin-engine imageio qtconsole ];
  chechInputs = [ pytestCheckHook ];
  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  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 ];
  };
}