2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
genshi,
|
|
|
|
lxml,
|
|
|
|
pyyaml,
|
|
|
|
python-magic,
|
|
|
|
pytestCheckHook,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "relatorio";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.10.2";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-zgCOmcR9FWj0lpi78U0G1CKR5kyNyr541HusIrBpF/Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
genshi
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
chart = [
|
|
|
|
# pycha
|
|
|
|
pyyaml
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
fodt = [ python-magic ];
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.fodt;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "relatorio" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://relatorio.tryton.org/";
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://hg.tryton.org/relatorio/file/${version}/CHANGELOG";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Templating library able to output odt and pdf files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "relatorio-render";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ johbo ];
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|