2023-01-01 13:19:56 +01:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, bibtool, pybtex, pymupdf, pynvim
|
|
|
|
, pyperclip, roman, pdfrw, pagelabels, setuptools }:
|
2019-09-30 05:22:25 +02:00
|
|
|
|
|
|
|
buildPythonApplication {
|
|
|
|
pname = "termpdf.py";
|
2023-01-01 13:19:56 +01:00
|
|
|
version = "2022-03-28";
|
2019-09-30 05:22:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsanson";
|
|
|
|
repo = "termpdf.py";
|
2023-01-01 13:19:56 +01:00
|
|
|
rev = "e7bd0824cb7d340b8dba7d862e696dba9cb5e5e2";
|
|
|
|
sha256 = "HLQZBaDoZFVBs4JfJcwhrLx8pxdEI56/iTpUjT5pBhk=";
|
2019-09-30 05:22:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bibtool
|
|
|
|
pybtex
|
|
|
|
pymupdf
|
|
|
|
pyperclip
|
|
|
|
roman
|
|
|
|
pagelabels
|
|
|
|
pdfrw
|
|
|
|
pynvim
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream doesn't contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-30 05:22:25 +02:00
|
|
|
description = ''
|
|
|
|
A graphical pdf (and epub, cbz, ...) reader that works
|
|
|
|
inside the kitty terminal.
|
|
|
|
'';
|
2020-04-18 13:43:47 +02:00
|
|
|
homepage = "https://github.com/dsanson/termpdf.py";
|
2019-09-30 05:22:25 +02:00
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|