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}:
16
17buildPythonPackage rec {
18 pname = "microsoft-kiota-authentication-azure";
19 version = "1.9.3";
20 pyproject = true;
21
22 disabled = pythonOlder "3.9";
23
24 src = fetchFromGitHub {
25 owner = "microsoft";
26 repo = "kiota-python";
27 tag = "microsoft-kiota-serialization-text-v${version}";
28 hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
29 };
30
31 sourceRoot = "source/packages/authentication/azure/";
32
33 build-system = [ poetry-core ];
34
35 dependencies = [
36 aiohttp
37 azure-core
38 microsoft-kiota-abstractions
39 opentelemetry-api
40 opentelemetry-sdk
41 ];
42
43 nativeCheckInputs = [
44 pytest-asyncio
45 pytest-mock
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [ "kiota_authentication_azure" ];
50
51 meta = with lib; {
52 description = "Kiota Azure authentication provider";
53 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/authentication/azure";
54 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-authentication-azure-${src.tag}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ fab ];
57 };
58}