mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
45 lines
919 B
Nix
45 lines
919 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "frogmouth";
|
|
version = "0.9.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Textualize";
|
|
repo = "frogmouth";
|
|
rev = "v${version}";
|
|
hash = "sha256-0fcCON/M9JklE7X9aRfzTkEFG4ckJqLoQlYCSrWHHGQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
httpx
|
|
textual
|
|
typing-extensions
|
|
xdg
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"httpx"
|
|
"textual"
|
|
];
|
|
|
|
pythonImportsCheck = [ "frogmouth" ];
|
|
|
|
meta = with lib; {
|
|
description = "Markdown browser for your terminal";
|
|
mainProgram = "frogmouth";
|
|
homepage = "https://github.com/Textualize/frogmouth";
|
|
changelog = "https://github.com/Textualize/frogmouth/blob/${src.rev}/ChangeLog.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|