emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / relatorio / default.nix
blob325644a026e1193eb57eeb2b8f126ac38d4f64c3
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchPypi,
6   genshi,
7   lxml,
8   pyyaml,
9   python-magic,
10   pytestCheckHook,
13 buildPythonPackage rec {
14   pname = "relatorio";
15   version = "0.11.1";
17   disabled = pythonOlder "3.5";
19   format = "setuptools";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-e6CvclFrRfXR5fL2ZG1LZxTTsTRouLsDicCwvXtySGE=";
24   };
26   propagatedBuildInputs = [
27     genshi
28     lxml
29   ];
31   optional-dependencies = {
32     chart = [
33       # pycha
34       pyyaml
35     ];
36     fodt = [ python-magic ];
37   };
39   nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.fodt;
41   pythonImportsCheck = [ "relatorio" ];
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   };