summary refs log tree commit diff
path: root/pkgs/development/python-modules/ratelim/default.nix
blob: 8fc3323ce1b5b6a07e8dbfb6271a20216d82e19e (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
{ lib
, buildPythonPackage
, fetchPypi
, decorator
}:

buildPythonPackage rec {
  pname = "ratelim";
  version = "0.1.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "07dirdd8y23706110nb0lfz5pzbrcvd9y74h64la3y8igqbk4vc2";
  };

  propagatedBuildInputs = [
    decorator
  ];

  pythonImportsCheck = [ "ratelim" ];

  # package has no tests
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/themiurgo/ratelim";
    description = "Simple Python library that limits the number of times a function can be called during a time interval";
    license = licenses.mit;
    maintainers = with maintainers; [ dgliwka ];
  };
}