f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
51 lines
1,015 B
Nix
51 lines
1,015 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
genshi,
|
|
lxml,
|
|
pyyaml,
|
|
python-magic,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "relatorio";
|
|
version = "0.10.2";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zgCOmcR9FWj0lpi78U0G1CKR5kyNyr541HusIrBpF/Q=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
genshi
|
|
lxml
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
chart = [
|
|
# pycha
|
|
pyyaml
|
|
];
|
|
fodt = [ python-magic ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.fodt;
|
|
|
|
pythonImportsCheck = [ "relatorio" ];
|
|
|
|
meta = {
|
|
homepage = "https://relatorio.tryton.org/";
|
|
changelog = "https://hg.tryton.org/relatorio/file/${version}/CHANGELOG";
|
|
description = "Templating library able to output odt and pdf files";
|
|
mainProgram = "relatorio-render";
|
|
maintainers = with lib.maintainers; [ johbo ];
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|