2021-04-07 21:08:06 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, requests, six }:
|
|
|
|
|
2018-08-26 00:12:16 +01:00
|
|
|
with lib;
|
2018-08-25 15:34:56 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-aws4auth";
|
2020-10-25 09:06:57 +00:00
|
|
|
version = "1.0.1";
|
2018-08-25 15:34:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:57 +00:00
|
|
|
sha256 = "9a4a5f4a61c49f098f5f669410308ac5b0ea2682fd511ee3a4f9ff73b5bb275a";
|
2018-08-25 15:34:56 +01:00
|
|
|
};
|
|
|
|
|
2021-04-07 21:08:06 +01:00
|
|
|
propagatedBuildInputs = [ requests six ];
|
2018-08-25 15:34:56 +01:00
|
|
|
|
2020-11-05 23:25:36 +00:00
|
|
|
# pypi package no longer contains tests
|
|
|
|
doCheck = false;
|
2020-09-18 03:19:16 +01:00
|
|
|
checkPhase = ''
|
|
|
|
cd requests_aws4auth
|
|
|
|
${python.interpreter} test/requests_aws4auth_test.py
|
|
|
|
'';
|
2018-08-25 15:34:56 +01:00
|
|
|
|
2020-11-05 23:25:36 +00:00
|
|
|
pythonImportsCheck = [ "requests_aws4auth" ];
|
|
|
|
|
2018-08-26 00:12:16 +01:00
|
|
|
meta = {
|
2018-08-25 15:34:56 +01:00
|
|
|
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sam-washington/requests-aws4auth";
|
2018-08-25 15:34:56 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.basvandijk ];
|
|
|
|
};
|
|
|
|
}
|