2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "frogmouth";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.8.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Textualize";
|
|
|
|
repo = "frogmouth";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-GVXzYPYvqgWRFOZW+dfYVI6Dhk9yUmuJ7V8wtM0VjR0=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.poetry-core
|
|
|
|
python3.pkgs.pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
httpx
|
|
|
|
textual
|
|
|
|
typing-extensions
|
|
|
|
xdg
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
"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 ];
|
|
|
|
};
|
|
|
|
}
|