2023-09-20 17:24:03 +02:00
|
|
|
# Description: A package designed to expose cryptographic recipes and primitives to Python developers
|
2020-11-28 00:53:56 +11:00
|
|
|
# URL: https://pypi.org/project/cryptography/
|
2023-03-03 18:39:16 +01:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-07-10 18:57:17 +02:00
|
|
|
# Depends on: python3-cffi python3-setuptools-rust
|
2019-05-21 22:24:15 +10:00
|
|
|
|
|
|
|
name=python3-cryptography
|
2024-06-04 23:49:15 +02:00
|
|
|
version=42.0.8
|
2019-05-21 22:24:15 +10:00
|
|
|
release=1
|
2020-12-31 12:35:01 +00:00
|
|
|
source=(https://pypi.python.org/packages/source/c/cryptography/cryptography-$version.tar.gz)
|
2019-05-21 22:24:15 +10:00
|
|
|
|
|
|
|
build() {
|
2023-03-03 18:39:16 +01:00
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
2021-03-07 13:29:25 +11:00
|
|
|
|
2023-03-03 18:39:16 +01:00
|
|
|
cd ${name#*-}-$version
|
2022-07-10 18:57:17 +02:00
|
|
|
|
2023-03-03 18:39:16 +01:00
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
2019-05-21 22:24:15 +10:00
|
|
|
}
|