Merge pull request #313457 from fabaff/aioimaplib-refactor

python312Packages.aioimaplib: refactor
This commit is contained in:
OTABI Tomoya 2024-05-22 11:18:26 +09:00 committed by GitHub
commit 1fa2eec986
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,48 +1,50 @@
{ lib {
, pythonOlder lib,
, pythonAtLeast asynctest,
, asynctest buildPythonPackage,
, buildPythonPackage docutils,
, docutils fetchFromGitHub,
, fetchFromGitHub imaplib2,
, imaplib2 mock,
, mock pyopenssl,
, nose pytestCheckHook,
, pyopenssl pythonAtLeast,
, pytestCheckHook pythonOlder,
, pytz pytz,
, tzlocal setuptools,
tzlocal,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioimaplib"; pname = "aioimaplib";
version = "1.0.1"; version = "1.0.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bamthomas"; owner = "bamthomas";
repo = pname; repo = "aioimaplib";
rev = version; rev = "refs/tags/${version}";
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0="; hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
}; };
# https://github.com/bamthomas/aioimaplib/issues/54 build-system = [ setuptools ];
doCheck = pythonOlder "3.11";
nativeCheckInputs = [ nativeCheckInputs = [
asynctest asynctest
docutils docutils
imaplib2 imaplib2
mock mock
nose
pyopenssl pyopenssl
pytestCheckHook pytestCheckHook
pytz pytz
tzlocal tzlocal
]; ];
# https://github.com/bamthomas/aioimaplib/issues/54
doCheck = pythonOlder "3.11";
disabledTests = [ disabledTests = [
# https://github.com/bamthomas/aioimaplib/issues/77 # https://github.com/bamthomas/aioimaplib/issues/77
"test_get_quotaroot" "test_get_quotaroot"
@ -50,9 +52,7 @@ buildPythonPackage rec {
"test_idle" "test_idle"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioimaplib" ];
"aioimaplib"
];
meta = with lib; { meta = with lib; {
description = "Python asyncio IMAP4rev1 client library"; description = "Python asyncio IMAP4rev1 client library";