python3Packages.pygitguardian: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-07-31 21:59:39 +02:00
committed by GitHub
parent 71d73d36be
commit 7065be0403

View File

@@ -13,7 +13,7 @@
vcrpy,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pygitguardian";
version = "1.33.1";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "GitGuardian";
repo = "py-gitguardian";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-K0hsOfU0tCvjTjOFaDrYNATO31YgbfgAYkZh1DxQNIw=";
};
@@ -48,8 +48,8 @@ buildPythonPackage rec {
meta = {
description = "Library to access the GitGuardian API";
homepage = "https://github.com/GitGuardian/py-gitguardian";
changelog = "https://github.com/GitGuardian/py-gitguardian/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/GitGuardian/py-gitguardian/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})