summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2025-10-06 07:50:16 +0200
committerKhem Raj <raj.khem@gmail.com>2025-10-06 11:34:43 -0700
commitb1140390b6b14352e14754fb9a05bd019eee6c86 (patch)
treec6e4a37014e564567a2ce86628552aa61f950e65
parentf1b10c2686ba12e64136862fb545f3c195494c90 (diff)
downloadmeta-openembedded-b1140390b6b14352e14754fb9a05bd019eee6c86.tar.gz
python3-odfpy: New recipe for version 1.4.1
It's an optional dependency for pandas to provide ODS reader and writer support. It complements spreadsheet support along with python3-xlrd and python3-openpyxl, both of which are part of meta-python already. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-odfpy/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb43
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-odfpy/run-ptest b/meta-python/recipes-devtools/python/python3-odfpy/run-ptest
new file mode 100644
index 0000000000..5cec711696
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-odfpy/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest
diff --git a/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb b/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb
new file mode 100644
index 0000000000..9b470f11ac
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb
@@ -0,0 +1,43 @@
1SUMMARY = "Python API and tools to manipulate OpenDocument files"
2DESCRIPTION = "Odfpy is a library to read and write OpenDocument v. 1.2 \
3files. The main focus has been to prevent the programmer from creating \
4invalid documents. It has checks that raise an exception if the programmer \
5adds an invalid element, adds an attribute unknown to the grammar, forgets \
6to add a required attribute or adds text to an element that doesn’t allow it. \
7\
8These checks and the API itself were generated from the RelaxNG schema, and \
9then hand-edited. Therefore the API is complete and can handle all ODF \
10constructions. \
11\
12In addition to the API, there are a few scripts: \
13 csv2odf - Create OpenDocument spreadsheet from comma separated values \
14 mailodf - Email ODF file as HTML archive \
15 odf2xhtml - Convert ODF to (X)HTML \
16 odf2mht - Convert ODF to HTML archive \
17 odf2xml - Create OpenDocument XML file from OD? package \
18 odfimgimport - Import external images \
19 odflint - Check ODF file for problems \
20 odfmeta - List or change the metadata of an ODF file \
21 odfoutline - Show outline of OpenDocument \
22 odfuserfield - List or change the user-field declarations in an ODF file \
23 xml2odf - Create OD? package from OpenDocument in XML form \
24\
25The source code is at https://github.com/eea/odfpy \
26\
27Visit https://github.com/eea/odfpy/wiki for documentation and examples. \
28\
29The code at https://joinup.ec.europa.eu/software/odfpy/home is obsolete."
30LICENSE = "Apache-2.0 | (GPL-2.0-or-later & LGPL-2.0-or-later)"
31LIC_FILES_CHKSUM = " \
32 file://APACHE-LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \
33 file://GPL-LICENSE-2.txt;md5=751419260aa954499f7abaabaa882bbe \
34"
35
36PYPI_PACKAGE = "odfpy"
37
38inherit pypi ptest-python-pytest setuptools3
39SRC_URI[sha256sum] = "db766a6e59c5103212f3cc92ec8dd50a0f3a02790233ed0b52148b70d3c438ec"
40
41SRC_URI += "file://run-ptest"
42
43RDEPENDS:${PN} = "python3-defusedxml"