contrib/python3-cryptography/Pkgfile

21 lines
741 B
Plaintext
Raw Normal View History

2023-09-20 17:24:03 +02:00
# Description: A package designed to expose cryptographic recipes and primitives to Python developers
# URL: https://pypi.org/project/cryptography/
2023-03-03 18:39:16 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-cffi python3-setuptools-rust
2019-05-21 14:24:15 +02:00
name=python3-cryptography
2024-02-24 11:59:54 +01:00
version=42.0.5
2019-05-21 14:24:15 +02:00
release=1
2020-12-31 13:35:01 +01:00
source=(https://pypi.python.org/packages/source/c/cryptography/cryptography-$version.tar.gz)
2019-05-21 14:24:15 +02: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"
2023-03-03 18:39:16 +01:00
cd ${name#*-}-$version
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 14:24:15 +02:00
}