1{
2 lib,
3 azure-identity,
4 buildPythonPackage,
5 fetchFromGitHub,
6 flit-core,
7 microsoft-kiota-abstractions,
8 microsoft-kiota-authentication-azure,
9 microsoft-kiota-http,
10 microsoft-kiota-serialization-form,
11 microsoft-kiota-serialization-json,
12 microsoft-kiota-serialization-multipart,
13 microsoft-kiota-serialization-text,
14 msgraph-core,
15}:
16
17buildPythonPackage rec {
18 pname = "msgraph-sdk";
19 version = "1.45.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "microsoftgraph";
24 repo = "msgraph-sdk-python";
25 tag = "v${version}";
26 hash = "sha256-F/XjBg0dWE3iBEcgBvI9PTjVMuReUSDNwEB9j6we3SY=";
27 };
28
29 build-system = [ flit-core ];
30
31 dependencies = [
32 azure-identity
33 microsoft-kiota-abstractions
34 microsoft-kiota-authentication-azure
35 microsoft-kiota-http
36 microsoft-kiota-serialization-form
37 microsoft-kiota-serialization-json
38 microsoft-kiota-serialization-multipart
39 microsoft-kiota-serialization-text
40 msgraph-core
41 ];
42
43 # Module doesn't have tests
44 doCheck = false;
45
46 pythonImportsCheck = [ "msgraph" ];
47
48 meta = with lib; {
49 description = "Microsoft Graph SDK for Python";
50 homepage = "https://github.com/microsoftgraph/msgraph-sdk-python";
51 changelog = "https://github.com/microsoftgraph/msgraph-sdk-python/blob/${src.tag}/CHANGELOG.md";
52 license = licenses.mit;
53 maintainers = with maintainers; [ fab ];
54 };
55}