2021-09-18 10:52:07 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
2022-08-12 12:06:08 +00:00
|
|
|
, hatchling
|
2021-09-18 10:52:07 +00:00
|
|
|
, dnspython
|
2022-08-12 12:06:08 +00:00
|
|
|
, expiringdict
|
2021-09-18 10:52:07 +00:00
|
|
|
, html2text
|
|
|
|
, mail-parser
|
2021-12-06 16:07:01 +00:00
|
|
|
, imapclient
|
2022-08-12 12:06:08 +00:00
|
|
|
, publicsuffix2
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mailsuite";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.9.4";
|
|
|
|
format = "pyproject";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-wgutyXxo1z3GxO3xikRlA4Og+oz+7+PrY2Hs6gicO/o=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dnspython
|
2022-08-12 12:06:08 +00:00
|
|
|
expiringdict
|
2021-09-18 10:52:07 +00:00
|
|
|
html2text
|
|
|
|
mail-parser
|
2021-12-06 16:07:01 +00:00
|
|
|
imapclient
|
2022-08-12 12:06:08 +00:00
|
|
|
publicsuffix2
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mailsuite" ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = {
|
|
|
|
description = "A Python package to simplify receiving, parsing, and sending email";
|
|
|
|
homepage = "https://seanthegeek.github.io/mailsuite/";
|
|
|
|
maintainers = with lib.maintainers; [ talyz ];
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|