2023-05-15 13:30:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "frogmouth";
|
2023-08-07 14:41:23 +00:00
|
|
|
version = "0.9.0";
|
2023-05-15 13:30:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Textualize";
|
|
|
|
repo = "frogmouth";
|
|
|
|
rev = "v${version}";
|
2023-08-07 14:41:23 +00:00
|
|
|
hash = "sha256-TMCeIwMEoNDQV9iue4XrdYQMmwofXDvdMMLTZKILQ9Q=";
|
2023-05-15 13:30:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.poetry-core
|
|
|
|
python3.pkgs.pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
httpx
|
|
|
|
textual
|
|
|
|
typing-extensions
|
|
|
|
xdg
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2023-06-27 13:56:13 +00:00
|
|
|
"httpx"
|
2023-07-20 13:51:37 +00:00
|
|
|
"textual"
|
2023-05-15 13:30: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 ];
|
|
|
|
};
|
|
|
|
}
|