python3Packages.py-ocsf-models: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-02-19 16:58:42 +01:00
committed by GitHub
parent 957588c654
commit ab2b7731f2
@@ -9,7 +9,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "py-ocsf-models";
version = "0.8.1";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "prowler-cloud";
repo = "py-ocsf-models";
tag = version;
tag = finalAttrs.version;
hash = "sha256-Wtls4Ei1160hxvZjdyH0rJCQWEN/CwpxfllwgGTzMog=";
};
@@ -41,8 +41,8 @@ buildPythonPackage rec {
meta = {
description = "OCSF models in Python using Pydantic";
homepage = "https://github.com/prowler-cloud/py-ocsf-models";
changelog = "https://github.com/prowler-cloud/py-ocsf-models/releases/tag/${src.tag}";
changelog = "https://github.com/prowler-cloud/py-ocsf-models/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})