2018-02-04 21:47:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
2018-06-30 10:55:02 +01:00
|
|
|
, nose, asynctest, mock, pytz, tzlocal, imaplib2, docutils, pyopenssl }:
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioimaplib";
|
2018-06-30 10:55:02 +01:00
|
|
|
version = "0.7.14";
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
# PyPI tarball doesn't ship tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bamthomas";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-06-30 10:55:02 +01:00
|
|
|
sha256 = "150v3czh53sqakfqgjyj1w39mdfcxmpnrk2pbmq63jkq7r6njl0l";
|
2018-02-04 21:47:01 +00:00
|
|
|
};
|
|
|
|
|
2018-06-30 10:55:02 +01:00
|
|
|
disabled = pythonOlder "3.4";
|
2018-02-04 21:47:01 +00:00
|
|
|
|
2018-06-30 10:55:02 +01:00
|
|
|
checkInputs = [ nose asynctest mock pytz tzlocal imaplib2 docutils pyopenssl ];
|
|
|
|
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/35
|
|
|
|
doCheck = false;
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
|
|
homepage = https://github.com/bamthomas/aioimaplib;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|