1{ lib, buildPythonPackage, fetchPypi, python, requests, six }:
2
3with lib;
4buildPythonPackage rec {
5 pname = "requests-aws4auth";
6 version = "1.1.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "c0883346ce30b5018903a67da88df72f73ff06e1a320845bba9cd85e811ba0ba";
11 };
12
13 propagatedBuildInputs = [ requests six ];
14
15 # pypi package no longer contains tests
16 doCheck = false;
17 checkPhase = ''
18 cd requests_aws4auth
19 ${python.interpreter} test/requests_aws4auth_test.py
20 '';
21
22 pythonImportsCheck = [ "requests_aws4auth" ];
23
24 meta = {
25 description = "Amazon Web Services version 4 authentication for the Python Requests library.";
26 homepage = "https://github.com/sam-washington/requests-aws4auth";
27 license = licenses.mit;
28 maintainers = [ maintainers.basvandijk ];
29 };
30}