contrib/python3-cryptography/Pkgfile

20 lines
730 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 python3-typing_extensions
2019-05-21 14:24:15 +02:00
name=python3-cryptography
2022-07-02 15:08:46 +02:00
version=37.0.2
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 setup.py build
2020-11-11 08:55:49 +01:00
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
2019-05-21 14:24:15 +02:00
}