1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 pytest-asyncio, 8}: 9 10buildPythonPackage rec { 11 pname = "asyncio-throttle"; 12 version = "1.0.2"; 13 format = "setuptools"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "hallazzang"; 18 repo = "asyncio-throttle"; 19 rev = "v${version}"; 20 sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv"; 21 }; 22 23 nativeCheckInputs = [ 24 pytest-asyncio 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ "asyncio_throttle" ]; 29 30 meta = with lib; { 31 description = "Simple, easy-to-use throttler for asyncio"; 32 homepage = "https://github.com/hallazzang/asyncio-throttle"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ hexa ]; 35 }; 36}