python313Packages.dvc: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-17 20:18:31 +01:00
parent 1c214e116a
commit a579bb4164
@@ -43,7 +43,6 @@
pydot,
pygtrie,
pyparsing,
pythonOlder,
requests,
rich,
ruamel-yaml,
@@ -63,17 +62,15 @@
enableSSH ? false,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "dvc";
version = "3.66.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "iterative";
repo = "dvc";
tag = version;
tag = finalAttrs.version;
hash = "sha256-IvO5JEM3P0ggmufrBFv7fUBwoKzNIgWMUnOo31rYJRk=";
};
@@ -135,10 +132,10 @@ buildPythonPackage rec {
voluptuous
zc-lockfile
]
++ lib.optionals enableGoogle optional-dependencies.gs
++ lib.optionals enableAWS optional-dependencies.s3
++ lib.optionals enableAzure optional-dependencies.azure
++ lib.optionals enableSSH optional-dependencies.ssh;
++ lib.optionals enableGoogle finalAttrs.passthru.optional-dependencies.gs
++ lib.optionals enableAWS finalAttrs.passthru.optional-dependencies.s3
++ lib.optionals enableAzure finalAttrs.passthru.optional-dependencies.azure
++ lib.optionals enableSSH finalAttrs.passthru.optional-dependencies.ssh;
optional-dependencies = {
azure = [ dvc-azure ];
@@ -165,7 +162,7 @@ buildPythonPackage rec {
meta = {
description = "Version Control System for Machine Learning Projects";
homepage = "https://dvc.org";
changelog = "https://github.com/iterative/dvc/releases/tag/${src.tag}";
changelog = "https://github.com/iterative/dvc/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
cmcdragonkai
@@ -173,4 +170,4 @@ buildPythonPackage rec {
];
mainProgram = "dvc";
};
}
})