depot/third_party/nixpkgs/pkgs/development/python-modules/lmtpd/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
706 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "lmtpd";
version = "6.2.0";
pyproject = true;
# smtpd will be removed in version 3.12
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-LGgl0v+h3gmUQEEadC9Y4bPo3uszRa3P1MLDjUuvYrM=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "lmtpd" ];
meta = with lib; {
description = "LMTP counterpart to smtpd in the Python standard library";
homepage = "https://github.com/moggers87/lmtpd";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}