depot/third_party/nixpkgs/pkgs/development/python-modules/ratelim/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

31 lines
660 B
Nix

{ 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 ];
};
}