python3Packages.pytest-smtpd: init at 0.1.0
This commit is contained in:
committed by
Valentin Gagarin
parent
d6c5afdca4
commit
670003530c
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
pytest,
|
||||
smtpdfix,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-smtpd";
|
||||
version = "0.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
# Pypi tarball doesn't include tests/
|
||||
src = fetchFromGitHub {
|
||||
owner = "bebleo";
|
||||
repo = "pytest-smtpd";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Vu2D2hfxBYxgXQ4Gjr+jFpac9fjpLL2FftBhnqrcQaA=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
smtpdfix
|
||||
];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "pytest_smtpd" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest fixture that creates an SMTP server";
|
||||
homepage = "https://github.com/bebleo/pytest-smtpd";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ erictapen ];
|
||||
};
|
||||
}
|
||||
@@ -12794,6 +12794,8 @@ self: super: with self; {
|
||||
|
||||
pytest-shutil = callPackage ../development/python-modules/pytest-shutil { };
|
||||
|
||||
pytest-smtpd = callPackage ../development/python-modules/pytest-smtpd { };
|
||||
|
||||
pytest-spec = callPackage ../development/python-modules/pytest-spec { };
|
||||
|
||||
python-status = callPackage ../development/python-modules/python-status { };
|
||||
|
||||
Reference in New Issue
Block a user