python3Packages.clr-loader: fix build

NuGet.targets(174,5): error : '0.2.7.post0' is not a valid version string. (Parameter 'value')

Fixes: 91df8eec762aa81eb0aff58e7f94ac3dfe8f37b6

+7
+7
pkgs/development/python-modules/clr-loader/default.nix
··· 20 20 hash = "sha256-t6iz+PuxvLu2OC2IfiHRdC1PELXqIJ5K2VVo/pfhx8Y="; 21 21 }; 22 22 patches = [ ./dotnet-8-upgrade.patch ]; 23 + # This stops msbuild from picking up $version from the environment 24 + postPatch = '' 25 + echo '<Project><PropertyGroup><Version/></PropertyGroup></Project>' > \ 26 + Directory.Build.props 27 + ''; 23 28 24 29 # This buildDotnetModule is used only to get nuget sources, the actual 25 30 # build is done in `buildPythonPackage` below. ··· 29 34 version 30 35 src 31 36 patches 37 + postPatch 32 38 ; 33 39 projectFile = [ 34 40 "netfx_loader/ClrLoader.csproj" ··· 44 50 version 45 51 src 46 52 patches 53 + postPatch 47 54 ; 48 55 49 56 format = "pyproject";