Merge pull request #262811 from mweinelt/napari-npe2-fix

python310Packages.napari-npe2: build with hatchling

authored by

Martin Weinelt and committed by
GitHub
326976a6 32d09494

+6 -8
+6 -8
pkgs/development/python-modules/napari-npe2/default.nix
··· 3 3 , build 4 4 , buildPythonPackage 5 5 , fetchFromGitHub 6 + , hatchling 7 + , hatch-vcs 6 8 , magicgui 7 9 , napari # reverse dependency, for tests 8 - , psygnal 9 10 , pydantic 10 11 , pythonOlder 11 12 , pytomlpp 12 13 , pyyaml 13 14 , rich 14 - , setuptools-scm 15 15 , typer 16 16 }: 17 17 18 18 buildPythonPackage rec { 19 19 pname = "napari-npe2"; 20 20 version = "0.7.2"; 21 - 22 - format = "pyproject"; 21 + pyproject = true; 23 22 24 23 disabled = pythonOlder "3.8"; 25 24 ··· 30 29 hash = "sha256-PjoLocNTkcAnBNRbPi+MZqZtQ2bjWPIUVz0+k8nIn2A="; 31 30 }; 32 31 33 - SETUPTOOLS_SCM_PRETEND_VERSION = version; 32 + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 34 33 35 34 nativeBuildInputs = [ 36 - # npe2 *can* build without it, 37 - # but then setuptools refuses to acknowledge it when building napari 38 - setuptools-scm 35 + hatchling 36 + hatch-vcs 39 37 ]; 40 38 41 39 propagatedBuildInputs = [