diff options
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.bb | 36 |
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 @@ | |||
| 1 | SUMMARY = "Modern password hashing for your software and your servers." | ||
| 2 | LICENSE = "Apache-2.0" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8f7bb094c7232b058c7e9f2e431f389c" | ||
| 4 | HOMEPAGE = "https://pypi.org/project/bcrypt/" | ||
| 5 | |||
| 6 | DEPENDS += "${PYTHON_PN}-cffi-native" | ||
| 7 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', ' -fuse-ld=bfd', '', d)}" | ||
| 8 | |||
| 9 | SRC_URI[sha256sum] = "df37f5418d4f1cdcff845f60e747a015389fa4e63703c918330865e06ad80007" | ||
| 10 | |||
| 11 | inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates | ||
| 12 | |||
| 13 | SRC_URI += " \ | ||
| 14 | file://run-ptest \ | ||
| 15 | " | ||
| 16 | |||
| 17 | CARGO_SRC_DIR = "src/_bcrypt" | ||
| 18 | |||
| 19 | require ${BPN}-crates.inc | ||
| 20 | |||
| 21 | RDEPENDS:${PN}-ptest += " \ | ||
| 22 | ${PYTHON_PN}-pytest \ | ||
| 23 | ${PYTHON_PN}-unittest-automake-output \ | ||
| 24 | " | ||
| 25 | |||
| 26 | do_install_ptest() { | ||
| 27 | install -d ${D}${PTEST_PATH}/tests | ||
| 28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 29 | } | ||
| 30 | |||
| 31 | RDEPENDS:${PN}:class-target += "\ | ||
| 32 | ${PYTHON_PN}-cffi \ | ||
| 33 | ${PYTHON_PN}-ctypes \ | ||
| 34 | ${PYTHON_PN}-shell \ | ||
| 35 | ${PYTHON_PN}-six \ | ||
| 36 | " | ||
