Files
nixpkgs/pkgs/development/python-modules/microsoft-kiota-http/default.nix
2026-06-03 21:54:07 +02:00

62 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
httpx,
microsoft-kiota-abstractions,
opentelemetry-api,
opentelemetry-sdk,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
urllib3,
gitUpdater,
}:
buildPythonPackage (finalAttrs: {
pname = "microsoft-kiota-http";
version = "1.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoft";
repo = "kiota-python";
tag = "microsoft-kiota-http-v${finalAttrs.version}";
hash = "sha256-rj0NpuXvqS5rB6TrD3FyuMWb7Dl8/SIBcW/Lzj4cY6I=";
};
sourceRoot = "${finalAttrs.src.name}/packages/http/httpx/";
build-system = [ poetry-core ];
dependencies = [
httpx
microsoft-kiota-abstractions
opentelemetry-api
opentelemetry-sdk
]
++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
urllib3
];
pythonImportsCheck = [ "kiota_http" ];
passthru.updateScript = gitUpdater {
rev-prefix = "microsoft-kiota-http-v";
};
meta = {
description = "HTTP request adapter implementation for Kiota clients for Python";
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/http/httpx";
changelog = "https://github.com/microsoft/kiota-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})