2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
appdirs,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorama,
|
|
|
|
configobj,
|
|
|
|
distro,
|
|
|
|
dpath,
|
|
|
|
dvc-azure,
|
|
|
|
dvc-data,
|
|
|
|
dvc-gdrive,
|
|
|
|
dvc-gs,
|
|
|
|
dvc-hdfs,
|
|
|
|
dvc-http,
|
|
|
|
dvc-render,
|
|
|
|
dvc-s3,
|
|
|
|
dvc-ssh,
|
|
|
|
dvc-studio-client,
|
|
|
|
dvc-task,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flatten-dict,
|
|
|
|
flufl-lock,
|
|
|
|
funcy,
|
|
|
|
grandalf,
|
|
|
|
gto,
|
|
|
|
hydra-core,
|
|
|
|
importlib-metadata,
|
|
|
|
importlib-resources,
|
|
|
|
iterative-telemetry,
|
|
|
|
networkx,
|
|
|
|
packaging,
|
|
|
|
pathspec,
|
|
|
|
platformdirs,
|
|
|
|
psutil,
|
|
|
|
pydot,
|
|
|
|
pygtrie,
|
|
|
|
pyparsing,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
rich,
|
|
|
|
ruamel-yaml,
|
|
|
|
scmrepo,
|
|
|
|
setuptools-scm,
|
|
|
|
shortuuid,
|
|
|
|
shtab,
|
|
|
|
tabulate,
|
|
|
|
tomlkit,
|
|
|
|
tqdm,
|
|
|
|
typing-extensions,
|
|
|
|
voluptuous,
|
|
|
|
zc-lockfile,
|
|
|
|
enableGoogle ? false,
|
|
|
|
enableAWS ? false,
|
|
|
|
enableAzure ? false,
|
|
|
|
enableSSH ? false,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dvc";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.55.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "dvc";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-yNnOSYh4lCefTnIgNstsKaRbrPCgSiWEgKeF66KD66k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"dvc-data"
|
|
|
|
"platformdirs"
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
2024-01-25 14:12:00 +00:00
|
|
|
substituteInPlace dvc/analytics.py \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail 'enabled = not os.getenv(DVC_NO_ANALYTICS)' 'enabled = False'
|
2022-08-12 12:06:08 +00:00
|
|
|
substituteInPlace dvc/daemon.py \
|
|
|
|
--subst-var-by dvc "$out/bin/dcv"
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies =
|
|
|
|
[
|
|
|
|
appdirs
|
|
|
|
colorama
|
|
|
|
configobj
|
|
|
|
distro
|
|
|
|
dpath
|
|
|
|
dvc-data
|
|
|
|
dvc-http
|
|
|
|
dvc-render
|
|
|
|
dvc-studio-client
|
|
|
|
dvc-task
|
|
|
|
flatten-dict
|
|
|
|
flufl-lock
|
|
|
|
funcy
|
|
|
|
grandalf
|
|
|
|
gto
|
|
|
|
hydra-core
|
|
|
|
iterative-telemetry
|
|
|
|
networkx
|
|
|
|
packaging
|
|
|
|
pathspec
|
|
|
|
platformdirs
|
|
|
|
psutil
|
|
|
|
pydot
|
|
|
|
pygtrie
|
|
|
|
pyparsing
|
|
|
|
requests
|
|
|
|
rich
|
|
|
|
ruamel-yaml
|
|
|
|
scmrepo
|
|
|
|
shortuuid
|
|
|
|
shtab
|
|
|
|
tabulate
|
|
|
|
tomlkit
|
|
|
|
tqdm
|
|
|
|
typing-extensions
|
|
|
|
voluptuous
|
|
|
|
zc-lockfile
|
|
|
|
]
|
|
|
|
++ lib.optionals enableGoogle passthru.optional-dependencies.gs
|
|
|
|
++ lib.optionals enableAWS passthru.optional-dependencies.s3
|
|
|
|
++ lib.optionals enableAzure passthru.optional-dependencies.azure
|
|
|
|
++ lib.optionals enableSSH passthru.optional-dependencies.ssh
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
azure = [ dvc-azure ];
|
|
|
|
gdrive = [ dvc-gdrive ];
|
|
|
|
gs = [ dvc-gs ];
|
|
|
|
hdfs = [ dvc-hdfs ];
|
|
|
|
s3 = [ dvc-s3 ];
|
|
|
|
ssh = [ dvc-ssh ];
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
# Tests require access to real cloud services
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dvc"
|
|
|
|
"dvc.api"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Version Control System for Machine Learning Projects";
|
|
|
|
homepage = "https://dvc.org";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/iterative/dvc/releases/tag/${version}";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
cmcdragonkai
|
|
|
|
fab
|
|
|
|
];
|
|
|
|
mainProgram = "dvc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|