Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, python3 3, fetchFromGitHub 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "frogmouth"; 8 version = "0.6.0"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "Textualize"; 13 repo = "frogmouth"; 14 rev = "v${version}"; 15 hash = "sha256-BgJdcdIgYNZUJLWDgUWIDyiSSAkLdePYus3IYQo/QpY="; 16 }; 17 18 nativeBuildInputs = [ 19 python3.pkgs.poetry-core 20 python3.pkgs.pythonRelaxDepsHook 21 ]; 22 23 propagatedBuildInputs = with python3.pkgs; [ 24 httpx 25 textual 26 typing-extensions 27 xdg 28 ]; 29 30 pythonRelaxDeps = [ 31 "xdg" 32 ]; 33 34 pythonImportsCheck = [ "frogmouth" ]; 35 36 meta = with lib; { 37 description = "A Markdown browser for your terminal"; 38 homepage = "https://github.com/Textualize/frogmouth"; 39 changelog = "https://github.com/Textualize/frogmouth/blob/${src.rev}/ChangeLog.md"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ figsoda ]; 42 }; 43}