python3Packages.aiolimiter: modernize

This commit is contained in:
Ihar Hrachyshka
2025-11-07 23:56:22 -05:00
parent 1530a2b554
commit adf68b1ff7
@@ -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 ];
};
}