contrib/python3-cryptography/Pkgfile

21 lines
737 B
Plaintext
Raw Normal View History

2019-05-21 14:24:15 +02:00
# Description: A package designed to expose cryptographic recipes and primitives to Python developers.
# URL: https://pypi.org/project/cryptography/
2019-05-21 14:24:15 +02:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-cffi python3-setuptools-rust
2019-05-21 14:24:15 +02:00
name=python3-cryptography
2022-09-11 11:11:32 +02:00
version=38.0.1
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() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
2019-05-21 14:24:15 +02:00
cd ${name#*-}-$version
/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
}