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