1{ lib 2, aiosmtpd 3, buildPythonPackage 4, fetchFromGitHub 5, hypothesis 6, poetry-core 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10, trustme 11}: 12 13buildPythonPackage rec { 14 pname = "aiosmtplib"; 15 version = "3.0.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "cole"; 22 repo = "aiosmtplib"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-67Z+k+PBIGP2oGb/52dMtsapUsHufvFcX+wWiMj5Jsg="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 nativeCheckInputs = [ 32 aiosmtpd 33 hypothesis 34 pytest-asyncio 35 pytestCheckHook 36 trustme 37 ]; 38 39 pythonImportsCheck = [ 40 "aiosmtplib" 41 ]; 42 43 meta = with lib; { 44 description = "Module which provides a SMTP client"; 45 homepage = "https://github.com/cole/aiosmtplib"; 46 changelog = "https://github.com/cole/aiosmtplib/releases/tag/v${version}"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}