wok-next view python-requests/receipt @ rev 20732

Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 17:01:41 2018 +0300 (2018-05-29)
parents 6c73b944e8dd
children 92698cd69f34
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python-requests"
4 VERSION="latest"
5 CATEGORY="network"
6 SHORT_DESC="Python HTTP Requests for Humans"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://pypi.python.org/pypi/requests"
11 BUILD_DEPENDS="python-urllib3 python-idna python-certifi python-chardet"
13 compile_rules() {
14 pip install --no-compile --root=$DESTDIR requests
15 }
17 genpkg_rules() {
18 VERSION=$(sed -n '/^Successfully installed/ s|.*requests-||p' $LOGS/$PACKAGE.log)
19 copy @std
20 DEPENDS="$BUILD_DEPENDS"
21 }