1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools 6, setuptools-scm 7, wheel 8, httpx 9, pyjwt 10, pytest-httpx 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "httpx-auth"; 16 version = "0.18.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "Colin-b"; 23 repo = "httpx_auth"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-kK31jpS9Ax5kNkvUSbWWIC6CKdZKVJ28kLS0iuntWqg="; 26 }; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 wheel 32 ]; 33 34 propagatedBuildInputs = [ 35 httpx 36 ]; 37 38 nativeCheckInputs = [ 39 pyjwt 40 pytest-httpx 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "httpx_auth" ]; 45 46 __darwinAllowLocalNetworking = true; 47 48 meta = with lib; { 49 description = "Authentication classes to be used with httpx"; 50 homepage = "https://github.com/Colin-b/httpx_auth"; 51 changelog = "https://github.com/Colin-b/httpx_auth/blob/${src.rev}/CHANGELOG.md"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ natsukium ]; 54 }; 55}