afew: 2.0.0 -> 3.0.0

MailMover: many fixes

  Previously, MailMover didn't properly preserve flags when renaming files, and
  moved all mail to `cur`. This was fixed. Also, MailMover gained a test suite.

New filters: PropagateTags[ByRegex]InThreadFilter

  These filters allow propagating tags set to a message to the whole thread.

New command line argument: --notmuch-args= in move mode

  In move mode, afew calls `notmuch new` after moving mails around. This
  prevents `afew -m` from being used in a pre-new hook in `notmuch`.

  Now it's possible to specify notmuch args, so something like `afew -m
  --notmuch-args=--no-hooks` can live happily in a pre-new hook.

Python 3.4 and 3.5 support dropped

  afew stopped supporting the older python versions 3.4 and 3.5, and removed
  some more Python 2 compatibility code. (`from __future__ import …`, utf-8
  headers, relative imports, …)
This commit is contained in:
Florian Klink 2020-03-10 02:27:25 +01:00
parent 169fc2eeca
commit 906dccf595

View file

@ -2,18 +2,22 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "afew"; pname = "afew";
version = "2.0.0"; version = "3.0.0";
src = python3Packages.fetchPypi { src = python3Packages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0j60501nm242idf2ig0h7p6wrg58n5v2p6zfym56v9pbvnbmns0s"; sha256 = "18j3xyzchlslcrkycr2i59jg73cb6yh5s7l3qnl6sa7vgxcbhq7c";
}; };
nativeBuildInputs = with python3Packages; [ sphinx setuptools_scm ]; nativeBuildInputs = with python3Packages; [ sphinx setuptools_scm ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
python3Packages.setuptools python3Packages.notmuch chardet dkimpy python3Packages.setuptools python3Packages.notmuch chardet dkimpy
] ++ stdenv.lib.optional (!python3Packages.isPy3k) subprocess32; ];
checkInputs = with python3Packages; [
freezegun notmuch
];
makeWrapperArgs = [ makeWrapperArgs = [
''--prefix PATH ':' "${notmuch}/bin"'' ''--prefix PATH ':' "${notmuch}/bin"''