2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
decorator,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ratelim";
|
|
|
|
version = "0.1.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "07dirdd8y23706110nb0lfz5pzbrcvd9y74h64la3y8igqbk4vc2";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ decorator ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|