1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
httpx,
microsoft-kiota-abstractions,
opentelemetry-api,
opentelemetry-sdk,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
urllib3,
gitUpdater,
}:
buildPythonPackage rec {
pname = "microsoft-kiota-http";
version = "1.9.8";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoft";
repo = "kiota-python";
tag = "microsoft-kiota-http-v${version}";
hash = "sha256-05/I06p3zBc/Kb7H8dMEbUxFr0dOXSSBuIyEGZ4twhA=";
};
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|