Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, stdenv, buildPythonPackage, fetchFromGitHub, imaplib2, mock, poetry-core, pyopenssl, pytest-asyncio_0, pytestCheckHook, pytz,}:
buildPythonPackage (finalAttrs: { pname = "aioimaplib"; version = "2.0.3"; pyproject = true;
src = fetchFromGitHub { owner = "iroco-co"; repo = "aioimaplib"; tag = finalAttrs.version; hash = "sha256-amEY44mW5EFDMTwfC7+ut28CeWTdEEMzZ/aX3k+IF7g="; };
patches = [ # https://github.com/iroco-co/aioimaplib/issues/125 ./event-loop.patch ];
postPatch = '' sed -i "/crypto.X509Extension/,+1d" tests/ssl_cert.py '';
build-system = [ poetry-core ];
nativeCheckInputs = [ imaplib2 mock pyopenssl pytest-asyncio_0 pytestCheckHook pytz ];
disabledTests = [ # TimeoutError "test_idle_start__exits_queue_get_without_timeout_error" "test_client_can_connect_to_server_over_ssl" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Comparison to magic strings "test_idle_loop" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioimaplib" ];
meta = { description = "Python asyncio IMAP4rev1 client library"; homepage = "https://github.com/iroco-co/aioimaplib"; changelog = "https://github.com/iroco-co/aioimaplib/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.gpl3Plus; maintainers = [ lib.maintainers.dotlambda ]; };})