python3Packages.clr-loader: fix build

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

Fixes: 91df8eec762aa81eb0aff58e7f94ac3dfe8f37b6

Changed files
+7
pkgs
development
python-modules
clr-loader
+7
pkgs/development/python-modules/clr-loader/default.nix
···
hash = "sha256-t6iz+PuxvLu2OC2IfiHRdC1PELXqIJ5K2VVo/pfhx8Y=";
};
patches = [ ./dotnet-8-upgrade.patch ];
+
# This stops msbuild from picking up $version from the environment
+
postPatch = ''
+
echo '<Project><PropertyGroup><Version/></PropertyGroup></Project>' > \
+
Directory.Build.props
+
'';
# This buildDotnetModule is used only to get nuget sources, the actual
# build is done in `buildPythonPackage` below.
···
version
src
patches
+
postPatch
;
projectFile = [
"netfx_loader/ClrLoader.csproj"
···
version
src
patches
+
postPatch
;
format = "pyproject";