2022-05-19 21:39:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-05-18 21:28:45 +02:00
|
|
|
, python-dotenv
|
2022-05-19 21:39:53 +00:00
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2024-03-08 02:41:06 +01:00
|
|
|
, setuptools
|
|
|
|
, httpx
|
|
|
|
, microsoft-kiota-abstractions
|
|
|
|
, microsoft-kiota-authentication-azure
|
|
|
|
,microsoft-kiota-http
|
2022-05-19 21:39:53 +00:00
|
|
|
, requests
|
2024-03-08 02:41:06 +01:00
|
|
|
, azure-identity
|
2022-05-19 21:39:53 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msgraph-core";
|
2024-05-18 21:28:45 +02:00
|
|
|
version = "1.1.0";
|
2024-03-08 02:41:06 +01:00
|
|
|
pyproject = true;
|
2022-05-19 21:39:53 +00:00
|
|
|
|
2024-05-18 21:28:45 +02:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-05-19 21:39:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoftgraph";
|
|
|
|
repo = "msgraph-sdk-python-core";
|
2024-03-08 02:41:06 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-18 21:28:45 +02:00
|
|
|
hash = "sha256-bQW1piSypfj3YAfzuEk/AkrB1x0lrHoIDyZv+KeCYgE=";
|
2022-05-19 21:39:53 +00:00
|
|
|
};
|
|
|
|
|
2024-05-18 21:30:34 +02:00
|
|
|
build-system = [
|
2024-03-08 02:41:06 +01:00
|
|
|
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
|
2024-03-08 02:41:06 +01:00
|
|
|
|
2022-05-19 21:39:53 +00:00
|
|
|
];
|
|
|
|
|
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-03-08 02:41:06 +01: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";
|
2024-05-18 21:30:34 +02:00
|
|
|
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python-core/releases/tag/v${version}";
|
2022-05-19 21:39:53 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|