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 = "2.0.2";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "cole";
22 repo = pname;
23 rev = "v${version}";
24 hash = "sha256-Wo9WH3fwGN1upLAyj6aThxpQE7hortISjaCATTPee40=";
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 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}