1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 opentelemetry-api,
7 opentelemetry-sdk,
8 pytest-asyncio,
9 pytest-mock,
10 pytestCheckHook,
11 pythonOlder,
12 std-uritemplate,
13}:
14
15buildPythonPackage rec {
16 pname = "microsoft-kiota-abstractions";
17 version = "1.3.3";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "microsoft";
24 repo = "kiota-abstractions-python";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-TgHj5Ga6Aw/sN2Hobn0OocFB/iGRHTKEeOa2j2aqnRY=";
27 };
28
29 build-system = [ flit-core ];
30
31 dependencies = [
32 opentelemetry-api
33 opentelemetry-sdk
34 std-uritemplate
35 ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytest-mock
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "kiota_abstractions" ];
44
45 meta = with lib; {
46 description = "Abstractions library for Kiota generated Python clients";
47 homepage = "https://github.com/microsoft/kiota-abstractions-python";
48 changelog = "https://github.com/microsoft/kiota-abstractions-python/blob/${version}/CHANGELOG.md";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}