2023-01-11 07:51:40 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, bibtool, pybtex, pymupdf, pynvim
|
|
|
|
, pyperclip, roman, pdfrw, pagelabels, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication {
|
|
|
|
pname = "termpdf.py";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2022-03-28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsanson";
|
|
|
|
repo = "termpdf.py";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "e7bd0824cb7d340b8dba7d862e696dba9cb5e5e2";
|
|
|
|
sha256 = "HLQZBaDoZFVBs4JfJcwhrLx8pxdEI56/iTpUjT5pBhk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bibtool
|
|
|
|
pybtex
|
|
|
|
pymupdf
|
|
|
|
pyperclip
|
|
|
|
roman
|
|
|
|
pagelabels
|
|
|
|
pdfrw
|
|
|
|
pynvim
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream doesn't contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''
|
|
|
|
A graphical pdf (and epub, cbz, ...) reader that works
|
|
|
|
inside the kitty terminal.
|
|
|
|
'';
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "termpdf.py";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dsanson/termpdf.py";
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|