Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, httpx
5, pytestCheckHook
6, python
7, pythonOlder
8, requests
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "requests-aws4auth";
14 version = "1.1.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "tedder";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-/SqU/ojP9I4JXzR0c5tLzxx9UyNaVsON7LG/dbdeiH0=";
24 };
25
26 propagatedBuildInputs = [
27 requests
28 six
29 ];
30
31 passthru.optional-dependencies = {
32 httpx = [ httpx ];
33 };
34
35 checkInputs = [
36 pytestCheckHook
37 ] ++ passthru.optional-dependencies.httpx;
38
39 pythonImportsCheck = [
40 "requests_aws4auth"
41 ];
42
43 meta = with lib; {
44 description = "Amazon Web Services version 4 authentication for the Python Requests library";
45 homepage = "https://github.com/sam-washington/requests-aws4auth";
46 license = licenses.mit;
47 maintainers = with maintainers; [ basvandijk ];
48 };
49}