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,
python-dotenv,
fetchFromGitHub,
setuptools,
httpx,
microsoft-kiota-abstractions,
microsoft-kiota-authentication-azure,
microsoft-kiota-http,
microsoft-kiota-serialization-json,
azure-identity,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "msgraph-core";
version = "1.3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoftgraph";
repo = "msgraph-sdk-python-core";
tag = "v${version}";
hash = "sha256-6M1C2Y0jYec/yKjigtbaaZiEL23csQAFtuUVMTlaiXk=";
};
build-system = [ setuptools ];
dependencies = [
httpx
microsoft-kiota-abstractions
microsoft-kiota-authentication-azure
microsoft-kiota-http
]
++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
azure-identity
microsoft-kiota-serialization-json
pytestCheckHook
python-dotenv
responses
];
pythonImportsCheck = [ "msgraph_core" ];
disabledTestPaths = [
# client_id should be the id of a Microsoft Entra application
"tests/tasks/test_page_iterator.py"
];
meta = {
description = "Core component of the Microsoft Graph Python SDK";
homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core";
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python-core/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|