blob: 13cfc01a1cb36faaa84b5311b79211b07546bb1c (
plain)
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
41
42
43
44
45
|
{
pkgs,
lib,
buildPythonPackage,
fetchPypi,
flit-core,
pillow,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "pydyf";
version = "0.11.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-OU3d9hnMqdDFVxXjxV6hIam/nLx4DNwSAaJCeRe4a2Q=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--isort --flake8" ""
'';
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [
pkgs.ghostscript
pillow
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "pydyf" ];
meta = {
description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
homepage = "https://doc.courtbouillon.org/pydyf/stable/";
changelog = "https://github.com/CourtBouillon/pydyf/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ rprecenth ];
};
}
|