1{ 2 lib, 3 aiosmtpd, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hypothesis, 7 hatchling, 8 pytest-asyncio_0, 9 pytestCheckHook, 10 pythonOlder, 11 trustme, 12}: 13 14buildPythonPackage rec { 15 pname = "aiosmtplib"; 16 version = "4.0.2"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "cole"; 23 repo = "aiosmtplib"; 24 tag = "v${version}"; 25 hash = "sha256-LpD2bSgpClUpNguZaRy11WEwQviiCjqMJlRl6CRp50o="; 26 }; 27 28 build-system = [ hatchling ]; 29 30 nativeCheckInputs = [ 31 aiosmtpd 32 hypothesis 33 pytest-asyncio_0 34 pytestCheckHook 35 trustme 36 ]; 37 38 pythonImportsCheck = [ "aiosmtplib" ]; 39 40 meta = with lib; { 41 description = "Module which provides a SMTP client"; 42 homepage = "https://github.com/cole/aiosmtplib"; 43 changelog = "https://github.com/cole/aiosmtplib/releases/tag/v${version}"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}