From 52f0141dfb1ece0c9012d6682e7575b98c9a01b6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 22 Oct 2023 23:52:46 +0200 Subject: [PATCH] python310Packages.napari-npe2: build with hatchling --- .../python-modules/napari-npe2/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/napari-npe2/default.nix b/pkgs/development/python-modules/napari-npe2/default.nix index 61cf2978a8e5..53fffeaadcba 100644 --- a/pkgs/development/python-modules/napari-npe2/default.nix +++ b/pkgs/development/python-modules/napari-npe2/default.nix @@ -3,23 +3,22 @@ , build , buildPythonPackage , fetchFromGitHub +, hatchling +, hatch-vcs , magicgui , napari # reverse dependency, for tests -, psygnal , pydantic , pythonOlder , pytomlpp , pyyaml , rich -, setuptools-scm , typer }: buildPythonPackage rec { pname = "napari-npe2"; version = "0.7.2"; - - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -30,12 +29,11 @@ buildPythonPackage rec { hash = "sha256-PjoLocNTkcAnBNRbPi+MZqZtQ2bjWPIUVz0+k8nIn2A="; }; - SETUPTOOLS_SCM_PRETEND_VERSION = version; + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ - # npe2 *can* build without it, - # but then setuptools refuses to acknowledge it when building napari - setuptools-scm + hatchling + hatch-vcs ]; propagatedBuildInputs = [