python3Packages.throttler: modernize

This commit is contained in:
Robert Schütz
2025-06-20 16:15:30 -07:00
parent 4db14bc2e7
commit 0678952343
@@ -3,17 +3,14 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
aiohttp,
flake8,
pytest,
pytest-asyncio,
pytest-cov,
setuptools,
}:
buildPythonPackage rec {
pname = "throttler";
version = "1.2.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "uburuntu";
@@ -22,12 +19,10 @@ buildPythonPackage rec {
hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
};
build-system = [ setuptools ];
checkInputs = [
aiohttp
flake8
pytest
pytest-asyncio
pytest-cov
pytestCheckHook
];
@@ -38,10 +33,11 @@ buildPythonPackage rec {
"tests/test_execution_timer.py"
];
meta = with lib; {
meta = {
changelog = "https://github.com/uburuntu/throttler/releases/tag/${src.tag}";
description = "Zero-dependency Python package for easy throttling with asyncio support";
homepage = "https://github.com/uburuntu/throttler";
license = licenses.mit;
maintainers = with maintainers; [ renatoGarcia ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ renatoGarcia ];
};
}