19 hash = "sha256-jUsulxWKAjh1+GR0WKWPOIF/T+Oa9gq91rDYrfHXfnU=";
22 # This buildDotnetModule is used only to get nuget sources, the actual
23 # build is done in `buildPythonPackage` below.
24 dotnet-build = buildDotnetModule {
25 inherit pname version src;
26 nugetDeps = ./deps.nix;
30 inherit pname version src;
35 substituteInPlace pyproject.toml \
36 --replace 'dynamic = ["version"]' 'version = "${version}"'
44 propagatedBuildInputs = [
50 # Run tests using .NET Core, Mono is unsupported for now due to find_library problem in clr-loader
56 psutil # needed for memory leak tests
59 # Perform dotnet restore based on the nuget-source
62 -p:ContinuousIntegrationBuild=true \
63 -p:Deterministic=true \
64 --source ${dotnet-build.nuget-source}
67 # Rerun this when updating to refresh Nuget dependencies
68 passthru.fetch-deps = dotnet-build.fetch-deps;
71 description = ".NET integration for Python";
72 homepage = "https://pythonnet.github.io";
73 changelog = "https://github.com/pythonnet/pythonnet/releases/tag/v${version}";
74 license = licenses.mit;
75 # <https://github.com/pythonnet/pythonnet/issues/898>
76 badPlatforms = [ "aarch64-linux" ];
77 maintainers = with maintainers; [ jraygauthier mdarocha ];