1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pytestCheckHook
6, coverage
7, ghostscript
8, pillow
9}:
10
11buildPythonPackage rec {
12 pname = "pydyf";
13 version = "0.1.2";
14 disabled = !isPy3k;
15
16 src = fetchPypi {
17 inherit version;
18 pname = "pydyf";
19 sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
20 };
21
22 postPatch = ''
23 substituteInPlace pyproject.toml \
24 --replace "--isort --flake8 --cov --no-cov-on-fail" ""
25 '';
26
27 checkInputs = [
28 pytestCheckHook
29 coverage
30 ghostscript
31 pillow
32 ];
33
34 meta = with lib; {
35 homepage = "https://doc.courtbouillon.org/pydyf/stable/";
36 description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ rprecenth ];
39 };
40}