8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
29 lines
853 B
Nix
29 lines
853 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder, isPy36
|
|
, nose, asynctest, mock, pytz, tzlocal, imaplib2, docutils, pyopenssl }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioimaplib";
|
|
version = "0.7.15";
|
|
|
|
# PyPI tarball doesn't ship tests
|
|
src = fetchFromGitHub {
|
|
owner = "bamthomas";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "15nny3y8pwaizq1zmkg43ym5jszk2hs010z12yn2d0j1fibymwbj";
|
|
};
|
|
|
|
disabled = !(isPy3k && pythonOlder "3.7");
|
|
|
|
checkInputs = [ nose asynctest mock pytz tzlocal imaplib2 docutils pyopenssl ];
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/35
|
|
doCheck = !isPy36;
|
|
|
|
meta = with lib; {
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
homepage = "https://github.com/bamthomas/aioimaplib";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|