2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-aws4auth";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.1";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tedder";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "requests-aws4auth";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-tRo38fdWqZmutGhWv8Hks+oFaLv770RlAHYgS3S6xJA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [ requests ];
|
|
|
|
|
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
httpx = [ httpx ];
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.httpx;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "requests_aws4auth" ];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Amazon Web Services version 4 authentication for the Python Requests library";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sam-washington/requests-aws4auth";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/tedder/requests-aws4auth/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|