1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools-scm 5, pytestCheckHook 6, pytest 7, ipython 8, ipykernel 9, qtconsole 10, napari-plugin-engine 11, imageio 12}: buildPythonPackage rec { 13 pname = "napari-console"; 14 version = "0.0.4"; 15 src = fetchFromGitHub { 16 owner = "napari"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "sha256-aVdYOzkZ+dqB680oDjNCg6quXU+QgUZI09E/MSTagyA="; 20 }; 21 nativeBuildInputs = [ setuptools-scm ]; 22 # setup.py somehow requires pytest 23 propagatedBuildInputs = [ pytest ipython ipykernel napari-plugin-engine imageio qtconsole ]; 24 chechInputs = [ pytestCheckHook ]; 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 meta = with lib; { 28 description = "A plugin that adds a console to napari"; 29 homepage = "https://github.com/napari/napari-console"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ SomeoneSerge ]; 32 }; 33}