From b281933c6d1441c41fc5630e8f3db7f6aec53258 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 17 Aug 2024 21:40:41 +0900 Subject: [PATCH] pdm: format with nixfmt --- pkgs/tools/package-management/pdm/default.nix | 89 ++++++++----------- 1 file changed, 39 insertions(+), 50 deletions(-) diff --git a/pkgs/tools/package-management/pdm/default.nix b/pkgs/tools/package-management/pdm/default.nix index caa40b5d9efb..1422aea28877 100644 --- a/pkgs/tools/package-management/pdm/default.nix +++ b/pkgs/tools/package-management/pdm/default.nix @@ -1,11 +1,12 @@ -{ lib -, python3 -, fetchPypi -, nix-update-script -, runtimeShell -, installShellFiles -, testers -, pdm +{ + lib, + python3, + fetchPypi, + nix-update-script, + runtimeShell, + installShellFiles, + testers, + pdm, }: with python3.pkgs; @@ -21,49 +22,41 @@ buildPythonApplication rec { hash = "sha256-rO9pJHenGQcx7nwfYm6XUW7rdHPk7u7t5P7yvw+3Q+4="; }; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; build-system = [ pdm-backend pdm-build-locked ]; - dependencies = [ - blinker - dep-logic - filelock - findpython - hishel - httpx - installer - msgpack - packaging - pbs-installer - platformdirs - pyproject-hooks - python-dotenv - resolvelib - rich - shellingham - tomlkit - unearth - virtualenv - ] ++ httpx.optional-dependencies.socks - ++ lib.optionals (pythonOlder "3.11") [ - tomli - ] - ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ] - ++ lib.optionals (pythonAtLeast "3.10") [ - truststore - ]; + dependencies = + [ + blinker + dep-logic + filelock + findpython + hishel + httpx + installer + msgpack + packaging + pbs-installer + platformdirs + pyproject-hooks + python-dotenv + resolvelib + rich + shellingham + tomlkit + unearth + virtualenv + ] + ++ httpx.optional-dependencies.socks + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ] + ++ lib.optionals (pythonAtLeast "3.10") [ truststore ]; - makeWrapperArgs = [ - "--set PDM_CHECK_UPDATE 0" - ]; + makeWrapperArgs = [ "--set PDM_CHECK_UPDATE 0" ]; preInstall = '' # Silence network warning during pypaInstallPhase @@ -88,9 +81,7 @@ buildPythonApplication rec { pytest-httpserver ]; - pytestFlagsArray = [ - "-m 'not network'" - ]; + pytestFlagsArray = [ "-m 'not network'" ]; preCheck = '' export HOME=$TMPDIR @@ -115,9 +106,7 @@ buildPythonApplication rec { __darwinAllowLocalNetworking = true; - passthru.tests.version = testers.testVersion { - package = pdm; - }; + passthru.tests.version = testers.testVersion { package = pdm; }; passthru.updateScript = nix-update-script { };