Skip to content

Commit

Permalink
Merge pull request #313457 from fabaff/aioimaplib-refactor
Browse files Browse the repository at this point in the history
python312Packages.aioimaplib: refactor
  • Loading branch information
natsukium authored May 22, 2024
2 parents 2ec1d18 + a8255f8 commit 1fa2eec
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions pkgs/development/python-modules/aioimaplib/default.nix
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{ lib
, pythonOlder
, pythonAtLeast
, asynctest
, buildPythonPackage
, docutils
, fetchFromGitHub
, imaplib2
, mock
, nose
, pyopenssl
, pytestCheckHook
, pytz
, tzlocal
{
lib,
asynctest,
buildPythonPackage,
docutils,
fetchFromGitHub,
imaplib2,
mock,
pyopenssl,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pytz,
setuptools,
tzlocal,
}:

buildPythonPackage rec {
pname = "aioimaplib";
version = "1.0.1";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.5";
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "bamthomas";
repo = pname;
rev = version;
repo = "aioimaplib";
rev = "refs/tags/${version}";
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
};

# https://github.com/bamthomas/aioimaplib/issues/54
doCheck = pythonOlder "3.11";
build-system = [ setuptools ];

nativeCheckInputs = [
asynctest
docutils
imaplib2
mock
nose
pyopenssl
pytestCheckHook
pytz
tzlocal
];

# https://github.com/bamthomas/aioimaplib/issues/54
doCheck = pythonOlder "3.11";

disabledTests = [
# https://github.com/bamthomas/aioimaplib/issues/77
"test_get_quotaroot"
# asyncio.exceptions.TimeoutError
"test_idle"
];

pythonImportsCheck = [
"aioimaplib"
];
pythonImportsCheck = [ "aioimaplib" ];

meta = with lib; {
description = "Python asyncio IMAP4rev1 client library";
Expand Down

0 comments on commit 1fa2eec

Please sign in to comment.