diff --git a/pkgs/tools/text/frogmouth/default.nix b/pkgs/tools/text/frogmouth/default.nix new file mode 100644 index 000000000000..3ce784b5aa2d --- /dev/null +++ b/pkgs/tools/text/frogmouth/default.nix @@ -0,0 +1,43 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "frogmouth"; + version = "0.5.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Textualize"; + repo = "frogmouth"; + rev = "v${version}"; + hash = "sha256-5MNQ78zwjtenHDjy2g1rjiq4HvFie7uUSlMwZu6RmXg="; + }; + + nativeBuildInputs = [ + python3.pkgs.poetry-core + python3.pkgs.pythonRelaxDepsHook + ]; + + propagatedBuildInputs = with python3.pkgs; [ + httpx + textual + typing-extensions + xdg + ]; + + pythonRelaxDeps = [ + "xdg" + ]; + + pythonImportsCheck = [ "frogmouth" ]; + + meta = with lib; { + description = "A Markdown browser for your terminal"; + homepage = "https://github.com/Textualize/frogmouth"; + changelog = "https://github.com/Textualize/frogmouth/blob/${src.rev}/ChangeLog.md"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a14e5983d1e6..2d28953f237e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4833,6 +4833,8 @@ with pkgs; frei = callPackage ../tools/misc/frei { }; + frogmouth = callPackage ../tools/text/frogmouth { }; + fselect = callPackage ../tools/misc/fselect { }; fsmon = callPackage ../tools/misc/fsmon { };