python3Packages.google-cloud-automl: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-06-04 22:10:22 +02:00
committed by GitHub
parent 2204dfca02
commit d5827a6768

View File

@@ -15,22 +15,20 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "google-cloud-automl";
version = "2.20.0";
pyproject = true;
src = fetchPypi {
pname = "google_cloud_automl";
inherit version;
inherit (finalAttrs) version;
hash = "sha256-3BaZODxm3KaDecL6iM0JQz9mOwaOvOTnb1HJ8sCOzEA=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"protobuf"
];
pythonRelaxDeps = [ "protobuf" ];
dependencies = [
google-api-core
@@ -75,8 +73,8 @@ buildPythonPackage rec {
meta = {
description = "Cloud AutoML API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-automl";
changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-automl-v${version}/packages/google-cloud-automl";
changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-automl-v${finalAttrs.version}/packages/google-cloud-automl";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
})