2020-09-25 04:45:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, requests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
with lib;
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-aws4auth";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "2950f6ff686b5a452a269076d990e4821d959b61cfac319c3d3c6daaa5db55ce";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
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
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|