depot/third_party/nixpkgs/pkgs/development/python-modules/sievelib/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

53 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mock,
pytestCheckHook,
pythonOlder,
setuptools-scm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "sievelib";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-eM8es/WZENFBASjOk1KVbbwkmzxTr7NirOiSLt7F3N8=";
};
build-system = [ setuptools-scm ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "sievelib" ];
meta = with lib; {
description = "Client-side Sieve and Managesieve library";
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)
'';
homepage = "https://github.com/tonioo/sievelib";
changelog = "https://github.com/tonioo/sievelib/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ leenaars ];
};
}