2021-04-08 16:26:57 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, requests, six }:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
with lib;
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-aws4auth";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "c0883346ce30b5018903a67da88df72f73ff06e1a320845bba9cd85e811ba0ba";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [ requests six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
# pypi package no longer contains tests
|
|
|
|
doCheck = false;
|
2020-09-25 04:45:31 +00:00
|
|
|
checkPhase = ''
|
|
|
|
cd requests_aws4auth
|
|
|
|
${python.interpreter} test/requests_aws4auth_test.py
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
pythonImportsCheck = [ "requests_aws4auth" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
|
|
|
homepage = "https://github.com/sam-washington/requests-aws4auth";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.basvandijk ];
|
|
|
|
};
|
|
|
|
}
|