nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 992 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 pytestCheckHook, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "requests-aws4auth"; 13 version = "1.3.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tedder"; 18 repo = "requests-aws4auth"; 19 tag = "v${version}"; 20 hash = "sha256-tRo38fdWqZmutGhWv8Hks+oFaLv770RlAHYgS3S6xJA="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ requests ]; 26 27 optional-dependencies = { 28 httpx = [ httpx ]; 29 }; 30 31 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.httpx; 32 33 pythonImportsCheck = [ "requests_aws4auth" ]; 34 35 meta = { 36 description = "Amazon Web Services version 4 authentication for the Python Requests library"; 37 homepage = "https://github.com/sam-washington/requests-aws4auth"; 38 changelog = "https://github.com/tedder/requests-aws4auth/releases/tag/v${version}"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ basvandijk ]; 41 }; 42}