summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorSamantha Jalabert <samantha.jalabert@syslinbit.com>2023-09-22 14:46:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-27 11:47:42 +0100
commit7cf64503ea33ca3c78bf5e8f459df557449006e7 (patch)
tree46feddba713d8ab697938f1908bb54933ba7181a /meta/recipes-devtools/python
parentf1161d693e7d2e2b40b8c5f869fc2c95cc6dba53 (diff)
downloadpoky-7cf64503ea33ca3c78bf5e8f459df557449006e7.tar.gz
python3-license-expression: Copy recipe from meta-python
commit: cabfde8c84e100968bc9ab8407ede616100fddbb (From OE-Core rev: 84d07b09582b69653f11ec025a5074055483a97f) Signed-off-by: Marta Rybczynska <mrybczynska@syslinbit.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-license-expression/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-license-expression_30.1.1.bb36
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-license-expression/run-ptest b/meta/recipes-devtools/python/python3-license-expression/run-ptest
new file mode 100644
index 0000000000..5cec711696
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-license-expression/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest
diff --git a/meta/recipes-devtools/python/python3-license-expression_30.1.1.bb b/meta/recipes-devtools/python/python3-license-expression_30.1.1.bb
new file mode 100644
index 0000000000..31fb88d6e5
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-license-expression_30.1.1.bb
@@ -0,0 +1,36 @@
1SUMMARY = "Utility library to parse, compare, simplify and normalize license expressions"
2HOMEPAGE = "https://github.com/nexB/license-expression"
3
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
6
7SRC_URI[sha256sum] = "42375df653ad85e6f5b4b0385138b2dbea1f5d66360783d8625c3e4f97f11f0c"
8
9inherit pypi ptest python_setuptools_build_meta
10
11DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
12
13RDEPENDS:${PN} += "\
14 ${PYTHON_PN}-booleanpy \
15 ${PYTHON_PN}-core \
16 ${PYTHON_PN}-json \
17 ${PYTHON_PN}-stringold \
18 ${PYTHON_PN}-logging \
19"
20
21BBCLASSEXTEND = "native nativesdk"
22
23SRC_URI += " \
24 file://run-ptest \
25"
26
27RDEPENDS:${PN}-ptest += " \
28 ${PYTHON_PN}-pytest \
29"
30
31do_install_ptest() {
32 install -d ${D}${PTEST_PATH}/tests
33 install -d ${D}${PTEST_PATH}/src
34 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
35 cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/
36}