1{
2 lib,
3 aiosmtpd,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hypothesis,
7 poetry-core,
8 pytest-asyncio,
9 pytestCheckHook,
10 pythonOlder,
11 trustme,
12}:
13
14buildPythonPackage rec {
15 pname = "aiosmtplib";
16 version = "3.0.1";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "cole";
23 repo = "aiosmtplib";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-67Z+k+PBIGP2oGb/52dMtsapUsHufvFcX+wWiMj5Jsg=";
26 };
27
28 nativeBuildInputs = [ poetry-core ];
29
30 nativeCheckInputs = [
31 aiosmtpd
32 hypothesis
33 pytest-asyncio
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 = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}