1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 aiohttp,
7 flake8,
8 pytest,
9 pytest-asyncio,
10 pytest-cov,
11}:
12
13buildPythonPackage rec {
14 pname = "throttler";
15 version = "1.2.2";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "uburuntu";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
23 };
24
25 checkInputs = [
26 aiohttp
27 flake8
28 pytest
29 pytest-asyncio
30 pytest-cov
31 pytestCheckHook
32 ];
33
34 pytestFlagsArray = [ "tests/" ];
35
36 meta = with lib; {
37 description = "Zero-dependency Python package for easy throttling with asyncio support";
38 homepage = "https://github.com/uburuntu/throttler";
39 license = licenses.mit;
40 maintainers = with maintainers; [ renatoGarcia ];
41 };
42}