python3-scrypt: Upgrade 0.8.6 -> 0.8.17

Upgrade to release 0.8.17 and inherit dos2unix to resolve issues
due to different line endings:

- Add_dll_directory for python 3.8 on windows, as
  importlib.util.find_spec does not search all paths anymore
- Add additional test vector from RFC
- Fix missing import
- Fix imp deprecation warning
- Improve build for conda forge
- Add SCRYPT_WINDOWS_LINK_LEGACY_OPENSSL environment variable,
  when set, openssl 1.0.2 is linked
- Fix build for conda feedstock
- Fix typo
- Use the static libcrypto_static for windows and openssl 1.1.1
- Setup.py for windows improved, works with openssl 1.0.2 and 1.1.1
- Setup.py for windows fixed

License-Update: Update years

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
Leon Anavi
2021-03-24 14:09:30 +02:00
committed by Khem Raj
parent ba2576ed79
commit aa8402007c
2 changed files with 23 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
DESCRIPTION = "Bindings for the scrypt key derivation function library"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ddf47d0ff1849bce3257ccbc1fd275c"
HOMEPAGE="https://github.com/holgern/py-scrypt"
SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
SRC_URI[sha256sum] = "25b5075f2238be93af1cd574540a5ea01b8547f9b678aa72d22fce22577475ec"
inherit pypi ptest setuptools3 dos2unix
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/scrypt/tests/* ${D}${PTEST_PATH}/tests/
}