504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
32 lines
685 B
Nix
32 lines
685 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, decorator
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ratelim";
|
|
version = "0.1.6";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|