1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 hatchling, 7 pytest, 8 smtpdfix, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-smtpd"; 14 version = "0.1.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 # Pypi tarball doesn't include tests/ 20 src = fetchFromGitHub { 21 owner = "bebleo"; 22 repo = "pytest-smtpd"; 23 tag = "v${version}"; 24 hash = "sha256-Vu2D2hfxBYxgXQ4Gjr+jFpac9fjpLL2FftBhnqrcQaA="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ 30 smtpdfix 31 ]; 32 33 buildInputs = [ pytest ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "pytest_smtpd" ]; 38 39 meta = with lib; { 40 description = "Pytest fixture that creates an SMTP server"; 41 homepage = "https://github.com/bebleo/pytest-smtpd"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ erictapen ]; 44 }; 45}