vscode-extensions.yoavbls.pretty-ts-errors: 0.5.4 -> 0.6.1 (#363464)
[NixPkgs.git] / pkgs / development / python-modules / requests-ratelimiter / default.nix
bloba7814d9a0126fa83bd14f00c2f5c3d9bb7d24800
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pyrate-limiter,
7   pytestCheckHook,
8   pythonOlder,
9   requests-mock,
10   requests,
11   requests-cache,
14 buildPythonPackage rec {
15   pname = "requests-ratelimiter";
16   version = "0.7.0";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "JWCook";
23     repo = "requests-ratelimiter";
24     tag = "v${version}";
25     hash = "sha256-DS4BzS8AD4axniyV6jVYXWZ6cQLvMPp8tdGoBhYu51o=";
26   };
28   build-system = [ poetry-core ];
30   dependencies = [
31     pyrate-limiter
32     requests
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     requests-cache
38     requests-mock
39   ];
41   pythonImportsCheck = [ "requests_ratelimiter" ];
43   meta = with lib; {
44     description = "Module for rate-limiting for requests";
45     homepage = "https://github.com/JWCook/requests-ratelimiter";
46     changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.rev}/HISTORY.md";
47     license = licenses.mit;
48     maintainers = with maintainers; [ mbalatsko ];
49   };