python3Packages.prometheus-fastapi-instrumenter: switch to finalAttrs

This commit is contained in:
Doron Behar
2026-07-06 16:54:14 +03:00
parent 622ba6ab30
commit f485caf604
@@ -13,7 +13,7 @@
starlette,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "prometheus-fastapi-instrumentator";
version = "7.1.0";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "trallnag";
repo = "prometheus-fastapi-instrumentator";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-54h/kwIdzFzxdYglwcEBPkLYno1YH2iWklg35qY2b00=";
};
@@ -50,7 +50,7 @@ buildPythonPackage rec {
meta = {
description = "Instrument FastAPI with Prometheus metrics";
homepage = "https://github.com/trallnag/prometheus-fastapi-instrumentator";
changelog = "https://github.com/trallnag/prometheus-fastapi-instrumentator/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/trallnag/prometheus-fastapi-instrumentator/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = with lib.licenses; [
isc
bsd3
@@ -58,4 +58,4 @@ buildPythonPackage rec {
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.unix;
};
}
})