My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/requests-aws4auth/default.nix

49 lines
950 B

{ 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 = [
requests
six
];
passthru.optional-dependencies = {
httpx = [ httpx ];
};
checkInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ basvandijk ];
};
}