summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiosmtpd/default.nix
blob: 9e053c718c86430f2efa3b47b16695cd9bf6164c (plain) (blame)
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
{ lib, isPy3k, fetchPypi, buildPythonPackage
, atpublic }:

buildPythonPackage rec {
  pname = "aiosmtpd";
  version = "1.2";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1xdfk741pjmz1cm8dsi4n5vq4517i175rm94696m3f7kcgk7xsmp";
  };

  propagatedBuildInputs = [
    atpublic
  ];

  # Tests need network access
  doCheck = false;

  meta = with lib; {
    homepage = https://aiosmtpd.readthedocs.io/en/latest/;
    description = "Asyncio based SMTP server";
    longDescription = ''
      This is a server for SMTP and related protocols, similar in utility to the
      standard library's smtpd.py module, but rewritten to be based on asyncio for
      Python 3.
    '';
    license = licenses.asl20;
    maintainers = with maintainers; [ eadwu ];
  };
}