2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivationWith
|
2022-09-09 14:08:57 +00:00
|
|
|
, appdirs
|
2023-03-04 12:14:45 +00:00
|
|
|
, app-model
|
2022-01-03 16:56:52 +00:00
|
|
|
, buildPythonPackage
|
2022-09-09 14:08:57 +00:00
|
|
|
, cachey
|
2023-03-04 12:14:45 +00:00
|
|
|
, certifi
|
2022-01-03 16:56:52 +00:00
|
|
|
, dask
|
|
|
|
, docstring-parser
|
2022-09-09 14:08:57 +00:00
|
|
|
, fetchFromGitHub
|
2022-01-03 16:56:52 +00:00
|
|
|
, imageio
|
2022-09-09 14:08:57 +00:00
|
|
|
, jsonschema
|
|
|
|
, magicgui
|
|
|
|
, napari-console
|
|
|
|
, napari-npe2
|
2022-01-03 16:56:52 +00:00
|
|
|
, napari-svg
|
2022-09-09 14:08:57 +00:00
|
|
|
, numpydoc
|
|
|
|
, pint
|
2022-01-03 16:56:52 +00:00
|
|
|
, psutil
|
|
|
|
, pydantic
|
2022-09-09 14:08:57 +00:00
|
|
|
, pyopengl
|
|
|
|
, pillow
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2023-05-24 13:37:59 +00:00
|
|
|
, scikit-image
|
2022-01-03 16:56:52 +00:00
|
|
|
, scipy
|
2022-09-09 14:08:57 +00:00
|
|
|
, setuptools-scm
|
2023-03-04 12:14:45 +00:00
|
|
|
, sphinx
|
2022-09-09 14:08:57 +00:00
|
|
|
, superqt
|
|
|
|
, tifffile
|
|
|
|
, toolz
|
|
|
|
, tqdm
|
|
|
|
, typing-extensions
|
|
|
|
, vispy
|
2022-01-03 16:56:52 +00:00
|
|
|
, wrapQtAppsHook
|
2022-09-09 14:08:57 +00:00
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivationWith buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "napari";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.4.19.post1";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-qw5WdFPySNkmm+dNu+hqsmr+csBpHnSl9bMpb4nKEqI=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "scikit-image>=0.19.1" "scikit-image" \
|
|
|
|
--replace "sphinx<5" "sphinx" \
|
|
|
|
--replace "vispy>=0.11.0,<0.12" "vispy"
|
|
|
|
'';
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
app-model
|
2022-09-09 14:08:57 +00:00
|
|
|
appdirs
|
2022-01-03 16:56:52 +00:00
|
|
|
cachey
|
2023-03-04 12:14:45 +00:00
|
|
|
certifi
|
|
|
|
dask
|
2022-01-03 16:56:52 +00:00
|
|
|
docstring-parser
|
|
|
|
imageio
|
2022-09-09 14:08:57 +00:00
|
|
|
jsonschema
|
|
|
|
magicgui
|
|
|
|
napari-console
|
|
|
|
napari-npe2
|
|
|
|
napari-svg
|
|
|
|
numpydoc
|
|
|
|
pint
|
|
|
|
pillow
|
2022-01-03 16:56:52 +00:00
|
|
|
psutil
|
|
|
|
pydantic
|
2022-09-09 14:08:57 +00:00
|
|
|
pyopengl
|
|
|
|
pyyaml
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2022-01-03 16:56:52 +00:00
|
|
|
scipy
|
2023-03-04 12:14:45 +00:00
|
|
|
sphinx
|
2022-09-09 14:08:57 +00:00
|
|
|
superqt
|
|
|
|
tifffile
|
|
|
|
toolz
|
|
|
|
tqdm
|
|
|
|
typing-extensions
|
|
|
|
vispy
|
|
|
|
wrapt
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ dask.optional-dependencies.array;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/napari
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "A fast, interactive, multi-dimensional image viewer";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://github.com/napari/napari";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/napari/napari/releases/tag/v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|