From d97e0e71a59b2ea3743008584c9e48bb7b25ea80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 16 Sep 2023 11:56:34 -0300 Subject: [PATCH] python3-cryptography: inherit PYO3_CROSS variables from rust helper --- srcpkgs/python3-cryptography/template | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/srcpkgs/python3-cryptography/template b/srcpkgs/python3-cryptography/template index b183104aa66..672c194423c 100644 --- a/srcpkgs/python3-cryptography/template +++ b/srcpkgs/python3-cryptography/template @@ -6,7 +6,7 @@ build_style=python3-module build_helper="rust" make_check_args="--ignore tests/bench/test_x509.py --ignore tests/bench/test_aead.py" hostmakedepends="python3-setuptools-rust python3-cffi cargo pkg-config" -makedepends="python3-devel openssl-devel" +makedepends="python3-devel rust-std openssl-devel" depends="python3-cffi" checkdepends="python3-pytest-subtests python3-pytest-xdist 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" 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() { vsed -i '/addopts/d' pyproject.toml }