Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / requests-ratelimiter / default.nix
blobaf5304341b2871edf143c8ff8082bc7c53eb3860
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pyrate-limiter
6 , requests
7 , pytestCheckHook
8 , requests-mock
9 }:
11 buildPythonPackage rec {
12   pname = "requests-ratelimiter";
13   version = "0.6.0";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "JWCook";
18     repo = "requests-ratelimiter";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-ctCD+vlV90KCO7DdPUZJipBC/lz6NXx0gYuHHrs22IY=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   propagatedBuildInputs = [
28     pyrate-limiter
29     requests
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     requests-mock
35   ];
37   pythonImportsCheck = [ "requests_ratelimiter" ];
39   meta = with lib; {
40     description = "Easy rate-limiting for python requests";
41     homepage = "https://github.com/JWCook/requests-ratelimiter";
42     changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.rev}/HISTORY.md";
43     license = licenses.mit;
44     maintainers = with maintainers; [ mbalatsko ];
45   };