depot/third_party/nixpkgs/pkgs/development/python-modules/requests-aws4auth/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

46 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pytestCheckHook,
pythonOlder,
requests,
six,
}:
buildPythonPackage rec {
pname = "requests-aws4auth";
version = "1.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tedder";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9ySuX7eKrSwgxgFoMdnVTsIfpnm9kVcI9AqSb+AsVaU=";
};
propagatedBuildInputs = [
requests
six
];
passthru.optional-dependencies = {
httpx = [ httpx ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.httpx;
pythonImportsCheck = [ "requests_aws4auth" ];
meta = with lib; {
description = "Amazon Web Services version 4 authentication for the Python Requests library";
homepage = "https://github.com/sam-washington/requests-aws4auth";
changelog = "https://github.com/tedder/requests-aws4auth/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ basvandijk ];
};
}