mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 22:27:02 +02:00
python3-cryptography: update to 36.0.0.
This commit is contained in:
parent
0e10e115c7
commit
e7cda369b7
1 changed files with 10 additions and 14 deletions
|
@ -1,10 +1,11 @@
|
|||
# Template file for 'python3-cryptography'
|
||||
pkgname=python3-cryptography
|
||||
version=3.4.8
|
||||
revision=2
|
||||
version=36.0.0
|
||||
revision=1
|
||||
wrksrc="${pkgname#python3-}-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools-rust python3-cffi"
|
||||
build_helper="rust"
|
||||
hostmakedepends="python3-setuptools-rust python3-cffi cargo"
|
||||
makedepends="python3-devel openssl-devel"
|
||||
depends="python3-cffi"
|
||||
checkdepends="python3-pytest-subtests python3-pytz python3-iso8601
|
||||
|
@ -15,20 +16,15 @@ license="BSD-3-Clause, Apache-2.0"
|
|||
homepage="https://github.com/pyca/cryptography"
|
||||
changelog="https://raw.githubusercontent.com/pyca/cryptography/master/CHANGELOG.rst"
|
||||
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
|
||||
checksum=94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c
|
||||
checksum=52f769ecb4ef39865719aedc67b4b7eae167bafa48dbc2a26dd36fa56460507f
|
||||
|
||||
# The rust extension is a no-op designed to test build systems and,
|
||||
# for the moment, does not work properly with Python 3.10 on cross.
|
||||
# Hoepfully upstream tooling will make accommodating Python 3.10 trivial by the
|
||||
# time the rust extension actually does something.
|
||||
#
|
||||
# See, e.g., commit 58bc3876d33bfa5e37a21b5a4b27f016af387a76 to see how the
|
||||
# rust extension was built with Python 3.9.
|
||||
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
|
||||
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
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
vlicense LICENSE.BSD
|
||||
|
||||
chmod 755 ${DESTDIR}/${py3_sitelib}/cryptography/hazmat/bindings/*.so
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue