diff options
author | Denys Dmytriyenko <denys@ti.com> | 2020-04-01 16:35:46 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-04-01 15:11:15 -0700 |
commit | 1fed24e60373866e13ceb12157575c4e09d5f261 (patch) | |
tree | b23b266c8559e837eb8f958a275353a33235a419 | |
parent | 7227897d5d4eb1af442508689ceb09935449efbb (diff) | |
download | meta-openembedded-1fed24e60373866e13ceb12157575c4e09d5f261.tar.gz |
pycryptodomex: cleanup recipe to use common include
PyCryptodome is "an almost drop-in replacement for the old PyCrypto library"
and installs under "Crypto" package. In cases when both PyCryptodome and old
PyCrypto are needed, there's PyCryptodomeX that installs under own name as
"Cryptodome" package.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python-pycryptodome.inc | 2 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pycryptodomex_3.9.4.bb | 26 |
2 files changed, 4 insertions, 24 deletions
diff --git a/meta-python/recipes-devtools/python/python-pycryptodome.inc b/meta-python/recipes-devtools/python/python-pycryptodome.inc index 31d1368b0f..63b4a4abb4 100644 --- a/meta-python/recipes-devtools/python/python-pycryptodome.inc +++ b/meta-python/recipes-devtools/python/python-pycryptodome.inc | |||
@@ -21,7 +21,7 @@ RDEPENDS_${PN}-tests += " \ | |||
21 | 21 | ||
22 | PACKAGES =+ "${PN}-tests" | 22 | PACKAGES =+ "${PN}-tests" |
23 | 23 | ||
24 | FILES_${PN}-tests += " \ | 24 | FILES_${PN}-tests = " \ |
25 | ${PYTHON_SITEPACKAGES_DIR}/Crypto/SelfTest/ \ | 25 | ${PYTHON_SITEPACKAGES_DIR}/Crypto/SelfTest/ \ |
26 | ${PYTHON_SITEPACKAGES_DIR}/Crypto/SelfTest/__pycache__/ \ | 26 | ${PYTHON_SITEPACKAGES_DIR}/Crypto/SelfTest/__pycache__/ \ |
27 | " | 27 | " |
diff --git a/meta-python/recipes-devtools/python/python3-pycryptodomex_3.9.4.bb b/meta-python/recipes-devtools/python/python3-pycryptodomex_3.9.4.bb index be6b10f3fb..e41c14b142 100644 --- a/meta-python/recipes-devtools/python/python3-pycryptodomex_3.9.4.bb +++ b/meta-python/recipes-devtools/python/python3-pycryptodomex_3.9.4.bb | |||
@@ -1,30 +1,10 @@ | |||
1 | SUMMARY = "Cryptographic library for Python" | 1 | require python-pycryptodome.inc |
2 | DESCRIPTION = "PyCryptodome is a self-contained Python package of low-level\ | 2 | inherit setuptools3 |
3 | cryptographic primitives." | ||
4 | HOMEPAGE = "http://www.pycryptodome.org" | ||
5 | LICENSE = "PD & BSD-2-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=6dc0e2a13d2f25d6f123c434b761faba" | ||
7 | 3 | ||
8 | SRC_URI[md5sum] = "46ba513d95b6e323734074d960a7d57b" | 4 | SRC_URI[md5sum] = "46ba513d95b6e323734074d960a7d57b" |
9 | SRC_URI[sha256sum] = "22d970cee5c096b9123415e183ae03702b2cd4d3ba3f0ced25c4e1aba3967167" | 5 | SRC_URI[sha256sum] = "22d970cee5c096b9123415e183ae03702b2cd4d3ba3f0ced25c4e1aba3967167" |
10 | 6 | ||
11 | inherit pypi | 7 | FILES_${PN}-tests = " \ |
12 | inherit setuptools3 | ||
13 | |||
14 | RDEPENDS_${PN} += " \ | ||
15 | ${PYTHON_PN}-io \ | ||
16 | ${PYTHON_PN}-math \ | ||
17 | " | ||
18 | |||
19 | RDEPENDS_${PN}-tests += " \ | ||
20 | ${PYTHON_PN}-unittest \ | ||
21 | " | ||
22 | |||
23 | PACKAGES =+ "${PN}-tests" | ||
24 | |||
25 | FILES_${PN}-tests += " \ | ||
26 | ${PYTHON_SITEPACKAGES_DIR}/Cryptodome/SelfTest/ \ | 8 | ${PYTHON_SITEPACKAGES_DIR}/Cryptodome/SelfTest/ \ |
27 | ${PYTHON_SITEPACKAGES_DIR}/Cryptodome/SelfTest/__pycache__/ \ | 9 | ${PYTHON_SITEPACKAGES_DIR}/Cryptodome/SelfTest/__pycache__/ \ |
28 | " | 10 | " |
29 | |||
30 | BBCLASSEXTEND = "native nativesdk" | ||