python311Packages.dvc: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-17 08:35:36 +02:00
parent b61ec8114e
commit a2e5edc136

View File

@ -1,58 +1,59 @@
{ lib {
, appdirs lib,
, buildPythonPackage appdirs,
, colorama buildPythonPackage,
, configobj colorama,
, distro configobj,
, dpath distro,
, dvc-azure dpath,
, dvc-data dvc-azure,
, dvc-gdrive dvc-data,
, dvc-gs dvc-gdrive,
, dvc-hdfs dvc-gs,
, dvc-http dvc-hdfs,
, dvc-render dvc-http,
, dvc-s3 dvc-render,
, dvc-ssh dvc-s3,
, dvc-studio-client dvc-ssh,
, dvc-task dvc-studio-client,
, fetchFromGitHub dvc-task,
, flatten-dict fetchFromGitHub,
, flufl-lock flatten-dict,
, funcy flufl-lock,
, grandalf funcy,
, gto grandalf,
, hydra-core gto,
, importlib-metadata hydra-core,
, importlib-resources importlib-metadata,
, iterative-telemetry importlib-resources,
, networkx iterative-telemetry,
, packaging networkx,
, pathspec packaging,
, platformdirs pathspec,
, psutil platformdirs,
, pydot psutil,
, pygtrie pydot,
, pyparsing pygtrie,
, pythonOlder pyparsing,
, pythonRelaxDepsHook pythonOlder,
, requests pythonRelaxDepsHook,
, rich requests,
, ruamel-yaml rich,
, scmrepo ruamel-yaml,
, setuptools-scm scmrepo,
, shortuuid setuptools-scm,
, shtab shortuuid,
, tabulate shtab,
, tomlkit tabulate,
, tqdm tomlkit,
, typing-extensions tqdm,
, voluptuous typing-extensions,
, zc-lockfile voluptuous,
, enableGoogle ? false zc-lockfile,
, enableAWS ? false enableGoogle ? false,
, enableAzure ? false enableAWS ? false,
, enableSSH ? false enableAzure ? false,
enableSSH ? false,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -81,79 +82,64 @@ buildPythonPackage rec {
--subst-var-by dvc "$out/bin/dcv" --subst-var-by dvc "$out/bin/dcv"
''; '';
build-system = [ build-system = [ setuptools-scm ];
pythonRelaxDepsHook
setuptools-scm
];
dependencies = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
appdirs
colorama dependencies =
configobj [
distro appdirs
dpath colorama
dvc-data configobj
dvc-http distro
dvc-render dpath
dvc-studio-client dvc-data
dvc-task dvc-http
flatten-dict dvc-render
flufl-lock dvc-studio-client
funcy dvc-task
grandalf flatten-dict
gto flufl-lock
hydra-core funcy
iterative-telemetry grandalf
networkx gto
packaging hydra-core
pathspec iterative-telemetry
platformdirs networkx
psutil packaging
pydot pathspec
pygtrie platformdirs
pyparsing psutil
requests pydot
rich pygtrie
ruamel-yaml pyparsing
scmrepo requests
shortuuid rich
shtab ruamel-yaml
tabulate scmrepo
tomlkit shortuuid
tqdm shtab
typing-extensions tabulate
voluptuous tomlkit
zc-lockfile tqdm
] typing-extensions
++ lib.optionals enableGoogle passthru.optional-dependencies.gs voluptuous
++ lib.optionals enableAWS passthru.optional-dependencies.s3 zc-lockfile
++ lib.optionals enableAzure passthru.optional-dependencies.azure ]
++ lib.optionals enableSSH passthru.optional-dependencies.ssh ++ lib.optionals enableGoogle passthru.optional-dependencies.gs
++ lib.optionals (pythonOlder "3.8") [ ++ lib.optionals enableAWS passthru.optional-dependencies.s3
importlib-metadata ++ lib.optionals enableAzure passthru.optional-dependencies.azure
] ++ lib.optionals (pythonOlder "3.9") [ ++ lib.optionals enableSSH passthru.optional-dependencies.ssh
importlib-resources ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]
]; ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
azure = [ azure = [ dvc-azure ];
dvc-azure gdrive = [ dvc-gdrive ];
]; gs = [ dvc-gs ];
gdrive = [ hdfs = [ dvc-hdfs ];
dvc-gdrive s3 = [ dvc-s3 ];
]; ssh = [ dvc-ssh ];
gs = [
dvc-gs
];
hdfs = [
dvc-hdfs
];
s3 = [
dvc-s3
];
ssh = [
dvc-ssh
];
}; };
# Tests require access to real cloud services # Tests require access to real cloud services
@ -169,7 +155,10 @@ buildPythonPackage rec {
homepage = "https://dvc.org"; homepage = "https://dvc.org";
changelog = "https://github.com/iterative/dvc/releases/tag/${version}"; changelog = "https://github.com/iterative/dvc/releases/tag/${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai fab ]; maintainers = with maintainers; [
cmcdragonkai
fab
];
mainProgram = "dvc"; mainProgram = "dvc";
}; };
} }