about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pydyf/default.nix
blob: 346a6f6e39b595f36e0c2167f95bdf91aab15e9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
, coverage
, ghostscript
, pillow
}:

buildPythonPackage rec {
  pname = "pydyf";
  version = "0.1.2";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit version;
    pname = "pydyf";
    sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "--isort --flake8 --cov --no-cov-on-fail" ""
  '';

  checkInputs = [
    pytestCheckHook
    coverage
    ghostscript
    pillow
  ];

  meta = with lib; {
    homepage = "https://doc.courtbouillon.org/pydyf/stable/";
    description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
    license = licenses.bsd3;
    maintainers = with maintainers; [ rprecenth ];
  };
}