pdm: format with nixfmt

This commit is contained in:
natsukium 2024-08-17 21:40:41 +09:00
parent c6de351beb
commit b281933c6d
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -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 { };