Commit 8438ebc4 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 27851edc
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, python-dotenv
, pythonOlder
, fetchFromGitHub
, setuptools
@@ -15,17 +16,17 @@

buildPythonPackage rec {
  pname = "msgraph-core";
  version = "1.0.0";
  version = "1.1.0";
  pyproject = true;

  disabled = pythonOlder "3.5";
  disabled = pythonOlder "3.8";


  src = fetchFromGitHub {
    owner = "microsoftgraph";
    repo = "msgraph-sdk-python-core";
    rev = "refs/tags/v${version}";
    hash = "sha256-VizjN7sXqPvo9VOSaaUnogTlUDJ1OA2COYNTcVRqhJA=";
    hash = "sha256-bQW1piSypfj3YAfzuEk/AkrB1x0lrHoIDyZv+KeCYgE=";
  };

  nativeBuildInputs = [
@@ -44,6 +45,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    azure-identity
    pytestCheckHook
    python-dotenv
    responses
  ];

@@ -51,6 +53,11 @@ buildPythonPackage rec {
    "msgraph_core"
  ];

  disabledTestPaths = [
    # client_id should be the id of a Microsoft Entra application
    "tests/tasks/test_page_iterator.py"
  ];

  meta = {
    description = "Core component of the Microsoft Graph Python SDK";
    homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core";