blob: cc54f8a7ca5653125223e9e238d2808a091a9cc2 (
plain)
1 # Description: A package designed to expose cryptographic recipes and primitives to Python developers.
2 # URL: https://pypi.org/project/cryptography/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-cffi python3-setuptools-rust
5
6 name=python3-cryptography
7 version=38.0.3
8 release=1
9 source=(https://pypi.python.org/packages/source/c/cryptography/cryptography-$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 mkdir "$PKGMK_SOURCE_DIR/rust" || true
14 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
15
16 cd ${name#*-}-$version
17
18 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
19 /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
20 }
|