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