summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/afew/default.nix
blob: a9becb9d8c90325832b735923cb3ddf4d62ae015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib, python3Packages, fetchPypi, pkgs }:

python3Packages.buildPythonApplication rec {
  pname = "afew";
  version = "3.0.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "0wpfqbqjlfb9z0hafvdhkm7qw56cr9kfy6n8vb0q42dwlghpz1ff";
  };

  nativeBuildInputs = with python3Packages; [
    sphinxHook
    setuptools
    setuptools-scm
  ];

  sphinxBuilders = [
    "html"
    "man"
  ];

  propagatedBuildInputs = with python3Packages; [
    chardet
    dkimpy
    notmuch
  ];

  nativeCheckInputs = [
    pkgs.notmuch
  ] ++ (with python3Packages; [
    freezegun
    pytestCheckHook
  ]);

  makeWrapperArgs = [
    ''--prefix PATH ':' "${pkgs.notmuch}/bin"''
  ];

  outputs = [
    "out"
    "doc"
    "man"
  ];

  meta = with lib; {
    homepage = "https://github.com/afewmail/afew";
    description = "An initial tagging script for notmuch mail";
    license = licenses.isc;
    maintainers = with maintainers; [ flokli ];
  };
}