Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, httpx 5, pytestCheckHook 6, python 7, pythonOlder 8, requests 9, six 10}: 11 12buildPythonPackage rec { 13 pname = "requests-aws4auth"; 14 version = "1.2.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "tedder"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-9ySuX7eKrSwgxgFoMdnVTsIfpnm9kVcI9AqSb+AsVaU="; 24 }; 25 26 propagatedBuildInputs = [ 27 requests 28 six 29 ]; 30 31 passthru.optional-dependencies = { 32 httpx = [ 33 httpx 34 ]; 35 }; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ] ++ passthru.optional-dependencies.httpx; 40 41 pythonImportsCheck = [ 42 "requests_aws4auth" 43 ]; 44 45 meta = with lib; { 46 description = "Amazon Web Services version 4 authentication for the Python Requests library"; 47 homepage = "https://github.com/sam-washington/requests-aws4auth"; 48 changelog = "https://github.com/tedder/requests-aws4auth/releases/tag/v${version}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ basvandijk ]; 51 }; 52}