pythonPackages.ratelim: init at 0.1.6

This commit is contained in:
Dawid Gliwka 2021-07-10 13:34:44 +02:00
parent 66811ee570
commit 1dbc93ad54
No known key found for this signature in database
GPG key ID: C2D61EAA462E6A02
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -7418,6 +7418,8 @@ in {
gdal = pkgs.gdal_2;
};
ratelim = callPackage ../development/python-modules/ratelim { };
ratelimit = callPackage ../development/python-modules/ratelimit { };
ratelimiter = callPackage ../development/python-modules/ratelimiter { };