1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 genshi,
7 lxml,
8 pyyaml,
9 python-magic,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "relatorio";
15 version = "0.10.2";
16
17 disabled = pythonOlder "3.5";
18
19 format = "setuptools";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-zgCOmcR9FWj0lpi78U0G1CKR5kyNyr541HusIrBpF/Q=";
24 };
25
26 propagatedBuildInputs = [
27 genshi
28 lxml
29 ];
30
31 passthru.optional-dependencies = {
32 chart = [
33 # pycha
34 pyyaml
35 ];
36 fodt = [ python-magic ];
37 };
38
39 nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.fodt;
40
41 pythonImportsCheck = [ "relatorio" ];
42
43 meta = {
44 homepage = "https://relatorio.tryton.org/";
45 changelog = "https://hg.tryton.org/relatorio/file/${version}/CHANGELOG";
46 description = "Templating library able to output odt and pdf files";
47 mainProgram = "relatorio-render";
48 maintainers = with lib.maintainers; [ johbo ];
49 license = lib.licenses.gpl2Plus;
50 };
51}