Skip to content

Commit 6e68d3c

Browse files
committed
new package: python3.12-pycryptodomex
1 parent ddb151e commit 6e68d3c

File tree

1 file changed

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

1 file changed

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

0 commit comments

Comments
 (0)