From 82f1bfba2d41ae260f497af3d96152059cae6ba6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 16 Feb 2024 10:54:00 +0100 Subject: [PATCH] python311Packages.msgraph-sdk: init at 1.1.0 Microsoft Graph SDK for Python https://github.com/microsoftgraph/msgraph-sdk-python --- .../python-modules/msgraph-sdk/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/development/python-modules/msgraph-sdk/default.nix diff --git a/pkgs/development/python-modules/msgraph-sdk/default.nix b/pkgs/development/python-modules/msgraph-sdk/default.nix new file mode 100644 index 000000000000..a3ad7b98b356 --- /dev/null +++ b/pkgs/development/python-modules/msgraph-sdk/default.nix @@ -0,0 +1,57 @@ +{ lib +, azure-identity +, buildPythonPackage +, fetchFromGitHub +, microsoft-kiota-abstractions +, microsoft-kiota-authentication-azure +, microsoft-kiota-http +, microsoft-kiota-serialization-json +, microsoft-kiota-serialization-text +, msgraph-core +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "msgraph-sdk"; + version = "1.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "microsoftgraph"; + repo = "msgraph-sdk-python"; + rev = "refs/tags/v${version}"; + hash = "sha256-fAchReqVhkVhT48UrTnBUQerHmgB7qxpey0xrgxIVDs="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + azure-identity + microsoft-kiota-abstractions + microsoft-kiota-authentication-azure + microsoft-kiota-http + microsoft-kiota-serialization-json + 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"; + changelog = "https://github.com/microsoftgraph/msgraph-sdk-python/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1b0a2b5aaf06..6b47600195ae 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9554,6 +9554,8 @@ self: super: with self; { msgraph-core = callPackage ../development/python-modules/msgraph-core { }; + msgraph-sdk = callPackage ../development/python-modules/msgraph-sdk { }; + multipart = callPackage ../development/python-modules/multipart { }; netmap = callPackage ../development/python-modules/netmap { };