Merge pull request #177449 from dotlambda/aioimaplib-python310

python3Packages.aioimaplib: support Python 3.10
This commit is contained in:
Fabian Affolter 2022-06-13 09:39:57 +02:00 committed by GitHub
commit 5c71a549d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, buildPythonPackage
, docutils
, fetchFromGitHub
, fetchpatch
, imaplib2
, mock
, nose
@ -19,9 +20,7 @@ buildPythonPackage rec {
version = "0.9.0";
format = "setuptools";
# Check https://github.com/bamthomas/aioimaplib/issues/75
# for Python 3.10 support
disabled = pythonOlder "3.5" || pythonAtLeast "3.10";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bamthomas";
@ -30,6 +29,14 @@ buildPythonPackage rec {
sha256 = "sha256-xxZAeJDuqrPv4kGgDr0ypFuZJk1zcs/bmgeEzI0jpqY=";
};
patches = [
# https://github.com/bamthomas/aioimaplib/pull/76
(fetchpatch {
url = "https://github.com/bamthomas/aioimaplib/commit/03f796f45b60a163ad0f3d52166d58f280de7065.patch";
hash = "sha256-9staxkw/EfGoBz/uyrNKBvQ0KfN+za4rTGRyqrAJSd8=";
})
];
checkInputs = [
asynctest
docutils