Skip to content

Commit

Permalink
use old crypt lib in python < 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 3, 2025
1 parent 4d915f9 commit 5f5fe6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chatmaild/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"deltachat-rpc-client",
"filelock",
"requests",
"crypt-r",
"crypt-r; python_version >= 3.11",
]

[tool.setuptools]
Expand Down
5 changes: 4 additions & 1 deletion chatmaild/src/chatmaild/doveauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
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
Expand Down

0 comments on commit 5f5fe6d

Please sign in to comment.