depot/third_party/nixpkgs/pkgs/development/python-modules/smtpdfix/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

52 lines
1,012 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, setuptools
, pytest
, portpicker
, cryptography
, aiosmtpd
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "smtpdfix";
version = "0.5.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-882i0T6EySZ6jxOgoM11MU+ha41XfKjDDhUjeX7qvp4=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiosmtpd
cryptography
portpicker
pytest
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# https://github.com/bebleo/smtpdfix/issues/335
"test_missing_certs"
];
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;
};
}