1{ lib
2, buildPythonPackage
3, fetchPypi
4, decorator
5}:
6
7buildPythonPackage rec {
8 pname = "ratelim";
9 version = "0.1.6";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "07dirdd8y23706110nb0lfz5pzbrcvd9y74h64la3y8igqbk4vc2";
14 };
15
16 propagatedBuildInputs = [
17 decorator
18 ];
19
20 pythonImportsCheck = [ "ratelim" ];
21
22 # package has no tests
23 doCheck = false;
24
25 meta = with lib; {
26 homepage = "https://github.com/themiurgo/ratelim";
27 description = "Simple Python library that limits the number of times a function can be called during a time interval";
28 license = licenses.mit;
29 maintainers = with maintainers; [ dgliwka ];
30 };
31}