wok-next annotate python-requests/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | 8b5b2a6d07b8 |
children |
rev | line source |
---|---|
al@19763 | 1 # SliTaz package receipt v2. |
al@16776 | 2 |
al@20972 | 3 ORIGIN="requests" |
al@16776 | 4 PACKAGE="python-requests" |
al@20972 | 5 VERSION="2.19.1" |
al@16776 | 6 CATEGORY="network" |
al@16776 | 7 SHORT_DESC="Python HTTP Requests for Humans" |
al@16776 | 8 MAINTAINER="al.bobylev@gmail.com" |
pascal@17345 | 9 LICENSE="Apache" |
al@20972 | 10 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20972 | 11 HOST_ARCH="any" |
al@20887 | 12 REPOLOGY="python:requests" |
al@16776 | 13 |
al@20972 | 14 BUILD_DEPENDS="python python-urllib3 python-idna python-certifi python-chardet \ |
al@20972 | 15 python3 python3-urllib3 python3-idna python3-certifi python3-chardet" |
al@20972 | 16 SPLIT="${PACKAGE/python/python3}:3" |
al@16776 | 17 |
al@20443 | 18 compile_rules() { |
al@20972 | 19 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION |
al@16776 | 20 } |
al@16776 | 21 |
al@20443 | 22 genpkg_rules() { |
al@19763 | 23 copy @std |
al@20972 | 24 py=${PACKAGE%%-*} # python/python3 |
al@20972 | 25 DEPENDS="$py $py-urllib3 $py-idna $py-certifi $py-chardet" |
al@16776 | 26 } |