diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-cffi_1.17.1.bb')
-rw-r--r-- | meta/recipes-devtools/python/python3-cffi_1.17.1.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-cffi_1.17.1.bb b/meta/recipes-devtools/python/python3-cffi_1.17.1.bb new file mode 100644 index 0000000000..5a3af03d9f --- /dev/null +++ b/meta/recipes-devtools/python/python3-cffi_1.17.1.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Foreign Function Interface for Python calling C code" | ||
2 | HOMEPAGE = "http://cffi.readthedocs.org/" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf" | ||
5 | DEPENDS += "libffi python3-pycparser" | ||
6 | |||
7 | SRC_URI[sha256sum] = "1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824" | ||
8 | |||
9 | SRC_URI += "file://run-ptest \ | ||
10 | file://0001-Cast-offset-to-size_t-to-avoid-c-11-narrowing-warnin.patch" | ||
11 | |||
12 | inherit pypi python_setuptools_build_meta ptest pkgconfig | ||
13 | |||
14 | do_install_ptest() { | ||
15 | cp -r ${S}/testing ${D}${PTEST_PATH} | ||
16 | # These two files from the source tree are needed by the tests | ||
17 | install -D -m644 ${S}/src/c/parse_c_type.c ${D}${PTEST_PATH}/src/c/parse_c_type.c | ||
18 | install -D -m644 ${S}/src/cffi/parse_c_type.h ${D}${PTEST_PATH}/src/cffi/parse_c_type.h | ||
19 | } | ||
20 | |||
21 | RDEPENDS:${PN} = " \ | ||
22 | python3-ctypes \ | ||
23 | python3-io \ | ||
24 | python3-pycparser \ | ||
25 | python3-setuptools \ | ||
26 | python3-shell \ | ||
27 | " | ||
28 | |||
29 | RDEPENDS:${PN}-ptest += " \ | ||
30 | python3-pytest \ | ||
31 | python3-unittest-automake-output \ | ||
32 | python3-dev \ | ||
33 | gcc-symlinks \ | ||
34 | g++-symlinks \ | ||
35 | " | ||
36 | |||
37 | INSANE_SKIP:${PN}-ptest = "dev-deps" | ||
38 | |||
39 | BBCLASSEXTEND = "native nativesdk" | ||