Files
nixpkgs/pkgs/development/python-modules/exchangelib/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

85 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
cached-property,
defusedxml,
dnspython,
fetchFromGitHub,
isodate,
lxml,
oauthlib,
psutil,
pygments,
python-dateutil,
pytz,
pyyaml,
requests,
requests-ntlm,
requests-gssapi,
requests-oauthlib,
requests-mock,
setuptools,
tzdata,
tzlocal,
}:
buildPythonPackage rec {
pname = "exchangelib";
version = "5.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ecederstrand";
repo = "exchangelib";
tag = "v${version}";
hash = "sha256-HO88wM0yzETWS0eBnLABCjYHGE5wFpcjQgC8wsSumWA=";
};
pythonRelaxDeps = [ "defusedxml" ];
build-system = [ setuptools ];
dependencies = [
cached-property
defusedxml
dnspython
isodate
lxml
oauthlib
pygments
requests
requests-ntlm
requests-oauthlib
tzdata
tzlocal
];
optional-dependencies = {
complete = [
requests-gssapi
# requests-negotiate-sspi
];
kerberos = [ requests-gssapi ];
# sspi = [
# requests-negotiate-sspi
# ];
};
nativeCheckInputs = [
psutil
python-dateutil
pytz
pyyaml
requests-mock
];
pythonImportsCheck = [ "exchangelib" ];
meta = {
description = "Client for Microsoft Exchange Web Services (EWS)";
homepage = "https://github.com/ecederstrand/exchangelib";
changelog = "https://github.com/ecederstrand/exchangelib/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd2;
};
}