20 lines
730 B
Plaintext
20 lines
730 B
Plaintext
# Description: A package designed to expose cryptographic recipes and primitives to Python developers.
|
|
# URL: https://pypi.org/project/cryptography/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: python3-cffi python3-setuptools-rust python3-typing_extensions
|
|
|
|
name=python3-cryptography
|
|
version=36.0.2
|
|
release=1
|
|
source=(https://pypi.python.org/packages/source/c/cryptography/cryptography-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
cd ${name#*-}-$version
|
|
/usr/bin/python3 setup.py build
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
|
|
}
|