@@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="Provides cryptographic recipes and primitives to Python
33TERMUX_PKG_LICENSE=" Apache-2.0, BSD 3-Clause"
44TERMUX_PKG_LICENSE_FILE=" LICENSE, LICENSE.APACHE, LICENSE.BSD"
55TERMUX_PKG_MAINTAINER=" @termux"
6- TERMUX_PKG_VERSION=" 42 .0.8 "
6+ TERMUX_PKG_VERSION=" 44 .0.0 "
77TERMUX_PKG_SRCURL=https://github.com/pyca/cryptography/archive/refs/tags/${TERMUX_PKG_VERSION} .tar.gz
8- TERMUX_PKG_SHA256=38ee4ce0804e4003e3093db8342cd7e6ee65614c8bbf70c98f1716e0f33709ed
8+ TERMUX_PKG_SHA256=b2232d62504ba4cca97136582e86564ac75ec1124dfddb19d83f0eb26548d18d
99TERMUX_PKG_AUTO_UPDATE=true
1010TERMUX_PKG_DEPENDS=" openssl, python, python-pip"
1111TERMUX_PKG_BUILD_IN_SRC=true
@@ -36,5 +36,12 @@ termux_step_post_make_install() {
3636
3737 mkdir -p wheels
3838 local _pyver=" ${TERMUX_PYTHON_VERSION/ ./ } "
39- mv cryptography-$TERMUX_PKG_VERSION -cp$_pyver -cp$_pyver -linux_$TERMUX_ARCH .whl ./wheels/
39+ # Fix wheel name for arm
40+ if [ " $TERMUX_ARCH " = " arm" ]; then
41+ mv cryptography-$TERMUX_PKG_VERSION -cp37-abi3-linux_armv7l.whl \
42+ ./wheels/cryptography-$TERMUX_PKG_VERSION -cp$_pyver -cp$_pyver -linux_armv7l.whl
43+ else
44+ mv cryptography-$TERMUX_PKG_VERSION -cp37-abi3-linux_$TERMUX_ARCH .whl \
45+ ./wheels/cryptography-$TERMUX_PKG_VERSION -cp$_pyver -cp$_pyver -linux_$TERMUX_ARCH .whl
46+ fi
4047}
0 commit comments