diff --git a/chatmaild/pyproject.toml b/chatmaild/pyproject.toml index 079b4bc3..3c3302c4 100644 --- a/chatmaild/pyproject.toml +++ b/chatmaild/pyproject.toml @@ -12,7 +12,7 @@ dependencies = [ "deltachat-rpc-client", "filelock", "requests", - "crypt-r", + "crypt-r >= 3.13.1 ; python_version >= '3.11'", ] [tool.setuptools] diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 7aed3b52..e6292a36 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -3,7 +3,10 @@ import logging import os import sys -import crypt_r +try: + import crypt_r +except ImportError: + import crypt as crypt_r from .config import Config, read_config from .dictproxy import DictProxy