2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "frogmouth";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.9.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Textualize";
|
|
|
|
repo = "frogmouth";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-0fcCON/M9JklE7X9aRfzTkEFG4ckJqLoQlYCSrWHHGQ=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.poetry-core
|
|
|
|
python3.pkgs.pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
httpx
|
|
|
|
textual
|
|
|
|
typing-extensions
|
2024-02-29 20:09:43 +00:00
|
|
|
xdg
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2023-07-15 17:15:38 +00:00
|
|
|
"httpx"
|
2023-08-04 22:07:22 +00:00
|
|
|
"textual"
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "frogmouth" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Markdown browser for your terminal";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "frogmouth";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/Textualize/frogmouth";
|
|
|
|
changelog = "https://github.com/Textualize/frogmouth/blob/${src.rev}/ChangeLog.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|