summary refs log tree commit diff
path: root/pkgs/development/python-modules/token-bucket/default.nix
blob: f1e90114ac6d443ef160331674c7e562099a7168 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestrunner
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "token-bucket";
  version = "0.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "falconry";
    repo = pname;
    rev = version;
    sha256 = "0a703y2d09kvv2l9vq7vc97l4pi2wwq1f2hq783mbw2238jymb3m";
  };

  nativeBuildInputs = [
    pytestrunner
  ];

  checkInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Token Bucket Implementation for Python Web Apps";
    homepage = "https://github.com/falconry/token-bucket";
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
  };
}