From 8d3584959f2920bbb10a023c671e3c9cd658143b Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 7 Jul 2023 14:57:48 +0200 Subject: [PATCH] python3-bcrypt: update to 4.0.1. --- srcpkgs/python3-bcrypt/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-bcrypt/template b/srcpkgs/python3-bcrypt/template index 869fe684ce2f..526475773fe7 100644 --- a/srcpkgs/python3-bcrypt/template +++ b/srcpkgs/python3-bcrypt/template @@ -1,9 +1,10 @@ # Template file for 'python3-bcrypt' pkgname=python3-bcrypt -version=3.2.2 +version=4.0.1 revision=1 build_style=python3-pep517 -hostmakedepends="python3-setuptools python3-wheel python3-cffi" +build_helper="rust" +hostmakedepends="python3-setuptools python3-setuptools-rust python3-wheel python3-cffi rust cargo" makedepends="python3-devel" depends="python3-cffi" checkdepends="python3-pytest $depends" @@ -13,4 +14,10 @@ license="Apache-2.0" 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=433c410c2177057705da2a9f2cd01dd157493b2a7ac14c8593a16b3dab6b6bfb +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