12 with python311.pkgs; buildPythonApplication rec {
19 ] ++ lib.optionals withManpage [
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 sha256 = "sha256-mXaRzl7260uxio/BQ36BCBxgKhl1r0Rc6PwFZA8qNqc=";
33 substituteInPlace alot/settings/manager.py \
34 --replace-fail /usr/share "$out/share"
39 ] ++ lib.optional withManpage sphinx;
41 propagatedBuildInputs = [
63 postBuild = lib.optionalString withManpage [
68 # Some twisted tests need internet access
70 "test_no_spawn_no_stdin_attached"
72 "test_save_named_query"
77 completionPython = python.withPackages (ps: [ ps.configobj ]);
79 lib.optionalString withManpage ''
81 cp -r docs/build/man $out/man
84 mkdir -p $out/share/{applications,alot}
85 cp -r extra/themes $out/share/alot
87 substituteInPlace extra/completion/alot-completion.zsh \
88 --replace-fail "python3" "${completionPython.interpreter}"
89 install -D extra/completion/alot-completion.zsh $out/share/zsh/site-functions/_alot
91 sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
95 homepage = "https://github.com/pazz/alot";
96 description = "Terminal MUA using notmuch mail";
98 license = licenses.gpl3Plus;
99 platforms = platforms.linux;
100 maintainers = with maintainers; [ milibopp ];