From be1d4556e9dee1f6651f9b4763304aa15283d343 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 23 Mar 2024 20:41:15 +0100 Subject: [PATCH] python312Packages.exchangelib: 5.1.0 -> 5.2.0 Diff: https://github.com/ecederstrand/exchangelib/compare/refs/tags/v5.1.0...v5.2.0 Changelog: https://github.com/ecederstrand/exchangelib/blob/v5.2.0/CHANGELOG.md --- .../python-modules/exchangelib/default.nix | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/exchangelib/default.nix b/pkgs/development/python-modules/exchangelib/default.nix index 9b4078ba47f6..20e3cc1433a4 100644 --- a/pkgs/development/python-modules/exchangelib/default.nix +++ b/pkgs/development/python-modules/exchangelib/default.nix @@ -5,7 +5,6 @@ , defusedxml , dnspython , fetchFromGitHub -, fetchpatch , flake8 , isodate , lxml @@ -18,37 +17,34 @@ , pyyaml , requests , requests-ntlm +, requests-gssapi , requests-oauthlib , requests-kerberos , requests-mock +, setuptools , tzdata , tzlocal }: buildPythonPackage rec { pname = "exchangelib"; - version = "5.1.0"; - format = "setuptools"; + version = "5.2.0"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ecederstrand"; - repo = pname; + repo = "exchangelib"; rev = "refs/tags/v${version}"; - hash = "sha256-WKQgfmEbil55WO3tWVq4n9wiJNw0Op/jbI7xt5vtKpA="; + hash = "sha256-q45aYVyp75PUiqYSMSvSFMy3vaclv93QVkjKWVrxWc4="; }; - patches = [ - (fetchpatch { - name = "tests-timezones-2.patch"; - url = "https://github.com/ecederstrand/exchangelib/commit/419eafcd9261bfd0617823ee437204d5556a8271.diff"; - excludes = [ "tests/test_ewsdatetime.py" ]; - hash = "sha256-dSp6NkNT5dHOg8XgDi8sR3t3hq46sNtPjUXva2YfFSU="; - }) + build-system = [ + setuptools ]; - propagatedBuildInputs = [ + dependencies = [ cached-property defusedxml dnspython @@ -66,6 +62,19 @@ buildPythonPackage rec { backports-zoneinfo ]; + passthru.optional-dependencies = { + complete = [ + requests-gssapi + # requests-negotiate-sspi + ]; + kerberos = [ + requests-gssapi + ]; + # sspi = [ + # requests-negotiate-sspi + # ]; + }; + nativeCheckInputs = [ flake8 psutil