1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-runner 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "token-bucket"; 10 version = "0.3.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "falconry"; 15 repo = pname; 16 rev = version; 17 sha256 = "0a703y2d09kvv2l9vq7vc97l4pi2wwq1f2hq783mbw2238jymb3m"; 18 }; 19 20 nativeBuildInputs = [ 21 pytest-runner 22 ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 ]; 27 28 meta = with lib; { 29 description = "Token Bucket Implementation for Python Web Apps"; 30 homepage = "https://github.com/falconry/token-bucket"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ hexa ]; 33 }; 34}