1{
2 lib,
3 aiohttp,
4 azure-core,
5 buildPythonPackage,
6 fetchFromGitHub,
7 poetry-core,
8 microsoft-kiota-abstractions,
9 opentelemetry-api,
10 opentelemetry-sdk,
11 pytest-asyncio,
12 pytest-mock,
13 pytestCheckHook,
14 pythonOlder,
15 gitUpdater,
16}:
17
18buildPythonPackage rec {
19 pname = "microsoft-kiota-authentication-azure";
20 version = "1.9.7";
21 pyproject = true;
22
23 disabled = pythonOlder "3.9";
24
25 src = fetchFromGitHub {
26 owner = "microsoft";
27 repo = "kiota-python";
28 tag = "microsoft-kiota-authentication-azure-v${version}";
29 hash = "sha256-ovmGka0YxhjPQYodHAMpcrqLMpXEqSTeky3n/rC7Ohs=";
30 };
31
32 sourceRoot = "${src.name}/packages/authentication/azure/";
33
34 build-system = [ poetry-core ];
35
36 dependencies = [
37 aiohttp
38 azure-core
39 microsoft-kiota-abstractions
40 opentelemetry-api
41 opentelemetry-sdk
42 ];
43
44 nativeCheckInputs = [
45 pytest-asyncio
46 pytest-mock
47 pytestCheckHook
48 ];
49
50 pythonImportsCheck = [ "kiota_authentication_azure" ];
51
52 passthru.updateScript = gitUpdater {
53 rev-prefix = "microsoft-kiota-authentication-azure-v";
54 };
55
56 meta = with lib; {
57 description = "Kiota Azure authentication provider";
58 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/authentication/azure";
59 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-authentication-azure-${src.tag}";
60 license = licenses.mit;
61 maintainers = with maintainers; [ fab ];
62 };
63}