2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivationWith
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, superqt
|
|
|
|
, typing-extensions
|
|
|
|
, tifffile
|
2022-04-15 01:41:22 +00:00
|
|
|
, napari-npe2
|
2022-01-03 16:56:52 +00:00
|
|
|
, pint
|
|
|
|
, pyyaml
|
|
|
|
, numpydoc
|
|
|
|
, dask
|
|
|
|
, magicgui
|
|
|
|
, docstring-parser
|
|
|
|
, appdirs
|
|
|
|
, imageio
|
|
|
|
, pyopengl
|
|
|
|
, cachey
|
|
|
|
, napari-svg
|
|
|
|
, psutil
|
|
|
|
, napari-console
|
|
|
|
, wrapt
|
|
|
|
, pydantic
|
|
|
|
, tqdm
|
|
|
|
, jsonschema
|
|
|
|
, scipy
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}: mkDerivationWith buildPythonPackage rec {
|
|
|
|
pname = "napari";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.4.16";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-Fx3DoTIb2ev5wMP/gmprPIoxeF2f+Cbac6pnWB/zTTw=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2022-01-03 16:56:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
napari-npe2
|
2022-01-03 16:56:52 +00:00
|
|
|
cachey
|
|
|
|
napari-svg
|
|
|
|
napari-console
|
|
|
|
superqt
|
|
|
|
magicgui
|
|
|
|
typing-extensions
|
|
|
|
tifffile
|
|
|
|
pint
|
|
|
|
pyyaml
|
|
|
|
numpydoc
|
|
|
|
dask
|
|
|
|
docstring-parser
|
|
|
|
appdirs
|
|
|
|
imageio
|
|
|
|
pyopengl
|
|
|
|
psutil
|
|
|
|
wrapt
|
|
|
|
pydantic
|
|
|
|
tqdm
|
|
|
|
jsonschema
|
|
|
|
scipy
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/napari
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fast, interactive, multi-dimensional image viewer for python";
|
|
|
|
homepage = "https://github.com/napari/napari";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|