diff mbox series

[meta-python,08/12] python3-pyais: Add recipe

Message ID 20250411004201.3826913-8-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,meta-python,01/12] qhull: Add recipe | expand

Commit Message

Khem Raj April 11, 2025, 12:41 a.m. UTC
Ptests take < 1mins on qemux86-64/kvm

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-pyais_2.9.2.bb             | 29 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 03b4d685f1..47a6430c96 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -57,6 +57,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-precise-runner \
     python3-prettytable \
     python3-propcache \
+    python3-pyais \
     python3-pyasyncore \
     python3-pydantic \
     python3-pydantic-core \
diff --git a/meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb b/meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb
new file mode 100644
index 0000000000..a1ae92985a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb
@@ -0,0 +1,29 @@ 
+SUMMARY = "AIS message decoding"
+HOMEPAGE = "https://github.com/M0r13n/pyais"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=79d9e278b76e3e5b3358cd70b328173c"
+
+SRC_URI = "git://github.com/M0r13n/pyais;protocol=https;branch=master"
+
+PV .= "+git"
+SRCREV = "9ce53ae21f19e8dc6e7b841dd0ccc246898730ea"
+
+S = "${WORKDIR}/git"
+
+inherit python_setuptools_build_meta ptest-python-pytest
+
+PYPI_PACKAGE = "pyais"
+
+do_install_ptest:append() {
+	install -d ${D}${PTEST_PATH}/examples/
+	install -Dm 0644 ${S}/examples/*.py ${D}${PTEST_PATH}/examples/
+	install -Dm 0644 ${S}/examples/*.nmea ${D}${PTEST_PATH}/examples/
+	install -Dm 0644 ${S}/examples/*.ais ${D}${PTEST_PATH}/examples/
+}
+
+RDEPENDS:${PN} = "python3-attrs python3-bitarray"
+RDEPENDS:${PN}-ptest += "\
+						 python3-coverage \
+						 python3-mypy \
+						 python3-pytest-cov \
+						 "