2024-05-18 21:31:01 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
python-dotenv,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
httpx,
|
|
|
|
microsoft-kiota-abstractions,
|
|
|
|
microsoft-kiota-authentication-azure,
|
|
|
|
microsoft-kiota-http,
|
|
|
|
requests,
|
|
|
|
azure-identity,
|
|
|
|
pytestCheckHook,
|
|
|
|
responses,
|
2022-05-19 21:39:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msgraph-core";
|
2025-06-07 22:32:49 +00:00
|
|
|
version = "1.3.4";
|
2024-03-08 02:41:06 +01:00
|
|
|
pyproject = true;
|
2022-05-19 21:39:53 +00:00
|
|
|
|
2025-02-10 00:08:12 +01:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-05-19 21:39:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoftgraph";
|
|
|
|
repo = "msgraph-sdk-python-core";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2025-06-07 22:32:49 +00:00
|
|
|
hash = "sha256-F3vZUglO0AvWZPwV8329Wrd5S4PHShBv8Gg3Jvsz6Kk=";
|
2022-05-19 21:39:53 +00:00
|
|
|
};
|
|
|
|
|
2024-05-18 21:31:01 +02:00
|
|
|
build-system = [ setuptools ];
|
2022-05-19 21:39:53 +00:00
|
|
|
|
2024-05-18 21:30:34 +02:00
|
|
|
dependencies = [
|
2024-03-08 02:41:06 +01:00
|
|
|
httpx
|
|
|
|
microsoft-kiota-abstractions
|
|
|
|
microsoft-kiota-authentication-azure
|
|
|
|
microsoft-kiota-http
|
2022-05-19 21:39:53 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2024-03-08 02:41:06 +01:00
|
|
|
azure-identity
|
2022-05-19 21:39:53 +00:00
|
|
|
pytestCheckHook
|
2024-05-18 21:28:45 +02:00
|
|
|
python-dotenv
|
2022-05-19 21:39:53 +00:00
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
2024-05-18 21:31:01 +02:00
|
|
|
pythonImportsCheck = [ "msgraph_core" ];
|
2022-05-19 21:39:53 +00:00
|
|
|
|
2024-05-18 21:28:45 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
# client_id should be the id of a Microsoft Entra application
|
|
|
|
"tests/tasks/test_page_iterator.py"
|
|
|
|
];
|
|
|
|
|
2022-05-19 21:39:53 +00:00
|
|
|
meta = {
|
|
|
|
description = "Core component of the Microsoft Graph Python SDK";
|
|
|
|
homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core";
|
2025-01-19 21:16:39 +01:00
|
|
|
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python-core/releases/tag/${src.tag}";
|
2022-05-19 21:39:53 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|