From 9e742472affe53ce0ba02cf0dbbf9ecb69c75a78 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 29 Jul 2023 09:52:00 -0700 Subject: [PATCH] python3.pkgs.clr-loader: add build dependencies Once we add setuptools-scm, we no longer need the patch that changes the version number in pyproject.toml. --- .../development/python-modules/clr-loader/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/clr-loader/default.nix b/pkgs/development/python-modules/clr-loader/default.nix index d642084a2bf0..213a57ff0621 100644 --- a/pkgs/development/python-modules/clr-loader/default.nix +++ b/pkgs/development/python-modules/clr-loader/default.nix @@ -4,6 +4,8 @@ , pytestCheckHook , dotnetCorePackages , setuptools +, setuptools-scm +, wheel , buildDotnetModule , cffi }: @@ -14,7 +16,7 @@ let src = fetchPypi { pname = "clr_loader"; inherit version; - sha256 = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms="; + hash = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms="; }; # This buildDotnetModule is used only to get nuget sources, the actual @@ -30,13 +32,10 @@ buildPythonPackage { format = "pyproject"; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'dynamic = ["version"]' 'version = "${version}"' - ''; - nativeBuildInputs = [ setuptools + setuptools-scm + wheel dotnetCorePackages.sdk_6_0 ];