python3Packages.requests-ratelimiter: init at 0.4.2

This commit is contained in:
Maksym Balatsko 2023-10-10 09:24:16 -07:00 committed by Yt
parent c085e65903
commit dede93fc17
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyrate-limiter
, requests
, pytestCheckHook
, requests-mock
}:
buildPythonPackage rec {
pname = "requests-ratelimiter";
version = "0.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "JWCook";
repo = "requests-ratelimiter";
rev = "v${version}";
hash = "sha256-w4cBQRpk9UTuGA0lPDsqpQ3UEIQdYe38NYXz+V4+Lvc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pyrate-limiter
requests
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "requests_ratelimiter" ];
meta = with lib; {
description = "Easy rate-limiting for python requests";
homepage = "https://github.com/JWCook/requests-ratelimiter";
changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.rev}/HISTORY.md";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}

View file

@ -12113,6 +12113,8 @@ self: super: with self; {
requests-pkcs12 = callPackage ../development/python-modules/requests-pkcs12 { };
requests-ratelimiter = callPackage ../development/python-modules/requests-ratelimiter { };
requests-toolbelt = callPackage ../development/python-modules/requests-toolbelt { };
requests-unixsocket = callPackage ../development/python-modules/requests-unixsocket { };