blob: ec3d84cd4a38bcfdd922fc26088ca862010d07c3 (
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 python3-typing_extensions
5
6 name=python3-cryptography
7 version=36.0.2
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 /usr/bin/python3 setup.py build
18 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
19 }
|