Loading pkgs/tools/package-management/pdm/default.nix +26 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,9 @@ , fetchPypi , nix-update-script , runtimeShell , installShellFiles , testers , pdm }: let python = python3.override { Loading Loading @@ -44,6 +47,7 @@ buildPythonApplication rec { nativeBuildInputs = [ pdm-backend installShellFiles ]; propagatedBuildInputs = [ Loading Loading @@ -76,6 +80,23 @@ buildPythonApplication rec { truststore ]; makeWrapperArgs = [ "--set PDM_CHECK_UPDATE 0" ]; preInstall = '' # Silence network warning during pypaInstallPhase # by disabling latest version check export PDM_CHECK_UPDATE=0 ''; postInstall = '' installShellCompletion --cmd pdm \ --bash <($out/bin/pdm completion bash) \ --fish <($out/bin/pdm completion fish) \ --zsh <($out/bin/pdm completion zsh) ''; nativeCheckInputs = [ pytestCheckHook pytest-mock Loading @@ -91,7 +112,7 @@ buildPythonApplication rec { preCheck = '' export HOME=$TMPDIR substituteInPlace tests/cli/test_run.py \ --replace "/bin/bash" "${runtimeShell}" --replace-warn "/bin/bash" "${runtimeShell}" ''; disabledTests = [ Loading @@ -104,6 +125,10 @@ buildPythonApplication rec { __darwinAllowLocalNetworking = true; passthru.tests.version = testers.testVersion { package = pdm; }; passthru.updateScript = nix-update-script { }; meta = with lib; { Loading Loading
pkgs/tools/package-management/pdm/default.nix +26 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,9 @@ , fetchPypi , nix-update-script , runtimeShell , installShellFiles , testers , pdm }: let python = python3.override { Loading Loading @@ -44,6 +47,7 @@ buildPythonApplication rec { nativeBuildInputs = [ pdm-backend installShellFiles ]; propagatedBuildInputs = [ Loading Loading @@ -76,6 +80,23 @@ buildPythonApplication rec { truststore ]; makeWrapperArgs = [ "--set PDM_CHECK_UPDATE 0" ]; preInstall = '' # Silence network warning during pypaInstallPhase # by disabling latest version check export PDM_CHECK_UPDATE=0 ''; postInstall = '' installShellCompletion --cmd pdm \ --bash <($out/bin/pdm completion bash) \ --fish <($out/bin/pdm completion fish) \ --zsh <($out/bin/pdm completion zsh) ''; nativeCheckInputs = [ pytestCheckHook pytest-mock Loading @@ -91,7 +112,7 @@ buildPythonApplication rec { preCheck = '' export HOME=$TMPDIR substituteInPlace tests/cli/test_run.py \ --replace "/bin/bash" "${runtimeShell}" --replace-warn "/bin/bash" "${runtimeShell}" ''; disabledTests = [ Loading @@ -104,6 +125,10 @@ buildPythonApplication rec { __darwinAllowLocalNetworking = true; passthru.tests.version = testers.testVersion { package = pdm; }; passthru.updateScript = nix-update-script { }; meta = with lib; { Loading