Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5}: 6 7buildPythonPackage rec { 8 pname = "pyrate-limiter"; 9 version = "2.10.0"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "vutran1710"; 14 repo = "PyrateLimiter"; 15 rev = "v${version}"; 16 hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0="; 17 }; 18 19 nativeBuildInputs = [ 20 poetry-core 21 ]; 22 23 pythonImportsCheck = [ 24 "pyrate_limiter" 25 ]; 26 27 meta = with lib; { 28 description = "Python Rate-Limiter using Leaky-Bucket Algorimth Family"; 29 homepage = "https://github.com/vutran1710/PyrateLimiter"; 30 changelog = "https://github.com/vutran1710/PyrateLimiter/blob/${src.rev}/CHANGELOG.md"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ kranzes ]; 33 }; 34}