Skip to content

Commit 8a0f894

Browse files
committed
new package: python3.12-pycryptodomex
1 parent ddb151e commit 8a0f894

File tree

1 file changed

+43
-0
lines changed
  • tur-pypi-312/python3.12-pycryptodomex

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
TERMUX_PKG_HOMEPAGE=https://www.pycryptodome.org/
2+
TERMUX_PKG_DESCRIPTION="A self-contained Python package of low-level cryptographic primitives"
3+
TERMUX_PKG_LICENSE="BSD 2-Clause, Public Domain"
4+
TERMUX_PKG_LICENSE_FILE="LICENSE.rst"
5+
TERMUX_PKG_MAINTAINER="@termux-user-repository"
6+
TERMUX_PKG_VERSION="3.21.0"
7+
TERMUX_PKG_SRCURL="https://github.com/Legrandin/pycryptodome/archive/refs/tags/v${TERMUX_PKG_VERSION}x.tar.gz"
8+
TERMUX_PKG_SHA256=7762d1b658b47e989f21ed844a8bf9a527b130fecec26f0d5076656dc38c0558
9+
TERMUX_PKG_DEPENDS="python"
10+
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel"
11+
TERMUX_PKG_BUILD_IN_SRC=true
12+
TERMUX_PKG_AUTO_UPDATE=true
13+
14+
TERMUX_PYTHON_VERSION=3.12
15+
TERMUX_PYTHON_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python${TERMUX_PYTHON_VERSION/./}-crossenv-prefix-$TERMUX_ARCH
16+
TUR_AUTO_AUDIT_WHEEL=true
17+
TUR_AUDIT_WHEEL_NO_LIBS=true
18+
19+
source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
20+
21+
termux_step_post_get_source() {
22+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
23+
}
24+
25+
termux_step_pre_configure() {
26+
LDFLAGS+=" -Wl,--no-as-needed -lpython${TERMUX_PYTHON_VERSION}"
27+
}
28+
29+
termux_step_make() {
30+
:
31+
}
32+
33+
termux_step_make_install() {
34+
pip install . --prefix=$TERMUX_PREFIX -vv --no-build-isolation --no-deps
35+
36+
python setup.py bdist_wheel
37+
}
38+
39+
termux_step_post_make_install() {
40+
local _pyver="${TERMUX_PYTHON_VERSION/./}"
41+
mv ./dist/pycryptodomex-$TERMUX_PKG_VERSION-cp36-abi3-linux_$TERMUX_ARCH.whl \
42+
./dist/pycryptodomex-$TERMUX_PKG_VERSION-cp$_pyver-cp$_pyver-linux_$TERMUX_ARCH.whl
43+
}

0 commit comments

Comments
 (0)