9 python3Packages.buildPythonApplication rec {
14 src = fetchFromGitHub {
16 repo = "tldr-python-client";
18 hash = "sha256-lc0Jen8vW4BNg784td1AZa2GTYvXC1d83FnAe5RZqpY=";
21 build-system = with python3Packages; [
26 dependencies = with python3Packages; [
32 nativeBuildInputs = [ installShellFiles ];
34 nativeCheckInputs = with python3Packages; [
40 pytest -k 'not test_error_message'
46 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
47 installShellCompletion --cmd tldr \
48 --bash <($out/bin/tldr --print-completion bash) \
49 --zsh <($out/bin/tldr --print-completion zsh)
53 description = "Simplified and community-driven man pages";
55 tldr pages gives common use cases for commands, so you don't need to hunt
56 through a man page for the correct flags.
58 homepage = "https://tldr.sh";
59 changelog = "https://github.com/tldr-pages/tldr-python-client/blob/${version}/CHANGELOG.md";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [