wok-next view python-twisted/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="Twisted"
4 PACKAGE="python-twisted"
5 VERSION="18.7.0"
6 CATEGORY="network"
7 SHORT_DESC="Event-driven networking for internet applications"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:twisted"
14 BUILD_DEPENDS="python-dev python-attrs python-automat python-constantly \
15 python-hyperlink python-incremental python-pyhamcrest python-zope.interface \
16 python3-dev python3-attrs python3-automat python3-constantly python3-hyperlink \
17 python3-incremental python3-pyhamcrest python3-zope.interface"
18 SPLIT="${PACKAGE/python/python3}:3"
20 compile_rules() {
21 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
22 }
24 genpkg_rules() {
25 copy @std
26 py="${PACKAGE%%-*}" # python/python3
27 DEPENDS="$py $py-attrs $py-automat $py-constantly $py-hyperlink \
28 $py-incremental $py-pyhamcrest $py-zope.interface"
29 SUGGESTED="$py-service_identity"
30 }