wok-next view python-openid/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 9b3461bf373c |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="python-openid" # and python3-openid
4 PACKAGE="python-openid"
5 VERSION="3.1.0" # Python3 package python3-openid version
6 VERSION2="2.2.5" # Python2 package python-openid version
7 CATEGORY="python"
8 SHORT_DESC="OpenID support for servers and consumers"
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="Apache"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:openid"
15 BUILD_DEPENDS="python python3 python3-defusedxml"
16 SPLIT="${PACKAGE/python/python3}:3"
18 compile_rules() {
19 case $SET in
20 '') VERSION="$VERSION2";;
21 esac
22 pip$SET install --no-compile --root=$install python$SET-openid==$VERSION
23 }
25 genpkg_rules() {
26 copy @std
27 py="${PACKAGE%%-*}" # python/python3
28 case $PACKAGE in
29 python-*)
30 VERSION="$VERSION2"
31 DEPENDS="$py"
32 ;;
33 python3-*)
34 DEPENDS="$py $py-defusedxml"
35 ;;
36 esac
37 }