1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, aiohttp
6, codecov
7, flake8
8, pytest
9, pytest-asyncio
10, pytest-cov
11}:
12
13buildPythonPackage rec {
14 pname = "throttler";
15 version = "1.2.2";
16
17 src = fetchFromGitHub {
18 owner = "uburuntu";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
22 };
23
24 checkInputs = [
25 aiohttp
26 codecov
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}