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 tag = "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 disabledTestPaths = [ 37 # time sensitive tests 38 "tests/test_execution_timer.py" 39 ]; 40 41 meta = with lib; { 42 description = "Zero-dependency Python package for easy throttling with asyncio support"; 43 homepage = "https://github.com/uburuntu/throttler"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ renatoGarcia ]; 46 }; 47}