Unverified Commit d1c01ddc authored by Ilan Joselevich's avatar Ilan Joselevich
Browse files

python3Packages.pyrate-limiter: init at 2.10.0

parent 3005f20c
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:

buildPythonPackage rec {
  pname = "pyrate-limiter";
  version = "2.10.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "vutran1710";
    repo = "PyrateLimiter";
    rev = "v${version}";
    hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  pythonImportsCheck = [
    "pyrate_limiter"
  ];

  meta = with lib; {
    description = "Python Rate-Limiter using Leaky-Bucket Algorimth Family";
    homepage = "https://github.com/vutran1710/PyrateLimiter";
    changelog = "https://github.com/vutran1710/PyrateLimiter/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ kranzes ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9105,6 +9105,8 @@ self: super: with self; {

  pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { };

  pyrate-limiter = callPackage ../development/python-modules/pyrate-limiter { };

  pyreadstat = callPackage ../development/python-modules/pyreadstat {
    inherit (pkgs.darwin) libiconv;
  };