mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-cryptography: inherit PYO3_CROSS variables from rust helper
This commit is contained in:
parent
e2eba60f44
commit
d97e0e71a5
1 changed files with 1 additions and 7 deletions
|
@ -6,7 +6,7 @@ build_style=python3-module
|
||||||
build_helper="rust"
|
build_helper="rust"
|
||||||
make_check_args="--ignore tests/bench/test_x509.py --ignore tests/bench/test_aead.py"
|
make_check_args="--ignore tests/bench/test_x509.py --ignore tests/bench/test_aead.py"
|
||||||
hostmakedepends="python3-setuptools-rust python3-cffi cargo pkg-config"
|
hostmakedepends="python3-setuptools-rust python3-cffi cargo pkg-config"
|
||||||
makedepends="python3-devel openssl-devel"
|
makedepends="python3-devel rust-std openssl-devel"
|
||||||
depends="python3-cffi"
|
depends="python3-cffi"
|
||||||
checkdepends="python3-pytest-subtests python3-pytest-xdist
|
checkdepends="python3-pytest-subtests python3-pytest-xdist
|
||||||
python3-iso8601 python3-pytz python3-cryptography_vectors
|
python3-iso8601 python3-pytz python3-cryptography_vectors
|
||||||
|
@ -19,12 +19,6 @@ changelog="https://raw.githubusercontent.com/pyca/cryptography/master/CHANGELOG.
|
||||||
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
|
||||||
checksum=6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34
|
checksum=6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
pre_check() {
|
pre_check() {
|
||||||
vsed -i '/addopts/d' pyproject.toml
|
vsed -i '/addopts/d' pyproject.toml
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue