termpdf.py: init at 2019-09-30

This is a pdf reader for the terminal kitty.
This commit is contained in:
Matthieu Coudron 2019-09-30 12:22:25 +09:00
parent c881dd5e68
commit 839263d558
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ stdenv
, buildPythonApplication
, fetchFromGitHub
, fetchPypi
, bibtool
, pybtex
, pymupdf
, pynvim
, pyperclip
, roman
, pdfrw
, pagelabels
, setuptools
}:
buildPythonApplication {
pname = "termpdf.py";
version = "2019-10-03";
src = fetchFromGitHub {
owner = "dsanson";
repo = "termpdf.py";
rev = "4f3bdf4b5a00801631f2498f2c38c81e0a588ae2";
sha256 = "05gbj2fqzqndq1mx6g9asa7i6z8a9jdjrvilfwx8lg23cs356m6m";
};
propagatedBuildInputs = [
bibtool
pybtex
pymupdf
pyperclip
roman
pagelabels
pdfrw
pynvim
setuptools
];
# upstream doesn't contain tests
doCheck = false;
meta = with stdenv.lib; {
description = ''
A graphical pdf (and epub, cbz, ...) reader that works
inside the kitty terminal.
'';
homepage = https://github.com/dsanson/termpdf.py;
maintainers = with maintainers; [ teto ];
license = licenses.mit;
};
}

View File

@ -25873,6 +25873,8 @@ in
prow = callPackage ../applications/networking/cluster/prow { };
termpdfpy = python3Packages.callPackage ../applications/misc/termpdf.py {};
inherit (callPackage ../applications/networking/cluster/terraform {
# terraform 0.12 crashes with go1.14 on darwin https://github.com/hashicorp/terraform/issues/24287
buildGoPackage = if stdenv.isDarwin then buildGo113Package else buildGoPackage;