1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 httpx, 7 microsoft-kiota-abstractions, 8 opentelemetry-api, 9 opentelemetry-sdk, 10 pytest-asyncio, 11 pytest-mock, 12 pytestCheckHook, 13 pythonOlder, 14 urllib3, 15}: 16 17buildPythonPackage rec { 18 pname = "microsoft-kiota-http"; 19 version = "1.9.3"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.9"; 23 24 src = fetchFromGitHub { 25 owner = "microsoft"; 26 repo = "kiota-python"; 27 tag = "microsoft-kiota-http-v${version}"; 28 hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8="; 29 }; 30 31 sourceRoot = "source/packages/http/httpx/"; 32 33 build-system = [ poetry-core ]; 34 35 dependencies = [ 36 httpx 37 microsoft-kiota-abstractions 38 opentelemetry-api 39 opentelemetry-sdk 40 ] ++ httpx.optional-dependencies.http2; 41 42 nativeCheckInputs = [ 43 pytest-asyncio 44 pytest-mock 45 pytestCheckHook 46 urllib3 47 ]; 48 49 pythonImportsCheck = [ "kiota_http" ]; 50 51 meta = with lib; { 52 description = "HTTP request adapter implementation for Kiota clients for Python"; 53 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/http/httpx"; 54 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-http-${src.tag}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}