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