depot/third_party/nixpkgs/pkgs/development/python-modules/requests-aws4auth/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

46 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytestCheckHook
, python
, pythonOlder
, requests
, six
}:
buildPythonPackage rec {
pname = "requests-aws4auth";
version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tedder";
repo = pname;
rev = "v${version}";
hash = "sha256-/SqU/ojP9I4JXzR0c5tLzxx9UyNaVsON7LG/dbdeiH0=";
};
propagatedBuildInputs = [
httpx
requests
six
];
checkInputs = [
pytestCheckHook
];
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";
license = licenses.mit;
maintainers = with maintainers; [ basvandijk ];
};
}