From 24a1360b9767c22358e00b95fc56c717d51b7cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 13 Jun 2022 00:57:09 +0000 Subject: [PATCH] python3Packages.aioimaplib: support Python 3.10 --- .../python-modules/aioimaplib/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aioimaplib/default.nix b/pkgs/development/python-modules/aioimaplib/default.nix index 7ec2499a9f5b..61bf1567b71b 100644 --- a/pkgs/development/python-modules/aioimaplib/default.nix +++ b/pkgs/development/python-modules/aioimaplib/default.nix @@ -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