2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
typing-extensions,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sievelib";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-eM8es/WZENFBASjOk1KVbbwkmzxTr7NirOiSLt7F3N8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
|
|
|
|
dependencies = [ typing-extensions ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "sievelib" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Client-side Sieve and Managesieve library";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
A library written in Python that implements RFC 5228 (Sieve: An Email
|
|
|
|
Filtering Language) and RFC 5804 (ManageSieve: A Protocol for
|
|
|
|
Remotely Managing Sieve Scripts), as well as the following extensions:
|
|
|
|
|
|
|
|
* Copying Without Side Effects (RFC 3894)
|
|
|
|
* Body (RFC 5173)
|
|
|
|
* Date and Index (RFC 5260)
|
|
|
|
* Vacation (RFC 5230)
|
|
|
|
* Imap4flags (RFC 5232)
|
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/tonioo/sievelib";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/tonioo/sievelib/releases/tag/${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|