fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
996 B
Nix
36 lines
996 B
Nix
{
|
|
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" ];
|
|
|
|
# The only consumer of this is Lutris (via python-moddb), and it requires 2.x,
|
|
# so don't auto-update it and break Lutris every python-updates.
|
|
# FIXME: remove when python-moddb updates.
|
|
passthru.skipBulkUpdate = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|