2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonAtLeast,
|
|
|
|
setuptools,
|
|
|
|
pytest,
|
|
|
|
portpicker,
|
|
|
|
cryptography,
|
|
|
|
aiosmtpd,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-asyncio,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "smtpdfix";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.5.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-5NGs6Q83EqGRJ+2IdOaXqGFIwfSNKy2wwHIJaOjj7JU=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiosmtpd
|
|
|
|
cryptography
|
|
|
|
portpicker
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
# https://github.com/bebleo/smtpdfix/issues/335
|
|
|
|
"test_missing_certs"
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An SMTP server for use as a pytest fixture for testing";
|
|
|
|
homepage = "https://github.com/bebleo/smtpdfix";
|
|
|
|
changelog = "https://github.com/bebleo/smtpdfix/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = teams.wdz.members;
|
|
|
|
};
|
|
|
|
}
|