1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 aiosmtpd,
9 jaraco-text,
10 jaraco-collections,
11 keyring,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "jaraco-email";
17 version = "3.1.1";
18
19 disabled = pythonOlder "3.7";
20
21 format = "pyproject";
22
23 src = fetchFromGitHub {
24 owner = "jaraco";
25 repo = "jaraco.email";
26 tag = "v${version}";
27 hash = "sha256-2dU+tbrP86Oy8ej1Xa0+fNRB83tGBTUsOWbZyQsMKu8=";
28 };
29
30 nativeBuildInputs = [
31 setuptools
32 setuptools-scm
33 ];
34
35 propagatedBuildInputs = [
36 aiosmtpd
37 jaraco-text
38 jaraco-collections
39 keyring
40 ];
41
42 pythonImportsCheck = [ "jaraco.email" ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 meta = {
47 changelog = "https://github.com/jaraco/jaraco.email/blob/${src.rev}/CHANGES.rst";
48 description = "E-mail facilities by jaraco";
49 homepage = "https://github.com/jaraco/jaraco.email";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}