Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.aioimaplib: refactor #313457

Merged
merged 2 commits into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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