17 src = fetchFromGitHub {
21 hash = "sha256-QdgcBFQDFxmFxuXsDlHcu+L/VWw2aKfyWDqPrawyhOs=";
24 # This buildDotnetModule is used only to get nuget sources, the actual
25 # build is done in `buildPythonPackage` below.
26 dotnet-build = buildDotnetModule {
27 inherit pname version src;
28 projectFile = "src/runtime/Python.Runtime.csproj";
29 testProjectFile = "src/testing/Python.Test.csproj";
30 nugetDeps = ./deps.nix;
31 dotnet-sdk = dotnet-sdk_6;
35 inherit pname version src;
40 substituteInPlace pyproject.toml \
41 --replace 'dynamic = ["version"]' 'version = "${version}"'
44 buildInputs = dotnet-build.nugetDeps;
51 propagatedBuildInputs = [
57 # Run tests using .NET Core, Mono is unsupported for now due to find_library problem in clr-loader
63 psutil # needed for memory leak tests
66 # Rerun this when updating to refresh Nuget dependencies
67 passthru.fetch-deps = dotnet-build.fetch-deps;
70 description = ".NET integration for Python";
71 homepage = "https://pythonnet.github.io";
72 changelog = "https://github.com/pythonnet/pythonnet/releases/tag/v${version}";
73 license = licenses.mit;
74 # <https://github.com/pythonnet/pythonnet/issues/898>
75 badPlatforms = [ "aarch64-linux" ];
76 maintainers = with maintainers; [