From eaffa2adf20debd49ab293b93aa4464a1711c705 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Jun 2026 08:22:05 +0200 Subject: [PATCH] python3Packages.slowapi: migrate to finalAttrs --- .../development/python-modules/slowapi/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/slowapi/default.nix b/pkgs/development/python-modules/slowapi/default.nix index aaff6c495eb6..4edaf8921aee 100644 --- a/pkgs/development/python-modules/slowapi/default.nix +++ b/pkgs/development/python-modules/slowapi/default.nix @@ -13,7 +13,7 @@ starlette, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "slowapi"; version = "0.1.10"; pyproject = true; @@ -21,13 +21,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "laurentS"; repo = "slowapi"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-YNL/xfs8fmkAGagMhqJX3tXoltjHznZjUrF/a2RWCDs="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ limits redis ]; @@ -52,8 +52,8 @@ buildPythonPackage rec { meta = { description = "Python library for API rate limiting"; homepage = "https://github.com/laurentS/slowapi"; - changelog = "https://github.com/laurentS/slowapi/blob/v${version}/CHANGELOG.md"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/laurentS/slowapi/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})