depot/third_party/nixpkgs/pkgs/development/python-modules/aiosmtpd/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

35 lines
889 B
Nix

{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
, attrs, atpublic }:
buildPythonPackage rec {
pname = "aiosmtpd";
version = "1.4.2";
disabled = !isPy3k;
# Release not published to Pypi
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = version;
sha256 = "0hbpyns1j1fpvpj7gyb8cz359j7l4hzfqbig74xp4xih59sih0wj";
};
propagatedBuildInputs = [
atpublic attrs
];
# Tests need network access
doCheck = false;
meta = with lib; {
homepage = "https://aiosmtpd.readthedocs.io/en/latest/";
description = "Asyncio based SMTP server";
longDescription = ''
This is a server for SMTP and related protocols, similar in utility to the
standard library's smtpd.py module, but rewritten to be based on asyncio for
Python 3.
'';
license = licenses.asl20;
maintainers = with maintainers; [ eadwu ];
};
}