11 buildPythonPackage rec {
12 pname = "token-bucket";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-dazqJRpC8FUHOhgKFzDnIl5CT2L74J2o2Hsm0IQf4Cg=";
26 # Replace imp with importlib, https://github.com/falconry/token-bucket/pull/24
28 name = "remove-imp.patch";
29 url = "https://github.com/falconry/token-bucket/commit/10a3c9f4de00f4933349f66b4c72b6c96db6e766.patch";
30 hash = "sha256-Hk5+i3xzeA3F1kXRaRarWT9mff2lT2WNmTfTZvYzGYI=";
35 substituteInPlace setup.py \
36 --replace "'pytest-runner'" ""
47 doCheck = !stdenv.isDarwin;
50 description = "Token Bucket Implementation for Python Web Apps";
51 homepage = "https://github.com/falconry/token-bucket";
52 changelog = "https://github.com/falconry/token-bucket/releases/tag/${version}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ hexa ];