2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
app-model,
|
|
|
|
appdirs,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachey,
|
|
|
|
certifi,
|
|
|
|
dask,
|
|
|
|
docstring-parser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
imageio,
|
|
|
|
jsonschema,
|
|
|
|
magicgui,
|
|
|
|
mkDerivationWith,
|
|
|
|
napari-console,
|
|
|
|
napari-npe2,
|
|
|
|
napari-svg,
|
|
|
|
numpydoc,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
pint,
|
|
|
|
psutil,
|
|
|
|
pydantic,
|
|
|
|
pyopengl,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
scikit-image,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
superqt,
|
|
|
|
tifffile,
|
|
|
|
toolz,
|
|
|
|
tqdm,
|
|
|
|
typing-extensions,
|
|
|
|
vispy,
|
|
|
|
wrapQtAppsHook,
|
|
|
|
wrapt,
|
2022-09-09 14:08:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "napari";
|
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 \
|
2024-05-15 15:35:15 +00:00
|
|
|
--replace-fail "scikit-image[data]>=0.19.1" "scikit-image"
|
2023-03-04 12:14:45 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2022-04-15 01:41:22 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
pandas
|
2022-09-09 14:08:57 +00:00
|
|
|
pillow
|
2024-05-15 15:35:15 +00:00
|
|
|
pint
|
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
|
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 ];
|
|
|
|
};
|
|
|
|
}
|