2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, aiohttp
|
|
|
|
, codecov
|
|
|
|
, flake8
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-cov
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "throttler";
|
|
|
|
version = "1.2.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uburuntu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aiohttp
|
|
|
|
codecov
|
|
|
|
flake8
|
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Zero-dependency Python package for easy throttling with asyncio support.";
|
|
|
|
homepage = "https://github.com/uburuntu/throttler";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ renatoGarcia ];
|
|
|
|
};
|
|
|
|
}
|