nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 53 lines 987 B view raw
1{ lib 2, pythonOlder 3, pythonAtLeast 4, asynctest 5, buildPythonPackage 6, docutils 7, fetchFromGitHub 8, imaplib2 9, mock 10, nose 11, pyopenssl 12, pytestCheckHook 13, pytz 14, tzlocal 15}: 16 17buildPythonPackage rec { 18 pname = "aioimaplib"; 19 version = "0.9.0"; 20 format = "setuptools"; 21 22 # Check https://github.com/bamthomas/aioimaplib/issues/75 23 # for Python 3.10 support 24 disabled = pythonOlder "3.5" || pythonAtLeast "3.10"; 25 26 src = fetchFromGitHub { 27 owner = "bamthomas"; 28 repo = pname; 29 rev = version; 30 sha256 = "sha256-xxZAeJDuqrPv4kGgDr0ypFuZJk1zcs/bmgeEzI0jpqY="; 31 }; 32 33 checkInputs = [ 34 asynctest 35 docutils 36 imaplib2 37 mock 38 nose 39 pyopenssl 40 pytestCheckHook 41 pytz 42 tzlocal 43 ]; 44 45 pythonImportsCheck = [ "aioimaplib" ]; 46 47 meta = with lib; { 48 description = "Python asyncio IMAP4rev1 client library"; 49 homepage = "https://github.com/bamthomas/aioimaplib"; 50 license = licenses.gpl3Plus; 51 maintainers = with maintainers; [ dotlambda ]; 52 }; 53}