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