summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/limiter/default.nix
blob: 5addbb2c8357b956c2ae8c9fc4a9f292b799c2af (plain)
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
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  strenum,
  token-bucket,
}:

buildPythonPackage rec {
  pname = "limiter";
  version = "0.3.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "alexdelorenzo";
    repo = "limiter";
    rev = "v${version}";
    hash = "sha256-2Et4ozVf9t+tp2XtLbDk/LgLIU+jQAEAlU8hA5lpxdk=";
  };

  propagatedBuildInputs = [
    strenum
    token-bucket
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "limiter" ];

  meta = {
    description = "Python rate-limiting, thread-safe and asynchronous decorators and context managers";
    homepage = "https://github.com/alexdelorenzo/limiter";
    license = with lib.licenses; [ agpl3Only ];
    maintainers = with lib.maintainers; [ fab ];
  };
}