2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-03-04 12:14:45 +00:00
|
|
|
, imageio
|
2022-01-03 16:56:52 +00:00
|
|
|
, ipykernel
|
2023-03-04 12:14:45 +00:00
|
|
|
, ipython
|
2022-01-03 16:56:52 +00:00
|
|
|
, napari-plugin-engine
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonOlder
|
|
|
|
, qtconsole
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "napari-console";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.0.7";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-vHLCVMgrcs54pGb48wQpc0h7QBIfE6r7hCSoDNI3QvA=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
imageio
|
|
|
|
ipykernel
|
|
|
|
ipython
|
|
|
|
napari-plugin-engine
|
|
|
|
qtconsole
|
|
|
|
];
|
|
|
|
|
|
|
|
# Circular dependency: napari
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"napari_console"
|
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|