{ pkgs , lib , python3 , makeWrapper , notmuch , w3m }: python3.pkgs.buildPythonApplication rec { pname = "dodo"; version = "unstable-2024-07-04"; format = "pyproject"; src = pkgs.fetchFromGitHub { repo = pname; owner = "akissinger"; rev = "503763c4d738af79ee0d761c47920e9a7b61855a"; sha256 = "sha256-Am1sFMRDlSNmVSQyuHtQj9weB90AT4d1dhnhsUlA6Zs="; }; nativeBuildInputs = with python3.pkgs; [ setuptools-scm makeWrapper ]; propagatedBuildInputs = with python3.pkgs; [ bleach pyqt6 pyqt6-sip pyqt6-webengine ]; postInstall = '' wrapProgram $out/bin/dodo --prefix PATH ":" \ ${lib.makeBinPath [ notmuch w3m ]} ''; meta = with lib; { description = "A graphical, hackable email client based on notmuch"; homepage = "https://github.com/akissinger/dodo"; license = licenses.gpl3Only; maintainers = with maintainers; [ matthiasbeyer ]; }; }