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