nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 84 lines 1.4 kB view raw
1{ lib 2, mkDerivationWith 3, buildPythonPackage 4, fetchFromGitHub 5, setuptools-scm 6, superqt 7, typing-extensions 8, tifffile 9, napari-npe2 10, pint 11, pyyaml 12, numpydoc 13, dask 14, magicgui 15, docstring-parser 16, appdirs 17, imageio 18, pyopengl 19, cachey 20, napari-svg 21, psutil 22, napari-console 23, wrapt 24, pydantic 25, tqdm 26, jsonschema 27, scipy 28, wrapQtAppsHook 29}: mkDerivationWith buildPythonPackage rec { 30 pname = "napari"; 31 version = "0.4.15"; 32 33 format = "pyproject"; 34 35 src = fetchFromGitHub { 36 owner = "napari"; 37 repo = pname; 38 rev = "v${version}"; 39 sha256 = "sha256-52TDMU6box7TA26P0F9ZgPr8fyzYM646lPUfOektOuE="; 40 }; 41 42 SETUPTOOLS_SCM_PRETEND_VERSION = version; 43 44 nativeBuildInputs = [ 45 setuptools-scm 46 wrapQtAppsHook 47 ]; 48 propagatedBuildInputs = [ 49 napari-npe2 50 cachey 51 napari-svg 52 napari-console 53 superqt 54 magicgui 55 typing-extensions 56 tifffile 57 pint 58 pyyaml 59 numpydoc 60 dask 61 docstring-parser 62 appdirs 63 imageio 64 pyopengl 65 psutil 66 wrapt 67 pydantic 68 tqdm 69 jsonschema 70 scipy 71 ]; 72 73 dontUseSetuptoolsCheck = true; 74 postFixup = '' 75 wrapQtApp $out/bin/napari 76 ''; 77 78 meta = with lib; { 79 description = "A fast, interactive, multi-dimensional image viewer for python"; 80 homepage = "https://github.com/napari/napari"; 81 license = licenses.bsd3; 82 maintainers = with maintainers; [ SomeoneSerge ]; 83 }; 84}