nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.4 kB view raw
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 urllib3, 14 gitUpdater, 15}: 16 17buildPythonPackage rec { 18 pname = "microsoft-kiota-http"; 19 version = "1.9.8"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "microsoft"; 24 repo = "kiota-python"; 25 tag = "microsoft-kiota-http-v${version}"; 26 hash = "sha256-05/I06p3zBc/Kb7H8dMEbUxFr0dOXSSBuIyEGZ4twhA="; 27 }; 28 29 sourceRoot = "${src.name}/packages/http/httpx/"; 30 31 build-system = [ poetry-core ]; 32 33 dependencies = [ 34 httpx 35 microsoft-kiota-abstractions 36 opentelemetry-api 37 opentelemetry-sdk 38 ] 39 ++ httpx.optional-dependencies.http2; 40 41 nativeCheckInputs = [ 42 pytest-asyncio 43 pytest-mock 44 pytestCheckHook 45 urllib3 46 ]; 47 48 pythonImportsCheck = [ "kiota_http" ]; 49 50 passthru.updateScript = gitUpdater { 51 rev-prefix = "microsoft-kiota-http-v"; 52 }; 53 54 meta = { 55 description = "HTTP request adapter implementation for Kiota clients for Python"; 56 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/http/httpx"; 57 changelog = "https://github.com/microsoft/kiota-python/releases/tag/${src.tag}"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ fab ]; 60 }; 61}