python3Packages.odsgenerator: init at 1.12.0

Signed-off-by: David Wronek <david.wronek@mainlining.org>
This commit is contained in:
David Wronek
2026-04-01 14:14:41 +02:00
parent ca1a2dfd55
commit bf4e057ad8
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
odfdo,
pyyaml,
uv-build,
}:
buildPythonPackage (finalAttrs: {
pname = "odsgenerator";
version = "1.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jdum";
repo = "odsgenerator";
tag = "v${finalAttrs.version}";
hash = "sha256-FfwyqNI5Hz2Muoe/VWgQigea6D042UoRbXDV9GNV4w4=";
};
build-system = [ uv-build ];
dependencies = [
odfdo
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.9.0,<0.10.0" "uv_build"
substituteInPlace tests/test_cli.py \
--replace-fail '"odsgenerator"' "\"$out/bin/odsgenerator\""
'';
meta = {
description = "odsgenerator generates an ODF .ods file from json or yaml file";
homepage = "https://github.com/jdum/odsgenerator";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ungeskriptet ];
};
})
+2
View File
@@ -11355,6 +11355,8 @@ self: super: with self; {
odp-amsterdam = callPackage ../development/python-modules/odp-amsterdam { };
odsgenerator = callPackage ../development/python-modules/odsgenerator { };
oelint-data = callPackage ../development/python-modules/oelint-data { };
oelint-parser = callPackage ../development/python-modules/oelint-parser { };