1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, flit-core 6, requests 7, pytestCheckHook 8, responses 9}: 10 11buildPythonPackage rec { 12 pname = "msgraph-core"; 13 version = "0.2.2"; 14 15 disabled = pythonOlder "3.5"; 16 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "microsoftgraph"; 21 repo = "msgraph-sdk-python-core"; 22 rev = "v${version}"; 23 hash = "sha256-eRRlG3GJX3WeKTNJVWgNTTHY56qiUGOlxtvEZ2xObLA="; 24 }; 25 26 nativeBuildInputs = [ 27 flit-core 28 ]; 29 30 propagatedBuildInputs = [ 31 requests 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 responses 37 ]; 38 39 disabledTestPaths = [ 40 "tests/integration" 41 ]; 42 43 pythonImportsCheck = [ "msgraph.core" ]; 44 45 meta = { 46 description = "Core component of the Microsoft Graph Python SDK"; 47 homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ dotlambda ]; 50 }; 51}