depot/third_party/nixpkgs/pkgs/development/python-modules/napari/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

112 lines
1.9 KiB
Nix

{ lib
, mkDerivationWith
, appdirs
, app-model
, buildPythonPackage
, cachey
, certifi
, dask
, docstring-parser
, fetchFromGitHub
, imageio
, jsonschema
, magicgui
, napari-console
, napari-npe2
, napari-svg
, numpydoc
, pint
, psutil
, pydantic
, pyopengl
, pillow
, pythonOlder
, pyyaml
, scikitimage
, scipy
, setuptools-scm
, sphinx
, superqt
, tifffile
, toolz
, tqdm
, typing-extensions
, vispy
, wrapQtAppsHook
, wrapt
}:
mkDerivationWith buildPythonPackage rec {
pname = "napari";
version = "0.4.17";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "napari";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-34FALCI7h0I295553Rv0KZxKIipuA2OMNsINGde7/oE=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postPatch = ''
substituteInPlace setup.cfg \
--replace "scikit-image>=0.19.1" "scikit-image" \
--replace "sphinx<5" "sphinx" \
--replace "vispy>=0.11.0,<0.12" "vispy"
'';
nativeBuildInputs = [
setuptools-scm
wrapQtAppsHook
];
propagatedBuildInputs = [
app-model
appdirs
cachey
certifi
dask
docstring-parser
imageio
jsonschema
magicgui
napari-console
napari-npe2
napari-svg
numpydoc
pint
pillow
psutil
pydantic
pyopengl
pyyaml
scikitimage
scipy
sphinx
superqt
tifffile
toolz
tqdm
typing-extensions
vispy
wrapt
] ++ dask.optional-dependencies.array;
dontUseSetuptoolsCheck = true;
postFixup = ''
wrapQtApp $out/bin/napari
'';
meta = with lib; {
description = "A 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 ];
};
}