2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
53 lines
987 B
Nix
53 lines
987 B
Nix
{ lib
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, docutils
|
|
, fetchFromGitHub
|
|
, imaplib2
|
|
, mock
|
|
, nose
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pytz
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioimaplib";
|
|
version = "0.9.0";
|
|
format = "setuptools";
|
|
|
|
# Check https://github.com/bamthomas/aioimaplib/issues/75
|
|
# for Python 3.10 support
|
|
disabled = pythonOlder "3.5" || pythonAtLeast "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bamthomas";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-xxZAeJDuqrPv4kGgDr0ypFuZJk1zcs/bmgeEzI0jpqY=";
|
|
};
|
|
|
|
checkInputs = [
|
|
asynctest
|
|
docutils
|
|
imaplib2
|
|
mock
|
|
nose
|
|
pyopenssl
|
|
pytestCheckHook
|
|
pytz
|
|
tzlocal
|
|
];
|
|
|
|
pythonImportsCheck = [ "aioimaplib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
homepage = "https://github.com/bamthomas/aioimaplib";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|