python3Packages.requests-ratelimiter: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-03-06 16:26:03 +01:00
committed by GitHub
parent b8a264a88f
commit 9f6bce3ccc
@@ -10,7 +10,7 @@
requests-cache,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "requests-ratelimiter";
version = "0.9.2";
pyproject = true;
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "JWCook";
repo = "requests-ratelimiter";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-6Uw6JPArOzKD7va6mthumCDW/G0Yn/C1d+1VflrJ/JY=";
};
@@ -42,8 +42,8 @@ buildPythonPackage rec {
broken = lib.versionOlder pyrate-limiter.version "4";
description = "Module for rate-limiting for requests";
homepage = "https://github.com/JWCook/requests-ratelimiter";
changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.tag}/HISTORY.md";
changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${finalAttrs.src.tag}/HISTORY.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}
})