python3Packages.pyrate-limiter: init at 2.10.0
This commit is contained in:
parent
3005f20ce0
commit
d1c01ddce4
34
pkgs/development/python-modules/pyrate-limiter/default.nix
Normal file
34
pkgs/development/python-modules/pyrate-limiter/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9105,6 +9105,8 @@ self: super: with self; {
|
||||||
|
|
||||||
pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { };
|
pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { };
|
||||||
|
|
||||||
|
pyrate-limiter = callPackage ../development/python-modules/pyrate-limiter { };
|
||||||
|
|
||||||
pyreadstat = callPackage ../development/python-modules/pyreadstat {
|
pyreadstat = callPackage ../development/python-modules/pyreadstat {
|
||||||
inherit (pkgs.darwin) libiconv;
|
inherit (pkgs.darwin) libiconv;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue