Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions pkgs/development/python-modules/aiosmtpd/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
{ lib
, atpublic
, attrs
, buildPythonPackage
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
, typing-extensions
{
lib,
atpublic,
attrs,
buildPythonPackage,
fetchFromGitHub,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:

buildPythonPackage rec {
pname = "aiosmtpd";
version = "1.4.5";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
repo = "aiosmtpd";
rev = "refs/tags/v${version}";
hash = "sha256-8nQ4BVSLYgZHRGkbujy/olV/+GABlkDhe5wef3hyQpQ=";
};

postPatch = ''
substituteInPlace pytest.ini \
--replace-fail "--cov=aiosmtpd/ --cov-report term" ""
'';

nativeBuildInputs = [ setuptools ];

propagatedBuildInputs = [
atpublic
attrs
Expand All @@ -45,14 +54,13 @@ buildPythonPackage rec {
"test_byclient"
];

pythonImportsCheck = [
"aiosmtpd"
];
pythonImportsCheck = [ "aiosmtpd" ];

meta = with lib; {
description = "Asyncio based SMTP server";
mainProgram = "aiosmtpd";
homepage = "https://aiosmtpd.readthedocs.io/";
changelog = "https://github.com/aio-libs/aiosmtpd/releases/tag/v${version}";
longDescription = ''
This is a server for SMTP and related protocols, similar in utility to the
standard library's smtpd.py module.
Expand Down