python3Packages.pyrate-limiter: init at 2.10.0

This commit is contained in:
Ilan Joselevich 2023-02-12 20:44:03 +02:00
parent 3005f20ce0
commit d1c01ddce4
No known key found for this signature in database
2 changed files with 36 additions and 0 deletions

View file

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

View file

@ -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;
};