2021-11-11 23:28:07 +00:00
|
|
|
{ lib
|
|
|
|
, atpublic
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2019-01-21 16:44:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiosmtpd";
|
2021-04-05 01:13:39 +00:00
|
|
|
version = "1.4.2";
|
2021-11-11 23:28:07 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-01-21 16:44:54 +00:00
|
|
|
|
2019-08-25 01:08:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aio-libs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-04-05 01:13:39 +00:00
|
|
|
sha256 = "0hbpyns1j1fpvpj7gyb8cz359j7l4hzfqbig74xp4xih59sih0wj";
|
2019-01-21 16:44:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-11-11 23:28:07 +00:00
|
|
|
atpublic
|
|
|
|
attrs
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
2019-01-21 16:44:54 +00:00
|
|
|
];
|
|
|
|
|
2022-02-08 17:39:10 +00:00
|
|
|
# Fixes for Python 3.10 can't be applied easily, https://github.com/aio-libs/aiosmtpd/pull/294
|
|
|
|
doCheck = pythonOlder "3.10";
|
|
|
|
|
2021-11-11 23:28:07 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Requires git
|
|
|
|
"test_ge_master"
|
|
|
|
# Seems to be a sandbox issue
|
|
|
|
"test_byclient"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiosmtpd"
|
|
|
|
];
|
2019-01-21 16:44:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asyncio based SMTP server";
|
2021-11-11 23:28:07 +00:00
|
|
|
homepage = "https://aiosmtpd.readthedocs.io/";
|
2019-01-21 16:44:54 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is a server for SMTP and related protocols, similar in utility to the
|
2021-11-11 23:28:07 +00:00
|
|
|
standard library's smtpd.py module.
|
2019-01-21 16:44:54 +00:00
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|