python3Packages.aioimaplib: update check part
This commit is contained in:
parent
160c519ecb
commit
2883e0bd10
@ -1,11 +1,22 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder, isPy36
|
{ lib
|
||||||
, nose, asynctest, mock, pytz, tzlocal, imaplib2, docutils, pyopenssl }:
|
, asynctest
|
||||||
|
, buildPythonPackage
|
||||||
|
, docutils
|
||||||
|
, fetchFromGitHub
|
||||||
|
, imaplib2
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, pyopenssl
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, tzlocal
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aioimaplib";
|
pname = "aioimaplib";
|
||||||
version = "0.7.18";
|
version = "0.7.18";
|
||||||
|
|
||||||
# PyPI tarball doesn't ship tests
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bamthomas";
|
owner = "bamthomas";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
@ -13,12 +24,22 @@ buildPythonPackage rec {
|
|||||||
sha256 = "037fxwmkdfb95cqcykrhn37p138wg9pvlsgdf45vyn1mhz5crky5";
|
sha256 = "037fxwmkdfb95cqcykrhn37p138wg9pvlsgdf45vyn1mhz5crky5";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = !(isPy3k && pythonOlder "3.7");
|
checkInputs = [
|
||||||
|
asynctest
|
||||||
|
docutils
|
||||||
|
imaplib2
|
||||||
|
mock
|
||||||
|
nose
|
||||||
|
pyopenssl
|
||||||
|
pytestCheckHook
|
||||||
|
pytz
|
||||||
|
tzlocal
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ nose asynctest mock pytz tzlocal imaplib2 docutils pyopenssl ];
|
# Project is using asynctest with doesn't work with Python 3.8 and above
|
||||||
|
# https://github.com/bamthomas/aioimaplib/issues/54
|
||||||
# https://github.com/bamthomas/aioimaplib/issues/35
|
doCheck = pythonOlder "3.8";
|
||||||
doCheck = !isPy36;
|
pythonImportsCheck = [ "aioimaplib" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python asyncio IMAP4rev1 client library";
|
description = "Python asyncio IMAP4rev1 client library";
|
||||||
|
Loading…
Reference in New Issue
Block a user