2019-08-25 02:08:26 +01:00
|
|
|
{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
|
2019-01-21 16:44:54 +00:00
|
|
|
, atpublic }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiosmtpd";
|
2019-08-25 02:08:26 +01:00
|
|
|
version = "1.2.1";
|
2019-01-21 16:44:54 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-08-25 02:08:26 +01:00
|
|
|
# Release not published to Pypi
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aio-libs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7";
|
2019-01-21 16:44:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|