depot/third_party/nixpkgs/pkgs/development/python-modules/requests-aws4auth/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

52 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytestCheckHook
, python
, 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 ];
};
}