nixpkgs/pkgs/development/python-modules/napari/default.nix

113 lines
1.8 KiB
Nix

{
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,
}:
mkDerivationWith buildPythonPackage rec {
pname = "napari";
version = "0.5.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "napari";
repo = "napari";
rev = "refs/tags/v${version}";
hash = "sha256-wJifLRrHlDzPgBU7OOPqjdzYpr9M+Klc+yAc/IpyZN8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "scikit-image[data]>=0.19.1" "scikit-image"
'';
build-system = [
setuptools
setuptools-scm
];
nativeBuildInputs = [ wrapQtAppsHook ];
propagatedBuildInputs = [
app-model
appdirs
cachey
certifi
dask
docstring-parser
imageio
jsonschema
magicgui
napari-console
napari-npe2
napari-svg
numpydoc
pandas
pillow
pint
psutil
pydantic
pyopengl
pyyaml
scikit-image
scipy
superqt
tifffile
toolz
tqdm
typing-extensions
vispy
wrapt
] ++ dask.optional-dependencies.array;
dontUseSetuptoolsCheck = true;
postFixup = ''
wrapQtApp $out/bin/napari
'';
meta = with lib; {
description = "Fast, interactive, multi-dimensional image viewer";
homepage = "https://github.com/napari/napari";
changelog = "https://github.com/napari/napari/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ SomeoneSerge ];
};
}