Commit 5d2ce410 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.googleapi-common-protos: migrate to finalAttrs

parent 5f294be3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  nix-update-script,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "googleapis-common-protos";
  version = "1.73.0";
  pyproject = true;
@@ -16,11 +16,11 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "googleapis";
    repo = "google-cloud-python";
    tag = "googleapis-common-protos-v${version}";
    tag = "googleapis-common-protos-v${finalAttrs.version}";
    hash = "sha256-LrsmLySAOTsECwxa1NaFuyZAjar0Jbg9DHNi6uqYaxk=";
  };

  sourceRoot = "${src.name}/packages/googleapis-common-protos";
  sourceRoot = "${finalAttrs.src.name}/packages/googleapis-common-protos";

  build-system = [ setuptools ];

@@ -54,8 +54,8 @@ buildPythonPackage rec {
  meta = {
    description = "Common protobufs used in Google APIs";
    homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/googleapis-common-protos";
    changelog = "https://github.com/googleapis/google-cloud-python/releases/tag/${src.tag}";
    changelog = "https://github.com/googleapis/google-cloud-python/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.sarahec ];
  };
}
})