From 831628ea20ecd0eefeb880deaaf5164dbcf1862e Mon Sep 17 00:00:00 2001 From: David McFarland Date: Thu, 13 Feb 2025 09:43:12 -0400 Subject: [PATCH] python3Packages.clr-loader: fix build NuGet.targets(174,5): error : '0.2.7.post0' is not a valid version string. (Parameter 'value') Fixes: 91df8eec762aa81eb0aff58e7f94ac3dfe8f37b6 --- pkgs/development/python-modules/clr-loader/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/clr-loader/default.nix b/pkgs/development/python-modules/clr-loader/default.nix index b0921179df4b..d20dcaa51e2a 100644 --- a/pkgs/development/python-modules/clr-loader/default.nix +++ b/pkgs/development/python-modules/clr-loader/default.nix @@ -20,6 +20,11 @@ let hash = "sha256-t6iz+PuxvLu2OC2IfiHRdC1PELXqIJ5K2VVo/pfhx8Y="; }; patches = [ ./dotnet-8-upgrade.patch ]; + # This stops msbuild from picking up $version from the environment + postPatch = '' + echo '' > \ + Directory.Build.props + ''; # This buildDotnetModule is used only to get nuget sources, the actual # build is done in `buildPythonPackage` below. @@ -29,6 +34,7 @@ let version src patches + postPatch ; projectFile = [ "netfx_loader/ClrLoader.csproj" @@ -44,6 +50,7 @@ buildPythonPackage { version src patches + postPatch ; format = "pyproject";