From adf68b1ff7914f032cb89641ed420065c5642439 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 7 Nov 2025 23:56:22 -0500 Subject: [PATCH] python3Packages.aiolimiter: modernize --- .../python-modules/aiolimiter/default.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/aiolimiter/default.nix b/pkgs/development/python-modules/aiolimiter/default.nix index ecd905a39e6b..9569cfb0d133 100644 --- a/pkgs/development/python-modules/aiolimiter/default.nix +++ b/pkgs/development/python-modules/aiolimiter/default.nix @@ -3,20 +3,16 @@ buildPythonPackage, fetchFromGitHub, poetry-core, - importlib-metadata, pytest-asyncio, pytest-cov-stub, pytestCheckHook, - pythonOlder, toml, }: buildPythonPackage rec { pname = "aiolimiter"; version = "1.2.1"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "mjpieters"; @@ -33,9 +29,7 @@ buildPythonPackage rec { 'asyncio_default_fixture_loop_scope = session' ''; - nativeBuildInputs = [ poetry-core ]; - - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio @@ -46,11 +40,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiolimiter" ]; - meta = with lib; { + meta = { description = "Implementation of a rate limiter for asyncio"; homepage = "https://github.com/mjpieters/aiolimiter"; changelog = "https://github.com/mjpieters/aiolimiter/blob/v${version}/CHANGELOG.md"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ fab ]; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ fab ]; }; }