receipt
# SliTaz package receipt v2.
ORIGIN="cryptography"
PACKAGE="python-cryptography"
VERSION="2.3.1"
CATEGORY="python"
SHORT_DESC="Provide cryptographic recipes and primitives"
MAINTAINER="[email protected]"
LICENSE="BSD"
WEB_SITE="https://pypi.org/project/cryptography/"
#HOST_ARCH
REPOLOGY="python:cryptography"
BUILD_DEPENDS="python python-asn1crypto python-cffi python-enum34 python-idna \
python-ipaddress python-six \
python3 python3-asn1crypto python3-cffi python3-idna python3-six"
SPLIT="${PACKAGE/python/python3}:3"
compile_rules() {
pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
}
genpkg_rules() {
copy @std
py="${PACKAGE%%-*}" # python/python3
case $PACKAGE in
python-*)
DEPENDS="$py $py-asn1crypto $py-cffi $py-enum34 $py-idna \
$py-ipaddress $py-six"
;;
python3-*)
DEPENDS="$py $py-asn1crypto $py-cffi $py-idna $py-six"
;;
esac
}