python3Packages.token-bucket: init at 0.2.0

This commit is contained in:
Martin Weinelt 2021-05-22 18:39:07 +02:00
parent fc9a86afb0
commit 217b14cb2f
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestrunner
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "token-bucket";
version = "0.2.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "falconry";
repo = pname;
rev = version;
sha256 = "0kv8j2ab4knvzik2di66bgjwjxdslm2i0hjy35kn9z0dazni585s";
};
nativeBuildInputs = [
pytestrunner
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Token Bucket Implementation for Python Web Apps";
homepage = "https://github.com/falconry/token-bucket";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -8267,6 +8267,8 @@ in {
toggl-cli = callPackage ../development/python-modules/toggl-cli { };
token-bucket = callPackage ../development/python-modules/token-bucket { };
tokenizers = toPythonModule (callPackage ../development/python-modules/tokenizers { });
tokenize-rt = toPythonModule (callPackage ../development/python-modules/tokenize-rt { });