Files
nixpkgs/pkgs/development/python-modules/msgraph-core/default.nix

57 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
python-dotenv,
fetchFromGitHub,
setuptools,
httpx,
microsoft-kiota-abstractions,
microsoft-kiota-authentication-azure,
microsoft-kiota-http,
microsoft-kiota-serialization-json,
azure-identity,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "msgraph-core";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoftgraph";
repo = "msgraph-sdk-python-core";
tag = "v${version}";
hash = "sha256-1fgLW6tpaDMOIaAU92ty9JYx/bZxDs4VjNPDCPIze/A=";
};
build-system = [ setuptools ];
dependencies = [
httpx
microsoft-kiota-abstractions
microsoft-kiota-authentication-azure
microsoft-kiota-http
]
++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
azure-identity
microsoft-kiota-serialization-json
pytest-asyncio
pytestCheckHook
python-dotenv
];
pythonImportsCheck = [ "msgraph_core" ];
meta = {
description = "Core component of the Microsoft Graph Python SDK";
homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core";
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python-core/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}