mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
977 B
Nix
49 lines
977 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, genshi
|
|
, lxml
|
|
, pyyaml
|
|
, python-magic
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "relatorio";
|
|
version = "0.10.1";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a0c72302d50d5dfa433ddab191672eec1dde1c6ed26330a378b720e5a3012e23";
|
|
};
|
|
|
|
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 = "A templating library able to output odt and pdf files";
|
|
maintainers = with lib.maintainers; [ johbo ];
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|