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.
This commit is contained in:
Theodore Ni 2023-07-29 09:52:00 -07:00
parent 809db2e8e5
commit 9e742472af
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -4,6 +4,8 @@
, pytestCheckHook , pytestCheckHook
, dotnetCorePackages , dotnetCorePackages
, setuptools , setuptools
, setuptools-scm
, wheel
, buildDotnetModule , buildDotnetModule
, cffi , cffi
}: }:
@ -14,7 +16,7 @@ let
src = fetchPypi { src = fetchPypi {
pname = "clr_loader"; pname = "clr_loader";
inherit version; inherit version;
sha256 = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms="; hash = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms=";
}; };
# This buildDotnetModule is used only to get nuget sources, the actual # This buildDotnetModule is used only to get nuget sources, the actual
@ -30,13 +32,10 @@ buildPythonPackage {
format = "pyproject"; format = "pyproject";
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
nativeBuildInputs = [ nativeBuildInputs = [
setuptools setuptools
setuptools-scm
wheel
dotnetCorePackages.sdk_6_0 dotnetCorePackages.sdk_6_0
]; ];