2018-11-25 11:14:29 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, mock
|
2021-06-03 10:09:11 +00:00
|
|
|
, future, six, setuptools-scm }:
|
2018-11-25 11:14:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sievelib";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1sl1fnwr5jdacrrnq2rvzh4vv1dyxd3x31vnqga36gj8h546h7mz";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-09-14 23:10:05 +00:00
|
|
|
name = "pip-10-pip-req.patch";
|
2018-11-25 11:14:29 +00:00
|
|
|
url = "https://github.com/tonioo/sievelib/commit/1deef0e2bf039a0e817ea6f19aaf1947dc9fafbc.patch";
|
|
|
|
sha256 = "0vaj73mcij9dism8vfaai82irh8j1b2n8gf9jl1a19d2l26jrflk";
|
|
|
|
})
|
2020-09-14 23:10:05 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "requirements-in-setup-py.patch";
|
|
|
|
url = "https://github.com/tonioo/sievelib/commit/91f40ec226ea288e98379da01672a46dabd89fc9.patch";
|
|
|
|
sha256 = "0hph89xn16r353rg6f05bh0cgigmwdc736bya089qc03jhssrgns";
|
|
|
|
})
|
2018-11-25 11:14:29 +00:00
|
|
|
];
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2018-11-25 11:14:29 +00:00
|
|
|
propagatedBuildInputs = [ future six ];
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Client-side Sieve and Managesieve library written in Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tonioo/sievelib";
|
2018-11-25 11:14:29 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ leenaars ];
|
|
|
|
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)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|