1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "lmtpd";
12 version = "6.2.0";
13 pyproject = true;
14
15 # smtpd will be removed in version 3.12
16 disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-LGgl0v+h3gmUQEEadC9Y4bPo3uszRa3P1MLDjUuvYrM=";
21 };
22
23 build-system = [ setuptools ];
24
25 pythonImportsCheck = [ "lmtpd" ];
26
27 meta = with lib; {
28 description = "LMTP counterpart to smtpd in the Python standard library";
29 homepage = "https://github.com/moggers87/lmtpd";
30 license = licenses.mit;
31 maintainers = with maintainers; [ jluttine ];
32 };
33}