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