2024-05-22 16:01:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-asyncio,
|
2020-10-04 01:44:16 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-throttle";
|
2021-04-13 17:44:49 +02:00
|
|
|
version = "1.0.2";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2020-10-04 01:44:16 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hallazzang";
|
2025-05-25 03:41:48 +02:00
|
|
|
repo = "asyncio-throttle";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2021-04-13 17:44:49 +02:00
|
|
|
sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv";
|
2020-10-04 01:44:16 +02:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-10-04 01:44:16 +02:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "asyncio_throttle" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple, easy-to-use throttler for asyncio";
|
|
|
|
homepage = "https://github.com/hallazzang/asyncio-throttle";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|