Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / requests-aws4auth / default.nix
blob9ce588e3206b25c2c0ef1f1a724af00131b7c576
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , httpx
5 , pytestCheckHook
6 , python
7 , pythonOlder
8 , requests
9 , six
12 buildPythonPackage rec {
13   pname = "requests-aws4auth";
14   version = "1.2.3";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "tedder";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-9ySuX7eKrSwgxgFoMdnVTsIfpnm9kVcI9AqSb+AsVaU=";
24   };
26   propagatedBuildInputs = [
27     requests
28     six
29   ];
31   passthru.optional-dependencies = {
32     httpx = [
33       httpx
34     ];
35   };
37   nativeCheckInputs = [
38     pytestCheckHook
39   ] ++ passthru.optional-dependencies.httpx;
41   pythonImportsCheck = [
42     "requests_aws4auth"
43   ];
45   meta = with lib; {
46     description = "Amazon Web Services version 4 authentication for the Python Requests library";
47     homepage = "https://github.com/sam-washington/requests-aws4auth";
48     changelog = "https://github.com/tedder/requests-aws4auth/releases/tag/v${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ basvandijk ];
51   };