If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
54 lines
967 B
Nix
54 lines
967 B
Nix
{
|
|
lib,
|
|
buildPythonApplication,
|
|
fetchFromGitHub,
|
|
bibtool,
|
|
pybtex,
|
|
pymupdf,
|
|
pynvim,
|
|
pyperclip,
|
|
roman,
|
|
pdfrw,
|
|
pagelabels,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonApplication {
|
|
pname = "termpdf.py";
|
|
version = "2022-03-28";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsanson";
|
|
repo = "termpdf.py";
|
|
rev = "e7bd0824cb7d340b8dba7d862e696dba9cb5e5e2";
|
|
sha256 = "HLQZBaDoZFVBs4JfJcwhrLx8pxdEI56/iTpUjT5pBhk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bibtool
|
|
pybtex
|
|
pymupdf
|
|
pyperclip
|
|
roman
|
|
pagelabels
|
|
pdfrw
|
|
pynvim
|
|
setuptools
|
|
];
|
|
|
|
# upstream doesn't contain tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = ''
|
|
A graphical pdf (and epub, cbz, ...) reader that works
|
|
inside the kitty terminal.
|
|
'';
|
|
mainProgram = "termpdf.py";
|
|
homepage = "https://github.com/dsanson/termpdf.py";
|
|
maintainers = with maintainers; [ teto ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|