summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb')
-rw-r--r--meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb b/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb
new file mode 100644
index 0000000000..30063c3410
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb
@@ -0,0 +1,36 @@
1SUMMARY = "Modern password hashing for your software and your servers."
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=8f7bb094c7232b058c7e9f2e431f389c"
4HOMEPAGE = "https://pypi.org/project/bcrypt/"
5
6DEPENDS += "${PYTHON_PN}-cffi-native"
7LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', ' -fuse-ld=bfd', '', d)}"
8
9SRC_URI[sha256sum] = "df37f5418d4f1cdcff845f60e747a015389fa4e63703c918330865e06ad80007"
10
11inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates
12
13SRC_URI += " \
14 file://run-ptest \
15"
16
17CARGO_SRC_DIR = "src/_bcrypt"
18
19require ${BPN}-crates.inc
20
21RDEPENDS:${PN}-ptest += " \
22 ${PYTHON_PN}-pytest \
23 ${PYTHON_PN}-unittest-automake-output \
24"
25
26do_install_ptest() {
27 install -d ${D}${PTEST_PATH}/tests
28 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
29}
30
31RDEPENDS:${PN}:class-target += "\
32 ${PYTHON_PN}-cffi \
33 ${PYTHON_PN}-ctypes \
34 ${PYTHON_PN}-shell \
35 ${PYTHON_PN}-six \
36"