2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
azure-identity,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
flit-core,
|
2024-04-21 15:54:59 +00:00
|
|
|
microsoft-kiota-abstractions,
|
|
|
|
microsoft-kiota-authentication-azure,
|
|
|
|
microsoft-kiota-http,
|
|
|
|
microsoft-kiota-serialization-form,
|
|
|
|
microsoft-kiota-serialization-json,
|
|
|
|
microsoft-kiota-serialization-multipart,
|
|
|
|
microsoft-kiota-serialization-text,
|
|
|
|
msgraph-core,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msgraph-sdk";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.9.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoftgraph";
|
|
|
|
repo = "msgraph-sdk-python";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-9i0AUljcU4dZSNkgqJnKtKobWCSkBGP8vwCbVSbxw/E=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ flit-core ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
azure-identity
|
|
|
|
microsoft-kiota-abstractions
|
|
|
|
microsoft-kiota-authentication-azure
|
|
|
|
microsoft-kiota-http
|
|
|
|
microsoft-kiota-serialization-form
|
|
|
|
microsoft-kiota-serialization-json
|
|
|
|
microsoft-kiota-serialization-multipart
|
|
|
|
microsoft-kiota-serialization-text
|
|
|
|
msgraph-core
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module doesn't have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "msgraph" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Microsoft Graph SDK for Python";
|
|
|
|
homepage = "https://github.com/microsoftgraph/msgraph-sdk-python";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python/blob/v${version}/CHANGELOG.md";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|