depot/third_party/nixpkgs/pkgs/development/python-modules/msgraph-sdk/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

58 lines
1.4 KiB
Nix

{
lib,
azure-identity,
buildPythonPackage,
fetchFromGitHub,
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,
setuptools,
}:
buildPythonPackage rec {
pname = "msgraph-sdk";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "microsoftgraph";
repo = "msgraph-sdk-python";
rev = "refs/tags/v${version}";
hash = "sha256-afnxk79duKzTykNnSHPE6lZhMkOt+9JhEskj/KjQpQI=";
};
build-system = [ setuptools ];
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";
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}