1{ lib, buildPythonApplication, fetchFromGitHub, bibtool, pybtex, pymupdf, pynvim
2, pyperclip, roman, pdfrw, pagelabels, setuptools }:
3
4buildPythonApplication {
5 pname = "termpdf.py";
6 version = "2022-03-28";
7
8 src = fetchFromGitHub {
9 owner = "dsanson";
10 repo = "termpdf.py";
11 rev = "e7bd0824cb7d340b8dba7d862e696dba9cb5e5e2";
12 sha256 = "HLQZBaDoZFVBs4JfJcwhrLx8pxdEI56/iTpUjT5pBhk=";
13 };
14
15 propagatedBuildInputs = [
16 bibtool
17 pybtex
18 pymupdf
19 pyperclip
20 roman
21 pagelabels
22 pdfrw
23 pynvim
24 setuptools
25 ];
26
27 # upstream doesn't contain tests
28 doCheck = false;
29
30 meta = with lib; {
31 description = ''
32 A graphical pdf (and epub, cbz, ...) reader that works
33 inside the kitty terminal.
34 '';
35 homepage = "https://github.com/dsanson/termpdf.py";
36 maintainers = with maintainers; [ teto ];
37 license = licenses.mit;
38 };
39}