python3-bcrypt: inherit PYO3_CROSS variables from rust helper

This commit is contained in:
Gonzalo Tornaría 2023-09-16 11:56:23 -03:00 committed by Andrew J. Hesford
parent ebc2695bf6
commit e2eba60f44
1 changed files with 1 additions and 7 deletions

View File

@ -5,7 +5,7 @@ revision=1
build_style=python3-pep517
build_helper="rust"
hostmakedepends="python3-setuptools-rust python3-wheel python3-cffi cargo"
makedepends="python3-devel"
makedepends="python3-devel rust-std"
depends="python3-cffi"
checkdepends="python3-pytest $depends"
short_desc="Modern password hashing for software and servers"
@ -15,9 +15,3 @@ homepage="https://github.com/pyca/bcrypt"
changelog="https://github.com/pyca/bcrypt/blob/main/README.rst#changelog"
distfiles="${PYPI_SITE}/b/bcrypt/bcrypt-${version}.tar.gz"
checksum=27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd
if [ "$CROSS_BUILD" ]; then
makedepends+=" rust-std"
export PYO3_CROSS_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib"
export PYO3_CROSS_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
fi