20 hash = "sha256-AZNIrmtqg8ekBtFFN8J3zs96OlOyY+w0LIHe1YRaZ+4=";
23 # This buildDotnetModule is used only to get nuget sources, the actual
24 # build is done in `buildPythonPackage` below.
25 dotnet-build = buildDotnetModule {
26 inherit pname version src;
28 "netfx_loader/ClrLoader.csproj"
29 "example/example.csproj"
31 nugetDeps = ./deps.nix;
35 inherit pname version src;
39 buildInputs = dotnetCorePackages.sdk_6_0.packages ++ dotnet-build.nugetDeps;
45 dotnetCorePackages.sdk_6_0
48 propagatedBuildInputs = [ cffi ];
50 nativeCheckInputs = [ pytestCheckHook ];
53 # TODO: mono does not work due to https://github.com/NixOS/nixpkgs/issues/7307
56 "test_mono_signal_chaining"
60 # Perform dotnet restore based on the nuget-source
62 dotnet restore "netfx_loader/ClrLoader.csproj" \
63 -p:ContinuousIntegrationBuild=true \
66 dotnet restore "example/example.csproj" \
67 -p:ContinuousIntegrationBuild=true \
71 passthru.fetch-deps = dotnet-build.fetch-deps;
74 description = "Generic pure Python loader for .NET runtimes";
75 homepage = "https://pythonnet.github.io/clr-loader/";
76 license = licenses.mit;
77 maintainers = with maintainers; [ mdarocha ];