summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/jaraco-email/default.nix
blob: b5835a6b23609555dece049bc7ce464fc9e26a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  setuptools-scm,
  aiosmtpd,
  jaraco-text,
  jaraco-collections,
  keyring,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "jaraco-email";
  version = "3.1.1";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "jaraco";
    repo = "jaraco.email";
    tag = "v${version}";
    hash = "sha256-2dU+tbrP86Oy8ej1Xa0+fNRB83tGBTUsOWbZyQsMKu8=";
  };

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  propagatedBuildInputs = [
    aiosmtpd
    jaraco-text
    jaraco-collections
    keyring
  ];

  pythonImportsCheck = [ "jaraco.email" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    changelog = "https://github.com/jaraco/jaraco.email/blob/${src.rev}/CHANGES.rst";
    description = "E-mail facilities by jaraco";
    homepage = "https://github.com/jaraco/jaraco.email";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}