1{ 2 lib, 3 buildPythonPackage, 4 fastapi, 5 fetchFromGitHub, 6 hatchling, 7 hatch-regex-commit, 8 httpx, 9 pytest-asyncio, 10 pytest-cov-stub, 11 pytest-mock, 12 pytestCheckHook, 13 respx, 14}: 15 16buildPythonPackage rec { 17 pname = "httpx-oauth"; 18 version = "0.16.1"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "frankie567"; 23 repo = "httpx-oauth"; 24 tag = "v${version}"; 25 hash = "sha256-/2IBAEZrK0Do7t9g+MWsKuIlcg0ANCfOoagVwTbBso8="; 26 }; 27 28 build-system = [ 29 hatchling 30 hatch-regex-commit 31 ]; 32 33 dependencies = [ httpx ]; 34 35 nativeCheckInputs = [ 36 fastapi 37 pytest-asyncio 38 pytest-cov-stub 39 pytest-mock 40 pytestCheckHook 41 respx 42 ]; 43 44 pythonImportsCheck = [ "httpx_oauth" ]; 45 46 meta = with lib; { 47 description = "Async OAuth client using HTTPX"; 48 homepage = "https://github.com/frankie567/httpx-oauth"; 49 changelog = "https://github.com/frankie567/httpx-oauth/releases/tag/v${version}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ SuperSandro2000 ]; 52 }; 53}