14 buildPythonApplication rec {
23 ++ lib.optionals withManpage [
29 src = fetchFromGitHub {
33 sha256 = "sha256-mXaRzl7260uxio/BQ36BCBxgKhl1r0Rc6PwFZA8qNqc=";
37 substituteInPlace alot/settings/manager.py \
38 --replace-fail /usr/share "$out/share"
43 ] ++ lib.optional withManpage sphinx;
45 propagatedBuildInputs = [
67 postBuild = lib.optionalString withManpage [
72 # Some twisted tests need internet access
74 "test_no_spawn_no_stdin_attached"
76 "test_save_named_query"
81 completionPython = python.withPackages (ps: [ ps.configobj ]);
83 lib.optionalString withManpage ''
85 cp -r docs/build/man $out/man
88 mkdir -p $out/share/{applications,alot}
89 cp -r extra/themes $out/share/alot
91 substituteInPlace extra/completion/alot-completion.zsh \
92 --replace-fail "python3" "${completionPython.interpreter}"
93 install -D extra/completion/alot-completion.zsh $out/share/zsh/site-functions/_alot
95 sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
99 homepage = "https://github.com/pazz/alot";
100 description = "Terminal MUA using notmuch mail";
101 mainProgram = "alot";
102 license = licenses.gpl3Plus;
103 platforms = platforms.linux;
104 maintainers = with maintainers; [ milibopp ];