Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
httpx,
|
|
microsoft-kiota-abstractions,
|
|
opentelemetry-api,
|
|
opentelemetry-sdk,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
urllib3,
|
|
gitUpdater,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "microsoft-kiota-http";
|
|
version = "1.9.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "kiota-python";
|
|
tag = "microsoft-kiota-http-v${version}";
|
|
hash = "sha256-ovmGka0YxhjPQYodHAMpcrqLMpXEqSTeky3n/rC7Ohs=";
|
|
};
|
|
|
|
sourceRoot = "${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 = with lib; {
|
|
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/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|