Commit dede93fc authored by Maksym Balatsko's avatar Maksym Balatsko Committed by Yt
Browse files

python3Packages.requests-ratelimiter: init at 0.4.2

parent c085e659
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };