Skip to contentSkip to conversation

python3-screeninfo: add recipe

PATCH New Leon Anavi 1 participant 2 messages Nov 3, 2023

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/2 python3-screeninfo: add recipe

Add screeninfo, fetch location and size of physical screens. Versions 0.8.1 and 0.8.0 changelog:

- Added typing information
- Started tracking changes
- Switched to poetry
- Added ignoring of enumerators that work, but return no valid monitors
- Added ScreenInfoError to list of top-level symbols

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-screeninfo_0.8.1.bb           | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-screeninfo_0.8.1.bb
meta-python/recipes-devtools/python/python3-screeninfo_0.8.1.bb new file +16 -0
new file mode 100644
index 000000000..0fb3f3a22
@@ -0,0 +1,16 @@
+DESCRIPTION = "Fetch location and size of physical screens."
+HOMEPAGE = "https://github.com/rr-/screeninfo"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a23813181e06852d377bc25ae5563a97"
+
+PYPI_PACKAGE = "screeninfo"
+
+SRC_URI[sha256sum] = "9983076bcc7e34402a1a9e4d7dabf3729411fd2abb3f3b4be7eba73519cd2ed1"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "\
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-profile \
+"
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/2 python3-unoconv: add recipe

Add unoconv version 0.9.0, an universal office converter - convert between any document format supported by LibreOffice/OpenOffice.

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-unoconv_0.9.0.bb           | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-unoconv_0.9.0.bb
meta-python/recipes-devtools/python/python3-unoconv_0.9.0.bb new file +23 -0
new file mode 100644
index 000000000..3c944b4f2
@@ -0,0 +1,23 @@
+SUMMARY = "Universal Office Converter - Office document conversion"
+HOMEPAGE = "https://github.com/unoconv/unoconv"
+LICENSE = "GPL-2.0-only"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+SRC_URI[sha256sum] = "308ebfd98e67d898834876348b27caf41470cd853fbe2681cc7dacd8fd5e6031"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE="unoconv"
+
+RDEPENDS:${PN} += "\
+    ${PYTHON_PN}-distutils \
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-shell \
+"
+
+do_install:append() {
+  sed -i -e 's:^#!/usr/bin/env python$:#!/usr/bin/env python3:' ${D}/usr/bin/unoconv
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2