wok-next 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 d8fcbb8246ef
children f47adfbeb944
files cromfs/receipt efl/receipt gnome-commander/receipt gnome-themes-standard/receipt gource/receipt mixxx/receipt mysql/receipt nmap/receipt opal/receipt opencv/receipt portmidi/receipt pycairo/.icon.png pycairo/receipt pyopenssl/.icon.png pyopenssl/receipt python-aeroolib/receipt python-alabaster/receipt python-antlr/receipt python-apsw/receipt python-argparse/.icon.png python-argparse/receipt python-asn1crypto/receipt python-asterisk/.icon.png python-asterisk/receipt python-atomicwrites/.icon.png python-atomicwrites/receipt python-attrs/.icon.png python-attrs/receipt python-automat/.icon.png python-automat/receipt python-babel/receipt python-backports.functools-lru-cache/.icon.png python-backports.functools-lru-cache/receipt python-backports_abc/receipt python-barcode/.icon.png python-barcode/receipt python-bcrypt/receipt python-beaker/receipt python-beautifulsoup4/receipt python-blessings/receipt python-bpython/receipt python-caja/receipt python-caldav/receipt python-certifi/receipt python-cffi/receipt python-chardet/receipt python-cheetah/receipt python-cheetah3/.icon.png python-cheetah3/receipt python-cheroot/.icon.png python-cheroot/receipt python-cherrypy/receipt python-configobj/receipt python-configparser/receipt python-constantly/.icon.png python-constantly/receipt python-contextlib2/receipt python-couchdbkit/receipt python-coverage/receipt python-crank/receipt python-cryptography/receipt python-cssselect/receipt python-cssutils/receipt python-cups/.icon.png python-cups/receipt python-curtsies/receipt python-cython/receipt python-dateutil/receipt python-dbus/receipt python-decorator/.icon.png python-decorator/receipt python-decoratortools/receipt python-defusedxml/.icon.png python-defusedxml/receipt python-distribute/receipt python-distutils-extra/receipt python-django/receipt python-dnspython/receipt python-docopt/receipt python-docutils/receipt python-dulwich/receipt python-efl/receipt python-elaphe/receipt python-enum34/receipt python-erppeek/receipt python-ethtool/receipt python-extremes/receipt python-flake8/receipt python-flup/receipt python-foolscap/receipt python-formalchemy/receipt python-formencode/receipt python-funcsigs/receipt python-future/.icon.png python-future/receipt python-futures/receipt python-gazpacho/.icon.png python-gazpacho/receipt python-gdata/receipt python-genshi/receipt python-geojson/receipt python-gevent-psycopg2/receipt python-gevent/receipt python-greenlet/receipt python-hg-git/receipt python-html2text/receipt python-html5lib/receipt python-http-parser/receipt python-httplib2/receipt python-hyperlink/.icon.png python-hyperlink/receipt python-idna/receipt python-imagesize/receipt python-incremental/.icon.png python-incremental/receipt python-ipaddr/receipt python-ipaddress/receipt python-ipy/receipt python-jaraco.functools/.icon.png python-jaraco.functools/receipt python-jcconv/receipt python-jedi/receipt python-jinja2/receipt python-kid/receipt python-kiwi/receipt python-ldap/.icon.png python-ldap/receipt python-ldap3/.icon.png python-ldap3/receipt python-libvirt/receipt python-linecache2/.icon.png python-linecache2/receipt python-llfuse/receipt python-lxml/receipt python-mako/receipt python-markdown/.icon.png python-markdown/receipt python-markupsafe/receipt python-mccabe/receipt python-mechanize/receipt python-mock/receipt python-more-itertools/.icon.png python-more-itertools/receipt python-mpd/receipt python-mygpoclient/receipt python-mysql/receipt python-netaddr/receipt python-netifaces/receipt python-nose/receipt python-numpy/receipt python-oauth2/receipt python-oauthlib/.icon.png python-oauthlib/receipt python-ofxparse/receipt python-ooop/receipt python-opengl-accelerate/.icon.png python-opengl-accelerate/receipt python-opengl/.icon.png python-opengl/receipt python-openid/receipt python-packaging/receipt python-paramiko/receipt python-parso/.icon.png python-parso/receipt python-passlib/receipt python-paste/receipt python-pastedeploy/receipt python-pastescript/receipt python-pathlib2/.icon.png python-pathlib2/receipt python-pbr/.icon.png python-pbr/receipt python-peak-rules/receipt python-phonenumbers/receipt python-picamera/receipt python-pil/receipt python-pillow/receipt python-pluggy/.icon.png python-pluggy/receipt python-portend/.icon.png python-portend/receipt python-prettytable/receipt python-prompt-toolkit/receipt python-psutil/receipt python-psycopg2/receipt python-ptyprocess/.icon.png python-ptyprocess/receipt python-punjab/receipt python-py-restclient/.icon.png python-py-restclient/receipt python-py/receipt python-pyalsaaudio/receipt python-pyasn1-modules/.icon.png python-pyasn1-modules/receipt python-pyasn1/receipt python-pyaudio/receipt python-pybarcode/.icon.png python-pybarcode/receipt python-pybluez/receipt python-pycairo/.icon.png python-pycairo/receipt python-pychart/receipt python-pycodestyle/receipt python-pycodestyle23/.icon.png python-pycodestyle23/receipt python-pycparser/receipt python-pycryptopp/receipt python-pycups/.icon.png python-pycups/receipt python-pydot/receipt python-pyexiv2/receipt python-pyflakes/receipt python-pyflakes16/.icon.png python-pyflakes16/receipt python-pygame/receipt python-pygame/stuff/patches/config.patch python-pygame/stuff/patches/series python-pyglow/.icon.png python-pyglow/receipt python-pyglow/stuff/pyglow python-pyglow/stuff/vortex.py python-pygments/receipt python-pygobject/receipt python-pygobject2/receipt python-pygraphviz/receipt python-pygtk/receipt python-pygtk/stuff/patches/python27.patch python-pygtk/stuff/patches/series python-pyhamcrest/.icon.png python-pyhamcrest/receipt python-pyliblzma/receipt python-pylons/receipt python-pynacl/receipt python-pyopengl-accelerate/.icon.png python-pyopengl-accelerate/receipt python-pyopengl/.icon.png python-pyopengl/receipt python-pyopenssl/.icon.png python-pyopenssl/receipt python-pyparsing/receipt python-pypdf/receipt python-pyprotocols/.icon.png python-pyprotocols/receipt python-pypubsub/receipt python-pyrex/receipt python-pyserial/receipt python-pysocks/.icon.png python-pysocks/receipt python-pysqlite/receipt python-pysqlite/stuff/setup.cfg python-pyte/receipt python-pytest/receipt python-pytz/receipt python-pyusb/.icon.png python-pyusb/receipt python-pyutil/.icon.png python-pyutil/receipt python-pyweb/.icon.png python-pyweb/receipt python-pywebdav/receipt python-pyxdg/.icon.png python-pyxdg/receipt python-pyxml/receipt python-pyxml/stuff/patches/fix-python2.6.patch python-pyxml/stuff/patches/series python-pyyaml/receipt python-qrcode/receipt python-reportlab/receipt python-repoze.lru/receipt python-requests-oauthlib/.icon.png python-requests-oauthlib/receipt python-requests/receipt python-restclient/.icon.png python-restclient/receipt python-restkit/receipt python-routes/receipt python-rpi-adafruit/.icon.png python-rpi-adafruit/receipt python-rpi-gpio/.icon.png python-rpi-gpio/receipt python-rpi-pyglow/.icon.png python-rpi-pyglow/receipt python-rpi-pyglow/stuff/pyglow python-rpi-pyglow/stuff/vortex.py python-rpi.gpio/.icon.png python-rpi.gpio/receipt python-scandir/.icon.png python-scandir/receipt python-serial/.icon.png python-serial/receipt python-service_identity/.icon.png python-service_identity/receipt python-shapely/receipt python-simplejson/receipt python-singledispatch/receipt python-six/receipt python-smbus2/.icon.png python-smbus2/receipt python-smspdu/receipt python-snowballstemmer/receipt python-soappy/receipt python-socketpool/receipt python-sphinx/receipt python-sphinxcontrib-websupport/receipt python-sqlalchemy/receipt python-stdnum/.icon.png python-stdnum/receipt python-tempita/receipt python-tempora/.icon.png python-tempora/receipt python-terminado/receipt python-tornado/receipt python-traceback2/.icon.png python-traceback2/receipt python-turbogears/receipt python-tweepy/receipt python-twisted/receipt python-twodict/receipt python-typing/receipt python-unicodecsv/receipt python-unidecode/receipt python-unittest2/receipt python-urllib3/receipt python-urwid/receipt python-usb/.icon.png python-usb/receipt python-vatnumber/receipt python-vobject/receipt python-waitress/.icon.png python-waitress/receipt python-wcwidth/receipt python-web.py/.icon.png python-web.py/receipt python-webdav/receipt python-webencodings/.icon.png python-webencodings/receipt python-weberror/receipt python-webhelpers/receipt python-webhelpers2/.icon.png python-webhelpers2/receipt python-webob/receipt python-webtest/receipt python-werkzeug/receipt python-whoosh/receipt python-wstools/.icon.png python-wstools/receipt python-xattr/.icon.png python-xattr/receipt python-xdg/.icon.png python-xdg/receipt python-xlib/receipt python-xlwt/receipt python-xmlutils/receipt python-youtube-dl/receipt python-youtube-dlg/.icon.png python-youtube-dlg/receipt python-youtube-dlg/stuff/youtube-dl-gui.desktop python-zc.lockfile/.icon.png python-zc.lockfile/receipt python-zfec/receipt python-zope.interface/.icon.png python-zope.interface/receipt python-zsi/receipt python/receipt python3/receipt twisted/receipt unhide/receipt youtube-dl-gui/.icon.png youtube-dl-gui/receipt youtube-dl-gui/stuff/youtube-dl-gui.desktop youtube-dl/receipt zopeinterface/receipt
line diff
     1.1 --- a/cromfs/receipt	Fri Sep 14 11:37:28 2018 +0300
     1.2 +++ b/cromfs/receipt	Sat Sep 22 16:05:26 2018 +0300
     1.3 @@ -6,10 +6,10 @@
     1.4  SHORT_DESC="Compressed read only filesystem implemented with FUSE"
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="GPL3"
     1.7 -WEB_SITE="http://bisqwit.iki.fi/source/cromfs.html"
     1.8 +WEB_SITE="https://bisqwit.iki.fi/source/cromfs.html"
     1.9  
    1.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.11 -WGET_URL="http://bisqwit.iki.fi/src/arch/$TARBALL"
    1.12 +WGET_URL="https://bisqwit.iki.fi/src/arch/$TARBALL"
    1.13  
    1.14  BUILD_DEPENDS="fuse2-dev lzo-dev coreutils-file-format perl"
    1.15  
     2.1 --- a/efl/receipt	Fri Sep 14 11:37:28 2018 +0300
     2.2 +++ b/efl/receipt	Sat Sep 22 16:05:26 2018 +0300
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt v2.
     2.5  
     2.6  PACKAGE="efl"
     2.7 -VERSION="1.20.7"
     2.8 +VERSION="1.21.1"
     2.9  CATEGORY="base-system"
    2.10  SHORT_DESC="Enlightenment Foundation Libraries"
    2.11  MAINTAINER="domcox@slitaz.org"
     3.1 --- a/gnome-commander/receipt	Fri Sep 14 11:37:28 2018 +0300
     3.2 +++ b/gnome-commander/receipt	Sat Sep 22 16:05:26 2018 +0300
     3.3 @@ -6,7 +6,7 @@
     3.4  SHORT_DESC="A full featured, twin-panel file manager for Gnome2"
     3.5  MAINTAINER="al.bobylev@gmail.com"
     3.6  LICENSE="GPL2"
     3.7 -WEB_SITE="http://gcmd.github.io/"
     3.8 +WEB_SITE="https://gcmd.github.io/"
     3.9  
    3.10  TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.11  #WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
     4.1 --- a/gnome-themes-standard/receipt	Fri Sep 14 11:37:28 2018 +0300
     4.2 +++ b/gnome-themes-standard/receipt	Sat Sep 22 16:05:26 2018 +0300
     4.3 @@ -6,7 +6,7 @@
     4.4  SHORT_DESC="Various components of the default GNOME theme"
     4.5  MAINTAINER="al.bobylev@gmail.com"
     4.6  LICENSE="LGPL2.1"
     4.7 -WEB_SITE="https://github.com/GNOME/gnome-themes-standard"
     4.8 +WEB_SITE="https://github.com/GNOME/gnome-themes-extra"
     4.9  LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/gnome-themes-standard.html"
    4.10  
    4.11  TARBALL="$PACKAGE-$VERSION.tar.xz"
     5.1 --- a/gource/receipt	Fri Sep 14 11:37:28 2018 +0300
     5.2 +++ b/gource/receipt	Sat Sep 22 16:05:26 2018 +0300
     5.3 @@ -7,7 +7,7 @@
     5.4  MAINTAINER="slaxemulator@gmail.com"
     5.5  LICENSE="GPL3"
     5.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     5.7 -WEB_SITE="http://gource.io/"
     5.8 +WEB_SITE="https://gource.io/"
     5.9  WGET_URL="http://gource.googlecode.com/files/$TARBALL"
    5.10  
    5.11  DEPENDS="freetype glew glu boost-filesystem boost-system libpcre libsdl \
     6.1 --- a/mixxx/receipt	Fri Sep 14 11:37:28 2018 +0300
     6.2 +++ b/mixxx/receipt	Sat Sep 22 16:05:26 2018 +0300
     6.3 @@ -16,7 +16,7 @@
     6.4  BUILD_DEPENDS="libsndfile-dev libogg-dev libid3tag-dev libmad-dev \
     6.5  libvorbis-dev taglib-dev libshout-dev portaudio-dev qt4-phonon \
     6.6  Qt4-dev alsa-lib-dev jack-dev mesa-dev scons \
     6.7 -flac-dev portmidi"
     6.8 +flac-dev portmidi-dev"
     6.9  
    6.10  # Rules to configure and make the package.
    6.11  compile_rules()
     7.1 --- a/mysql/receipt	Fri Sep 14 11:37:28 2018 +0300
     7.2 +++ b/mysql/receipt	Sat Sep 22 16:05:26 2018 +0300
     7.3 @@ -104,9 +104,11 @@
     7.4  
     7.5  pre_install_mysql() {
     7.6  	# Cleanup old files
     7.7 -	rm -f "$1/usr/libexec/mysql"*
     7.8 +	rm -f "$1"/usr/libexec/mysql*
     7.9  	# Move old config
    7.10 -	[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
    7.11 +	if [ -f "$1/etc/my.cnf" ]; then
    7.12 +		mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
    7.13 +	fi
    7.14  }
    7.15  
    7.16  post_install_mysql() {
    7.17 @@ -130,7 +132,12 @@
    7.18  	#chroot "$1/" /bin/chown $user.$group $(cat "$1/$INSTALLED/$PACKAGE/files.list")
    7.19  	mkdir -p "$1/var/lib/mysql"
    7.20  	chroot "$1/" /bin/chown -R $user.$group /var/lib/mysql
    7.21 -	chroot "$1/" mysql_install_db --user=$user --basedir=/usr
    7.22 +
    7.23 +	if [ -n "$quiet" ]; then
    7.24 +		chroot "$1/" mysql_install_db --user=$user --basedir=/usr >/dev/null 2>&1
    7.25 +	else
    7.26 +		chroot "$1/" mysql_install_db --user=$user --basedir=/usr
    7.27 +	fi
    7.28  
    7.29  	[ -n "$quiet" ] || cat <<EOF
    7.30  
     8.1 --- a/nmap/receipt	Fri Sep 14 11:37:28 2018 +0300
     8.2 +++ b/nmap/receipt	Sat Sep 22 16:05:26 2018 +0300
     8.3 @@ -6,7 +6,7 @@
     8.4  SHORT_DESC="The Network Mapper"
     8.5  MAINTAINER="erjo@slitaz.org"
     8.6  LICENSE="GPL2"
     8.7 -WEB_SITE="http://nmap.org/"
     8.8 +WEB_SITE="https://nmap.org/"
     8.9  LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/nmap.html"
    8.10  
    8.11  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     9.1 --- a/opal/receipt	Fri Sep 14 11:37:28 2018 +0300
     9.2 +++ b/opal/receipt	Sat Sep 22 16:05:26 2018 +0300
     9.3 @@ -6,7 +6,7 @@
     9.4  SHORT_DESC="Open Phone Abstraction library"
     9.5  MAINTAINER="pascal.bellard@slitaz.org"
     9.6  LICENSE="MPL"
     9.7 -WEB_SITE="http://www.ekiga.org/"
     9.8 +WEB_SITE="https://www.ekiga.org/"
     9.9  LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/opal.html"
    9.10  
    9.11  TARBALL="$PACKAGE-$VERSION.tar.xz"
    10.1 --- a/opencv/receipt	Fri Sep 14 11:37:28 2018 +0300
    10.2 +++ b/opencv/receipt	Sat Sep 22 16:05:26 2018 +0300
    10.3 @@ -6,7 +6,7 @@
    10.4  SHORT_DESC="Open source computer vision library"
    10.5  MAINTAINER="pascal.bellard@slitaz.org"
    10.6  LICENSE="BSD"
    10.7 -WEB_SITE="http://opencv.org/"
    10.8 +WEB_SITE="https://opencv.org/"
    10.9  LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/opencv.html"
   10.10  
   10.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    11.1 --- a/portmidi/receipt	Fri Sep 14 11:37:28 2018 +0300
    11.2 +++ b/portmidi/receipt	Sat Sep 22 16:05:26 2018 +0300
    11.3 @@ -1,4 +1,4 @@
    11.4 -# SliTaz package receipt.
    11.5 +# SliTaz package receipt v2.
    11.6  
    11.7  PACKAGE="portmidi"
    11.8  VERSION="217"
    11.9 @@ -6,38 +6,32 @@
   11.10  SHORT_DESC="Platform Independent Library for MIDI I/O"
   11.11  MAINTAINER="slaxemulator@gmail.com"
   11.12  LICENSE="MIT"
   11.13 +WEB_SITE="http://portmedia.sourceforge.net/portmidi/"
   11.14 +
   11.15  TARBALL="$PACKAGE-src-$VERSION.zip"
   11.16 -WEB_SITE="http://portmedia.sourceforge.net/portmidi/"
   11.17 -WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL"
   11.18 +WGET_URL="$SF_MIRROR/portmedia/$TARBALL"
   11.19  
   11.20 -DEPENDS="alsa-lib"
   11.21 -BUILD_DEPENDS="alsa-lib-dev cmake unzip"
   11.22 +BUILD_DEPENDS="alsa-lib-dev cmake"
   11.23 +SPLIT="$PACKAGE-dev"
   11.24  
   11.25 -# Rules to configure and make the package.
   11.26 -compile_rules()
   11.27 -{
   11.28 -	 # Prefix Fix
   11.29 -	sed -i "s_\(/usr\)/local_\1_" \
   11.30 -	*/CMakeLists.txt \
   11.31 -	pm_python/setup.py
   11.32 +compile_rules() {
   11.33 +	sed -i 's|/usr/local|/usr|g' */CMakeLists.txt pm_python/setup.py
   11.34  
   11.35 -	 # Installation Fix
   11.36 -	#mkdir -p pm_java/Release
   11.37 -
   11.38 -	 # CMake configuration
   11.39 -	cmake . \
   11.40 -	-DCMAKE_INSTALL_PREFIX=/usr \
   11.41 -	-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
   11.42 -	-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
   11.43 -	-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
   11.44 -
   11.45 -	make && make DESTDIR=$DESTDIR install
   11.46 +	mkdir build
   11.47 +	cd    build
   11.48 +	cmake .. &&
   11.49 +	make &&
   11.50 +	make install
   11.51  }
   11.52  
   11.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
   11.54 -genpkg_rules()
   11.55 -{
   11.56 -	mkdir -p $fs/usr
   11.57 -	cp -a $install/usr/* $fs/usr
   11.58 +genpkg_rules() {
   11.59 +	case $PACKAGE in
   11.60 +		portmidi)
   11.61 +			copy @std
   11.62 +			DEPENDS="alsa-lib"
   11.63 +			;;
   11.64 +		*-dev)
   11.65 +			copy @dev
   11.66 +			;;
   11.67 +	esac
   11.68  }
   11.69 -
    12.1 --- a/pycairo/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,1 +0,0 @@
    12.4 -../python/.icon.png
    12.5 \ No newline at end of file
    13.1 --- a/pycairo/receipt	Fri Sep 14 11:37:28 2018 +0300
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,34 +0,0 @@
    13.4 -# SliTaz package receipt v2.
    13.5 -
    13.6 -PACKAGE="pycairo"
    13.7 -VERSION="1.15.3"
    13.8 -CATEGORY="development"
    13.9 -SHORT_DESC="Python bindings for the cairo graphics library"
   13.10 -MAINTAINER="erjo@slitaz.org"
   13.11 -LICENSE="MPL LGPL2.1"
   13.12 -WEB_SITE="https://www.cairographics.org/pycairo/"
   13.13 -
   13.14 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   13.15 -WGET_URL="https://github.com/pygobject/pycairo/releases/download/v$VERSION/$TARBALL"
   13.16 -
   13.17 -BUILD_DEPENDS="python-dev cairo-dev"
   13.18 -SPLIT="pycairo-dev"
   13.19 -
   13.20 -compile_rules() {
   13.21 -	python setup.py build &&
   13.22 -	python setup.py install --root=$install
   13.23 -}
   13.24 -
   13.25 -genpkg_rules() {
   13.26 -	case $PACKAGE in
   13.27 -		pycairo)
   13.28 -			copy @std
   13.29 -			DEPENDS="cairo python"
   13.30 -			;;
   13.31 -		*-dev)
   13.32 -			copy @dev
   13.33 -			DEPENDS="pycairo cairo-dev"
   13.34 -			;;
   13.35 -	esac
   13.36 -}
   13.37 -
    14.1 --- a/pyopenssl/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,1 +0,0 @@
    14.4 -../python/.icon.png
    14.5 \ No newline at end of file
    15.1 --- a/pyopenssl/receipt	Fri Sep 14 11:37:28 2018 +0300
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,25 +0,0 @@
    15.4 -# SliTaz package receipt v2.
    15.5 -
    15.6 -PACKAGE="pyopenssl"
    15.7 -VERSION="17.3.0"
    15.8 -CATEGORY="development"
    15.9 -SHORT_DESC="OpenSSL library subset wrapper for Python"
   15.10 -MAINTAINER="pascal.bellard@slitaz.org"
   15.11 -LICENSE="Apache"
   15.12 -WEB_SITE="https://launchpad.net/pyopenssl/"
   15.13 -
   15.14 -SOURCE="pyOpenSSL"
   15.15 -TARBALL="$SOURCE-$VERSION.tar.gz"
   15.16 -WGET_URL="https://github.com/pyca/pyopenssl/archive/$VERSION.tar.gz"
   15.17 -
   15.18 -BUILD_DEPENDS="python python-dev openssl-dev"
   15.19 -
   15.20 -compile_rules() {
   15.21 -	python setup.py build &&
   15.22 -	python setup.py install --root=$DESTDIR
   15.23 -}
   15.24 -
   15.25 -genpkg_rules() {
   15.26 -	copy @std
   15.27 -	DEPENDS="python openssl"
   15.28 -}
    16.1 --- a/python-aeroolib/receipt	Fri Sep 14 11:37:28 2018 +0300
    16.2 +++ b/python-aeroolib/receipt	Sat Sep 22 16:05:26 2018 +0300
    16.3 @@ -7,6 +7,8 @@
    16.4  MAINTAINER="pascal.bellard@slitaz.org"
    16.5  LICENSE="GPL3"
    16.6  WEB_SITE="https://launchpad.net/aeroolib"
    16.7 +HOST_ARCH="any"
    16.8 +REPOLOGY="python:aeroolib"
    16.9  
   16.10  TARBALL="aeroolib-$VERSION.tar.gz"
   16.11  WGET_URL="$WEB_SITE/trunk/$VERSION/+download/aeroolib.tar.gz"
   16.12 @@ -14,8 +16,7 @@
   16.13  BUILD_DEPENDS="python"
   16.14  
   16.15  compile_rules() {
   16.16 -	python setup.py build
   16.17 -	python setup.py install --root=$DESTDIR
   16.18 +	python -B setup.py install --root=$install
   16.19  }
   16.20  
   16.21  genpkg_rules() {
    17.1 --- a/python-alabaster/receipt	Fri Sep 14 11:37:28 2018 +0300
    17.2 +++ b/python-alabaster/receipt	Sat Sep 22 16:05:26 2018 +0300
    17.3 @@ -1,23 +1,25 @@
    17.4  # SliTaz package receipt v2.
    17.5  
    17.6 +ORIGIN="alabaster"
    17.7  PACKAGE="python-alabaster"
    17.8 -ORIGIN="alabaster"
    17.9 -VERSION="latest"
   17.10 +VERSION="0.7.11"
   17.11  CATEGORY="python"
   17.12  SHORT_DESC="A configurable sidebar-enabled Sphinx theme"
   17.13  MAINTAINER="al.bobylev@gmail.com"
   17.14  LICENSE="BSD"
   17.15 -WEB_SITE="https://pypi.org/project/alabaster"
   17.16 +WEB_SITE="https://pypi.org/project/$ORIGIN"
   17.17 +HOST_ARCH="any"
   17.18  REPOLOGY="python:alabaster"
   17.19  
   17.20 -BUILD_DEPENDS="python"
   17.21 +BUILD_DEPENDS="python python3"
   17.22 +SPLIT="${PACKAGE/python/python3}:3"
   17.23  
   17.24  compile_rules() {
   17.25 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   17.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   17.27  }
   17.28  
   17.29  genpkg_rules() {
   17.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   17.31  	copy @std
   17.32 -	DEPENDS="python"
   17.33 +	py="${PACKAGE%%-*}" # python/python3
   17.34 +	DEPENDS="$py"
   17.35  }
    18.1 --- a/python-antlr/receipt	Fri Sep 14 11:37:28 2018 +0300
    18.2 +++ b/python-antlr/receipt	Sat Sep 22 16:05:26 2018 +0300
    18.3 @@ -1,23 +1,28 @@
    18.4  # SliTaz package receipt v2.
    18.5  
    18.6 +ORIGIN="antlr4-python2-runtime"
    18.7  PACKAGE="python-antlr"
    18.8 -ORIGIN="antlr4-python2-runtime"
    18.9 -VERSION="latest"
   18.10 +VERSION="4.7.1"
   18.11  CATEGORY="development"
   18.12  SHORT_DESC="Language tool for constructing recognizers, compilers for Python"
   18.13  MAINTAINER="pascal.bellard@slitaz.org"
   18.14  LICENSE="BSD"
   18.15  WEB_SITE="http://www.antlr.org/"
   18.16 +HOST_ARCH="any"
   18.17  REPOLOGY="antlr4"
   18.18  
   18.19 -BUILD_DEPENDS="python"
   18.20 +BUILD_DEPENDS="python python3"
   18.21 +SPLIT="${PACKAGE/python/python3}:3"
   18.22  
   18.23  compile_rules() {
   18.24 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   18.25 +	case $SET in
   18.26 +		3) ORIGIN="${ORIGIN/python2/python3}";;
   18.27 +	esac
   18.28 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   18.29  }
   18.30  
   18.31  genpkg_rules() {
   18.32 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   18.33  	copy @std
   18.34 -	DEPENDS="python"
   18.35 +	py="${PACKAGE%%-*}" # python/python3
   18.36 +	DEPENDS="$py"
   18.37  }
    19.1 --- a/python-apsw/receipt	Fri Sep 14 11:37:28 2018 +0300
    19.2 +++ b/python-apsw/receipt	Sat Sep 22 16:05:26 2018 +0300
    19.3 @@ -1,25 +1,27 @@
    19.4  # SliTaz package receipt v2.
    19.5  
    19.6  PACKAGE="python-apsw"
    19.7 -VERSION="3.19.3-r1"
    19.8 +VERSION="3.24.0"
    19.9  CATEGORY="development"
   19.10  SHORT_DESC="Python wrapper for SQLite"
   19.11  MAINTAINER="pascal.bellard@slitaz.org"
   19.12  LICENSE="zlib/libpng"
   19.13  WEB_SITE="https://rogerbinns.github.io/apsw/"
   19.14 +#HOST_ARCH
   19.15  REPOLOGY="python:apsw"
   19.16  
   19.17 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   19.18 -WGET_URL="https://github.com/rogerbinns/apsw/archive/$VERSION.tar.gz"
   19.19 +TARBALL="$PACKAGE-$VERSION-r1.tar.gz"
   19.20 +WGET_URL="https://github.com/rogerbinns/apsw/archive/$VERSION-r1.tar.gz"
   19.21  
   19.22 -BUILD_DEPENDS="python-dev sqlite3-dev"
   19.23 +BUILD_DEPENDS="python-dev sqlite3-dev python3-dev"
   19.24 +SPLIT="${PACKAGE/python/python3}:3"
   19.25  
   19.26  compile_rules() {
   19.27 -	python setup.py build &&
   19.28 -	python setup.py install --root=$DESTDIR
   19.29 +	python$SET -B setup.py install --root=$install
   19.30  }
   19.31  
   19.32  genpkg_rules() {
   19.33  	copy @std
   19.34 -	DEPENDS="python libsqlite3"
   19.35 +	py="${PACKAGE%%-*}" # python/python3
   19.36 +	DEPENDS="$py libsqlite3"
   19.37  }
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/python-argparse/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    20.3 @@ -0,0 +1,1 @@
    20.4 +../python/.icon.png
    20.5 \ No newline at end of file
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/python-argparse/receipt	Sat Sep 22 16:05:26 2018 +0300
    21.3 @@ -0,0 +1,25 @@
    21.4 +# SliTaz package receipt v2.
    21.5 +
    21.6 +ORIGIN="argparse"
    21.7 +PACKAGE="python-argparse"
    21.8 +VERSION="1.4.0"
    21.9 +CATEGORY="python"
   21.10 +SHORT_DESC="Python command-line parsing library"
   21.11 +MAINTAINER="al.bobylev@gmail.com"
   21.12 +LICENSE="PSFL"
   21.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   21.14 +HOST_ARCH="any"
   21.15 +REPOLOGY="python:argparse"
   21.16 +
   21.17 +BUILD_DEPENDS="python python3"
   21.18 +SPLIT="${PACKAGE/python/python3}:3"
   21.19 +
   21.20 +compile_rules() {
   21.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   21.22 +}
   21.23 +
   21.24 +genpkg_rules() {
   21.25 +	copy @std
   21.26 +	py="${PACKAGE%%-*}" # python/python3
   21.27 +	DEPENDS="$py"
   21.28 +}
    22.1 --- a/python-asn1crypto/receipt	Fri Sep 14 11:37:28 2018 +0300
    22.2 +++ b/python-asn1crypto/receipt	Sat Sep 22 16:05:26 2018 +0300
    22.3 @@ -1,24 +1,25 @@
    22.4  # SliTaz package receipt v2.
    22.5  
    22.6 +ORIGIN="asn1crypto"
    22.7  PACKAGE="python-asn1crypto"
    22.8 -ORIGIN="asn1crypto"
    22.9 -VERSION="latest"
   22.10 +VERSION="0.24.0"
   22.11  CATEGORY="python"
   22.12  SHORT_DESC="Fast ASN.1 parser and serializer"
   22.13  MAINTAINER="al.bobylev@gmail.com"
   22.14  LICENSE="MIT"
   22.15 -WEB_SITE="https://pypi.org/project/asn1crypto/"
   22.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   22.17  HOST_ARCH="any"
   22.18  REPOLOGY="python:asn1crypto"
   22.19  
   22.20 -BUILD_DEPENDS="python"
   22.21 +BUILD_DEPENDS="python python3"
   22.22 +SPLIT="${PACKAGE/python/python3}:3"
   22.23  
   22.24  compile_rules() {
   22.25 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   22.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   22.27  }
   22.28  
   22.29  genpkg_rules() {
   22.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   22.31  	copy @std
   22.32 -	DEPENDS="python"
   22.33 +	py="${PACKAGE%%-*}" # python/python3
   22.34 +	DEPENDS="$py"
   22.35  }
    23.1 --- a/python-asterisk/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,1 +0,0 @@
    23.4 -../python/.icon.png
    23.5 \ No newline at end of file
    24.1 --- a/python-asterisk/receipt	Fri Sep 14 11:37:28 2018 +0300
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,23 +0,0 @@
    24.4 -# SliTaz package receipt v2.
    24.5 -
    24.6 -PACKAGE="python-asterisk"
    24.7 -ORIGIN="py-Asterisk"
    24.8 -VERSION="latest"
    24.9 -CATEGORY="development"
   24.10 -SHORT_DESC="Python bindings for the Asterisk Manager API"
   24.11 -MAINTAINER="pascal.bellard@slitaz.org"
   24.12 -LICENSE="MIT"
   24.13 -WEB_SITE="https://pypi.org/project/py-Asterisk/"
   24.14 -REPOLOGY="py-asterisk" # python:asterisk ?
   24.15 -
   24.16 -BUILD_DEPENDS="python"
   24.17 -
   24.18 -compile_rules() {
   24.19 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   24.20 -}
   24.21 -
   24.22 -genpkg_rules() {
   24.23 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   24.24 -	copy @std
   24.25 -	DEPENDS="python"
   24.26 -}
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/python-atomicwrites/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    25.3 @@ -0,0 +1,1 @@
    25.4 +../python/.icon.png
    25.5 \ No newline at end of file
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/python-atomicwrites/receipt	Sat Sep 22 16:05:26 2018 +0300
    26.3 @@ -0,0 +1,25 @@
    26.4 +# SliTaz package receipt v2.
    26.5 +
    26.6 +ORIGIN="atomicwrites"
    26.7 +PACKAGE="python-atomicwrites"
    26.8 +VERSION="1.2.1"
    26.9 +CATEGORY="python"
   26.10 +SHORT_DESC="Atomic file writes"
   26.11 +MAINTAINER="al.bobylev@gmail.com"
   26.12 +LICENSE="MIT"
   26.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   26.14 +HOST_ARCH="any"
   26.15 +REPOLOGY="python:atomicwrites"
   26.16 +
   26.17 +BUILD_DEPENDS="python python3"
   26.18 +SPLIT="${PACKAGE/python/python3}:3"
   26.19 +
   26.20 +compile_rules() {
   26.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   26.22 +}
   26.23 +
   26.24 +genpkg_rules() {
   26.25 +	copy @std
   26.26 +	py="${PACKAGE%%-*}" # python/python3
   26.27 +	DEPENDS="$py"
   26.28 +}
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/python-attrs/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    27.3 @@ -0,0 +1,1 @@
    27.4 +../python/.icon.png
    27.5 \ No newline at end of file
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/python-attrs/receipt	Sat Sep 22 16:05:26 2018 +0300
    28.3 @@ -0,0 +1,25 @@
    28.4 +# SliTaz package receipt v2.
    28.5 +
    28.6 +ORIGIN="attrs"
    28.7 +PACKAGE="python-attrs"
    28.8 +VERSION="18.2.0"
    28.9 +CATEGORY="python"
   28.10 +SHORT_DESC="Classes Without Boilerplate"
   28.11 +MAINTAINER="al.bobylev@gmail.com"
   28.12 +LICENSE="MIT"
   28.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   28.14 +HOST_ARCH="any"
   28.15 +REPOLOGY="python:attrs"
   28.16 +
   28.17 +BUILD_DEPENDS="python python3"
   28.18 +SPLIT="${PACKAGE/python/python3}:3"
   28.19 +
   28.20 +compile_rules() {
   28.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   28.22 +}
   28.23 +
   28.24 +genpkg_rules() {
   28.25 +	copy @std
   28.26 +	py=${PACKAGE%%-*} # python/python3
   28.27 +	DEPENDS="$py"
   28.28 +}
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/python-automat/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    29.3 @@ -0,0 +1,1 @@
    29.4 +../python/.icon.png
    29.5 \ No newline at end of file
    30.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.2 +++ b/python-automat/receipt	Sat Sep 22 16:05:26 2018 +0300
    30.3 @@ -0,0 +1,26 @@
    30.4 +# SliTaz package receipt v2.
    30.5 +
    30.6 +ORIGIN="Automat"
    30.7 +PACKAGE="python-automat"
    30.8 +VERSION="0.7.0"
    30.9 +CATEGORY="python"
   30.10 +SHORT_DESC="Self-service finite-state machines for the programmer on the go"
   30.11 +MAINTAINER="al.bobylev@gmail.com"
   30.12 +LICENSE="MIT"
   30.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   30.14 +HOST_ARCH="any"
   30.15 +REPOLOGY="python:automat"
   30.16 +
   30.17 +BUILD_DEPENDS="python python-attrs python-six \
   30.18 +python3 python3-attrs python3-six"
   30.19 +SPLIT="${PACKAGE/python/python3}:3"
   30.20 +
   30.21 +compile_rules() {
   30.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   30.23 +}
   30.24 +
   30.25 +genpkg_rules() {
   30.26 +	copy @std
   30.27 +	py=${PACKAGE%%-*} # python/python3
   30.28 +	DEPENDS="$py $py-attrs $py-six"
   30.29 +}
    31.1 --- a/python-babel/receipt	Fri Sep 14 11:37:28 2018 +0300
    31.2 +++ b/python-babel/receipt	Sat Sep 22 16:05:26 2018 +0300
    31.3 @@ -1,23 +1,25 @@
    31.4  # SliTaz package receipt v2.
    31.5  
    31.6 +ORIGIN="Babel"
    31.7  PACKAGE="python-babel"
    31.8 -ORIGIN="Babel"
    31.9 -VERSION="latest"
   31.10 +VERSION="2.6.0"
   31.11  CATEGORY="python"
   31.12  SHORT_DESC="A collection of tools for internationalizing Python applications"
   31.13  MAINTAINER="pascal.bellard@slitaz.org"
   31.14  LICENSE="BSD"
   31.15 -WEB_SITE="https://pypi.org/project/Babel/"
   31.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   31.17 +HOST_ARCH="any"
   31.18  REPOLOGY="python:babel"
   31.19  
   31.20 -BUILD_DEPENDS="python-pytz"
   31.21 +BUILD_DEPENDS="python python-pytz  python3 python3-pytz"
   31.22 +SPLIT="${PACKAGE/python/python3}:3"
   31.23  
   31.24  compile_rules() {
   31.25 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   31.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   31.27  }
   31.28  
   31.29  genpkg_rules() {
   31.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   31.31  	copy @std
   31.32 -	DEPENDS="python-pytz"
   31.33 +	py="${PACKAGE%%-*}" # python/python3
   31.34 +	DEPENDS="$py $py-pytz"
   31.35  }
    32.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.2 +++ b/python-backports.functools-lru-cache/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    32.3 @@ -0,0 +1,1 @@
    32.4 +../python/.icon.png
    32.5 \ No newline at end of file
    33.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.2 +++ b/python-backports.functools-lru-cache/receipt	Sat Sep 22 16:05:26 2018 +0300
    33.3 @@ -0,0 +1,25 @@
    33.4 +# SliTaz package receipt v2.
    33.5 +
    33.6 +ORIGIN="backports.functools-lru-cache"
    33.7 +PACKAGE="python-backports.functools-lru-cache"
    33.8 +VERSION="1.5"
    33.9 +CATEGORY="python"
   33.10 +SHORT_DESC="Backport of functools.lru_cache from Python 3.3"
   33.11 +MAINTAINER="al.bobylev@gmail.com"
   33.12 +LICENSE="MIT"
   33.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   33.14 +HOST_ARCH="any"
   33.15 +REPOLOGY="python:backports.functools-lru-cache"
   33.16 +
   33.17 +BUILD_DEPENDS="python python3"
   33.18 +SPLIT="${PACKAGE/python/python3}:3"
   33.19 +
   33.20 +compile_rules() {
   33.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   33.22 +}
   33.23 +
   33.24 +genpkg_rules() {
   33.25 +	copy @std
   33.26 +	py="${PACKAGE%%-*}" # python/python3
   33.27 +	DEPENDS="$py"
   33.28 +}
    34.1 --- a/python-backports_abc/receipt	Fri Sep 14 11:37:28 2018 +0300
    34.2 +++ b/python-backports_abc/receipt	Sat Sep 22 16:05:26 2018 +0300
    34.3 @@ -1,23 +1,25 @@
    34.4  # SliTaz package receipt v2.
    34.5  
    34.6 +ORIGIN="backports_abc"
    34.7  PACKAGE="python-backports_abc"
    34.8 -ORIGIN="backports_abc"
    34.9 -VERSION="latest"
   34.10 +VERSION="0.5"
   34.11  CATEGORY="python"
   34.12  SHORT_DESC="A backport of recent additions to the 'collections.abc' module"
   34.13  MAINTAINER="al.bobylev@gmail.com"
   34.14  LICENSE="PSF"
   34.15  WEB_SITE="https://pypi.org/project/$ORIGIN/"
   34.16 +HOST_ARCH="any"
   34.17  REPOLOGY="python:backports-abc"
   34.18  
   34.19 -BUILD_DEPENDS="python"
   34.20 +BUILD_DEPENDS="python python3"
   34.21 +SPLIT="${PACKAGE/python/python3}:3"
   34.22  
   34.23  compile_rules() {
   34.24 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   34.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   34.26  }
   34.27  
   34.28  genpkg_rules() {
   34.29 -	VERSION=$(sed -n "/^Successfully installed/ s|.*${ORIGIN//_/-}-||p" $LOGS/$PACKAGE.log)
   34.30  	copy @std
   34.31 -	DEPENDS="python"
   34.32 +	py="${PACKAGE%%-*}" # python/python3
   34.33 +	DEPENDS="$py"
   34.34  }
    35.1 --- a/python-barcode/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,1 +0,0 @@
    35.4 -../python/.icon.png
    35.5 \ No newline at end of file
    36.1 --- a/python-barcode/receipt	Fri Sep 14 11:37:28 2018 +0300
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,23 +0,0 @@
    36.4 -# SliTaz package receipt v2.
    36.5 -
    36.6 -PACKAGE="python-barcode"
    36.7 -ORIGIN="pyBarcode"
    36.8 -VERSION="latest"
    36.9 -CATEGORY="development"
   36.10 -SHORT_DESC="Create standard barcodes"
   36.11 -MAINTAINER="pascal.bellard@slitaz.org"
   36.12 -LICENSE="MIT"
   36.13 -WEB_SITE="https://pypi.org/project/pyBarcode/"
   36.14 -REPOLOGY="python:pybarcode"
   36.15 -
   36.16 -BUILD_DEPENDS="python"
   36.17 -
   36.18 -compile_rules() {
   36.19 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   36.20 -}
   36.21 -
   36.22 -genpkg_rules() {
   36.23 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   36.24 -	copy @std
   36.25 -	DEPENDS="python"
   36.26 -}
    37.1 --- a/python-bcrypt/receipt	Fri Sep 14 11:37:28 2018 +0300
    37.2 +++ b/python-bcrypt/receipt	Sat Sep 22 16:05:26 2018 +0300
    37.3 @@ -1,23 +1,26 @@
    37.4  # SliTaz package receipt v2.
    37.5  
    37.6 +ORIGIN="bcrypt"
    37.7  PACKAGE="python-bcrypt"
    37.8 -ORIGIN="bcrypt"
    37.9 -VERSION="latest"
   37.10 +VERSION="3.1.4"
   37.11  CATEGORY="python"
   37.12  SHORT_DESC="Modern password hashing for your software and your servers"
   37.13  MAINTAINER="al.bobylev@gmail.com"
   37.14  LICENSE="Apache2"
   37.15 -WEB_SITE="https://pypi.org/project/bcrypt/"
   37.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   37.17 +#HOST_ARCH
   37.18  REPOLOGY="python:bcrypt"
   37.19  
   37.20 -BUILD_DEPENDS="python python-six python-cffi"
   37.21 +BUILD_DEPENDS="python python-six python-cffi \
   37.22 +python3 python3-six python3-cffi"
   37.23 +SPLIT="${PACKAGE/python/python3}:3"
   37.24  
   37.25  compile_rules() {
   37.26 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   37.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   37.28  }
   37.29  
   37.30  genpkg_rules() {
   37.31 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   37.32  	copy @std
   37.33 -	DEPENDS="python"
   37.34 +	py="${PACKAGE%%-*}" # python/python3
   37.35 +	DEPENDS="$py $py-six $py-cffi"
   37.36  }
    38.1 --- a/python-beaker/receipt	Fri Sep 14 11:37:28 2018 +0300
    38.2 +++ b/python-beaker/receipt	Sat Sep 22 16:05:26 2018 +0300
    38.3 @@ -1,23 +1,28 @@
    38.4  # SliTaz package receipt v2.
    38.5  
    38.6 +ORIGIN="Beaker"
    38.7  PACKAGE="python-beaker"
    38.8 -ORIGIN="Beaker"
    38.9 -VERSION="latest"
   38.10 +VERSION="1.10.0"
   38.11  CATEGORY="development"
   38.12  SHORT_DESC="Cache and Session Library"
   38.13  MAINTAINER="taziden@slitaz.org"
   38.14  LICENSE="BSD"
   38.15 -WEB_SITE="https://pypi.org/project/Beaker/"
   38.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   38.17 +HOST_ARCH="any"
   38.18  REPOLOGY="python:beaker"
   38.19  
   38.20 -BUILD_DEPENDS="python-funcsigs"
   38.21 +BUILD_DEPENDS="python python-funcsigs  python3"
   38.22 +SPLIT="${PACKAGE/python/python3}:3"
   38.23  
   38.24  compile_rules() {
   38.25 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   38.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   38.27  }
   38.28  
   38.29  genpkg_rules() {
   38.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   38.31  	copy @std
   38.32 -	DEPENDS="python-funcsigs"
   38.33 +	py="${PACKAGE%%-*}" # python/python3
   38.34 +	case $PACKAGE in
   38.35 +		python-beaker)  DEPENDS="$py python-funcsigs";;
   38.36 +		python3-beaker) DEPENDS="$py";;
   38.37 +	esac
   38.38  }
    39.1 --- a/python-beautifulsoup4/receipt	Fri Sep 14 11:37:28 2018 +0300
    39.2 +++ b/python-beautifulsoup4/receipt	Sat Sep 22 16:05:26 2018 +0300
    39.3 @@ -1,24 +1,26 @@
    39.4  # SliTaz package receipt v2.
    39.5  
    39.6 +ORIGIN="beautifulsoup4"
    39.7  PACKAGE="python-beautifulsoup4"
    39.8 -VERSION="latest"
    39.9 +VERSION="4.6.3"
   39.10  CATEGORY="development"
   39.11  SHORT_DESC="Python HTML-XML parser"
   39.12  MAINTAINER="paul@slitaz.org"
   39.13  LICENSE="MIT"
   39.14 -WEB_SITE="https://pypi.org/project/beautifulsoup4/"
   39.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   39.16  HOST_ARCH="any"
   39.17  REPOLOGY="python:beautifulsoup"
   39.18  
   39.19 -BUILD_DEPENDS="python-dev"
   39.20 +BUILD_DEPENDS="python python3"
   39.21 +SPLIT="${PACKAGE/python/python3}:3"
   39.22  
   39.23  compile_rules() {
   39.24 -	pip install --no-compile --root=$DESTDIR beautifulsoup4
   39.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   39.26  }
   39.27  
   39.28  genpkg_rules() {
   39.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*beautifulsoup4-||p' $LOGS/$PACKAGE.log)
   39.30  	copy @std
   39.31 -	DEPENDS="python"
   39.32 +	py="${PACKAGE%%-*}" # python/python3
   39.33 +	DEPENDS="$py"
   39.34  	TAGS="parser XML HTML"
   39.35  }
    40.1 --- a/python-blessings/receipt	Fri Sep 14 11:37:28 2018 +0300
    40.2 +++ b/python-blessings/receipt	Sat Sep 22 16:05:26 2018 +0300
    40.3 @@ -1,22 +1,25 @@
    40.4  # SliTaz package receipt v2.
    40.5  
    40.6 +ORIGIN="blessings"
    40.7  PACKAGE="python-blessings"
    40.8 -VERSION="latest"
    40.9 +VERSION="1.7"
   40.10  CATEGORY="development"
   40.11  SHORT_DESC="A thin, practical wrapper around terminal coloring, styling, and positioning"
   40.12  MAINTAINER="al.bobylev@gmail.com"
   40.13  LICENSE="MIT"
   40.14  WEB_SITE="https://pypi.org/project/blessings/"
   40.15 +HOST_ARCH="any"
   40.16  REPOLOGY="python:blessings"
   40.17  
   40.18 -BUILD_DEPENDS="python-six"
   40.19 +BUILD_DEPENDS="python python-six  python3 python3-six"
   40.20 +SPLIT="${PACKAGE/python/python3}:3"
   40.21  
   40.22  compile_rules() {
   40.23 -	pip install --no-compile --root=$DESTDIR blessings
   40.24 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   40.25  }
   40.26  
   40.27  genpkg_rules() {
   40.28 -	VERSION=$(sed -n '/^Successfully installed/ s|.*blessings-||p' $LOGS/$PACKAGE.log)
   40.29  	copy @std
   40.30 -	DEPENDS="python-six"
   40.31 +	py="${PACKAGE%%-*}" # python/python3
   40.32 +	DEPENDS="$py $py-six"
   40.33  }
    41.1 --- a/python-bpython/receipt	Fri Sep 14 11:37:28 2018 +0300
    41.2 +++ b/python-bpython/receipt	Sat Sep 22 16:05:26 2018 +0300
    41.3 @@ -1,24 +1,31 @@
    41.4  # SliTaz package receipt v2.
    41.5  
    41.6 +ORIGIN="bpython"
    41.7  PACKAGE="python-bpython"
    41.8 -VERSION="latest"
    41.9 +VERSION="0.17.1"
   41.10  CATEGORY="development"
   41.11  SHORT_DESC="A fancy interface to the Python interpreter"
   41.12  MAINTAINER="claudinei@slitaz.org"
   41.13  LICENSE="MIT"
   41.14 -WEB_SITE="https://pypi.org/project/bpython/"
   41.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   41.16 +HOST_ARCH="any"
   41.17  REPOLOGY="python:bpython"
   41.18  
   41.19  BUILD_DEPENDS="python-dev python-pygments python-greenlet python-requests \
   41.20  python-curtsies python-six python-urllib3 python-idna python-certifi \
   41.21 -python-chardet python-wcwidth python-blessings"
   41.22 +python-chardet python-wcwidth python-blessings \
   41.23 +python3-dev python3-pygments python3-greenlet python3-requests \
   41.24 +python3-curtsies python3-six python3-urllib3 python3-idna python3-certifi \
   41.25 +python3-chardet python3-wcwidth python3-blessings"
   41.26 +SPLIT="${PACKAGE/python/python3}:3"
   41.27  
   41.28  compile_rules() {
   41.29 -	pip install --no-compile --root=$DESTDIR bpython
   41.30 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   41.31  }
   41.32  
   41.33  genpkg_rules() {
   41.34 -	VERSION=$(sed -n '/^Successfully installed/ s|.*bpython-||p' $LOGS/$PACKAGE.log)
   41.35  	copy @std
   41.36 -	DEPENDS="${BUILD_DEPENDS/python-dev/}"
   41.37 +	py=${PACKAGE%%-*} # python/python3
   41.38 +	DEPENDS="$py-pygments $py-greenlet $py-requests $py-curtsies $py-six \
   41.39 +	$py-urllib3 $py-idna $py-certifi $py-chardet $py-wcwidth $py-blessings"
   41.40  }
    42.1 --- a/python-caja/receipt	Fri Sep 14 11:37:28 2018 +0300
    42.2 +++ b/python-caja/receipt	Sat Sep 22 16:05:26 2018 +0300
    42.3 @@ -7,12 +7,12 @@
    42.4  MAINTAINER="al.bobylev@gmail.com"
    42.5  LICENSE="GPL2"
    42.6  WEB_SITE="https://github.com/mate-desktop/python-caja"
    42.7 -REPOLOGY="python:caja"
    42.8  
    42.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
   42.10  WGET_URL="https://github.com/mate-desktop/python-caja/archive/v$VERSION.tar.gz"
   42.11  
   42.12 -BUILD_DEPENDS="mate-common gtk-doc python-dev python-pygobject-dev caja-dev"
   42.13 +BUILD_DEPENDS="shared-mime-info mate-common gtk-doc python-dev \
   42.14 +python-pygobject-dev caja-dev"
   42.15  SPLIT="$PACKAGE-dev"
   42.16  
   42.17  compile_rules() {
    43.1 --- a/python-caldav/receipt	Fri Sep 14 11:37:28 2018 +0300
    43.2 +++ b/python-caldav/receipt	Sat Sep 22 16:05:26 2018 +0300
    43.3 @@ -1,23 +1,29 @@
    43.4  # SliTaz package receipt v2.
    43.5  
    43.6 +ORIGIN="caldav"
    43.7  PACKAGE="python-caldav"
    43.8 -VERSION="latest"
    43.9 +VERSION="0.5.0"
   43.10  CATEGORY="python"
   43.11  SHORT_DESC="CalDAV (RFC4791) client library for Python"
   43.12  MAINTAINER="pascal.bellard@slitaz.org"
   43.13  LICENSE="GPL"
   43.14 -WEB_SITE="https://pypi.org/project/caldav/"
   43.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   43.16 +HOST_ARCH="any"
   43.17  REPOLOGY="python:caldav"
   43.18  
   43.19  BUILD_DEPENDS="python python-vobject python-lxml python-nose python-coverage \
   43.20 -python-requests python-six "
   43.21 +python-requests python-six \
   43.22 +python3 python3-vobject python3-lxml python3-nose python3-coverage \
   43.23 +python3-requests python3-six"
   43.24 +SPLIT="${PACKAGE/python/python3}:3"
   43.25  
   43.26  compile_rules() {
   43.27 -	pip install --no-compile --root=$DESTDIR caldav
   43.28 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   43.29  }
   43.30  
   43.31  genpkg_rules() {
   43.32 -	VERSION=$(sed -n '/^Successfully installed/ s|.*caldav-||p' $LOGS/$PACKAGE.log)
   43.33  	copy @std
   43.34 -	DEPENDS="python"
   43.35 +	py=${PACKAGE%%-*} # python/python3
   43.36 +	DEPENDS="$py $py-vobject $py-lxml $py-nose $py-coverage $py-requests \
   43.37 +	$py-six"
   43.38  }
    44.1 --- a/python-certifi/receipt	Fri Sep 14 11:37:28 2018 +0300
    44.2 +++ b/python-certifi/receipt	Sat Sep 22 16:05:26 2018 +0300
    44.3 @@ -1,22 +1,25 @@
    44.4  # SliTaz package receipt v2.
    44.5  
    44.6 +ORIGIN="certifi"
    44.7  PACKAGE="python-certifi"
    44.8 -VERSION="latest"
    44.9 +VERSION="2018.8.24"
   44.10  CATEGORY="network"
   44.11  SHORT_DESC="Python package for providing Mozilla's CA Bundle"
   44.12  MAINTAINER="al.bobylev@gmail.com"
   44.13  LICENSE="ISC"
   44.14 -WEB_SITE="https://pypi.org/project/certifi/"
   44.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   44.16 +HOST_ARCH="any"
   44.17  REPOLOGY="python:certifi"
   44.18  
   44.19 -BUILD_DEPENDS="python"
   44.20 +BUILD_DEPENDS="python python3"
   44.21 +SPLIT="${PACKAGE/python/python3}:3"
   44.22  
   44.23  compile_rules() {
   44.24 -	pip install --no-compile --root=$DESTDIR certifi
   44.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   44.26  }
   44.27  
   44.28  genpkg_rules() {
   44.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*certifi-||p' $LOGS/$PACKAGE.log)
   44.30  	copy @std
   44.31 -	DEPENDS="python"
   44.32 +	py="${PACKAGE%%-*}" # python/python3
   44.33 +	DEPENDS="$py"
   44.34  }
    45.1 --- a/python-cffi/receipt	Fri Sep 14 11:37:28 2018 +0300
    45.2 +++ b/python-cffi/receipt	Sat Sep 22 16:05:26 2018 +0300
    45.3 @@ -1,30 +1,34 @@
    45.4  # SliTaz package receipt v2.
    45.5  
    45.6 +ORIGIN="cffi"
    45.7  PACKAGE="python-cffi"
    45.8 -VERSION="latest"
    45.9 +VERSION="1.11.5"
   45.10  CATEGORY="python"
   45.11  SHORT_DESC="Foreign Function Interface for Python calling C code"
   45.12  MAINTAINER="al.bobylev@gmail.com"
   45.13  LICENSE="Apache2"
   45.14 -WEB_SITE="https://pypi.org/project/cffi/"
   45.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   45.16 +#HOST_ARCH
   45.17  REPOLOGY="python:cffi"
   45.18  
   45.19 -BUILD_DEPENDS="python python-pycparser"
   45.20 -SPLIT="$PACKAGE-dev"
   45.21 +BUILD_DEPENDS="python python-pycparser  python3 python3-pycparser"
   45.22 +SPLIT="$PACKAGE-dev \
   45.23 +${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
   45.24  
   45.25  compile_rules() {
   45.26 -	pip install --no-compile --root=$DESTDIR cffi
   45.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   45.28  }
   45.29  
   45.30  genpkg_rules() {
   45.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*cffi-||p' $LOGS/${PACKAGE%-dev}.log)
   45.32  	case $PACKAGE in
   45.33  		*-dev)
   45.34  			copy @dev
   45.35 +			DEPENDS="${PACKAGE%%-dev}"
   45.36  			;;
   45.37  		*)
   45.38  			copy @std
   45.39 -			DEPENDS="python python-pycparser"
   45.40 +			py="${PACKAGE%%-*}" # python/python3
   45.41 +			DEPENDS="$py $py-pycparser"
   45.42  			;;
   45.43  	esac
   45.44  }
    46.1 --- a/python-chardet/receipt	Fri Sep 14 11:37:28 2018 +0300
    46.2 +++ b/python-chardet/receipt	Sat Sep 22 16:05:26 2018 +0300
    46.3 @@ -1,22 +1,25 @@
    46.4 -# SliTaz package receipt.
    46.5 +# SliTaz package receipt v2.
    46.6  
    46.7 +ORIGIN="chardet"
    46.8  PACKAGE="python-chardet"
    46.9 -VERSION="latest"
   46.10 +VERSION="3.0.4"
   46.11  CATEGORY="development"
   46.12  SHORT_DESC="Python module for character encoding auto-detection"
   46.13  MAINTAINER="devel@slitaz.org"
   46.14  LICENSE="LGPL2.1"
   46.15 -WEB_SITE="https://pypi.org/project/chardet/"
   46.16 +WEB_SITE="https://pypi.python.org/pypi/chardet"
   46.17 +HOST_ARCH="any"
   46.18  REPOLOGY="python:chardet"
   46.19  
   46.20 -BUILD_DEPENDS="python"
   46.21 +BUILD_DEPENDS="python python3"
   46.22 +SPLIT="${PACKAGE/python/python3}:3"
   46.23  
   46.24  compile_rules() {
   46.25 -	pip install --no-compile --root=$DESTDIR chardet
   46.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   46.27  }
   46.28  
   46.29  genpkg_rules() {
   46.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*chardet-||p' $LOGS/$PACKAGE.log)
   46.31  	copy @std
   46.32 -	DEPENDS="python"
   46.33 +	py="${PACKAGE%%-*}" # python/python3
   46.34 +	DEPENDS="$py"
   46.35  }
    47.1 --- a/python-cheetah/receipt	Fri Sep 14 11:37:28 2018 +0300
    47.2 +++ b/python-cheetah/receipt	Sat Sep 22 16:05:26 2018 +0300
    47.3 @@ -1,32 +1,25 @@
    47.4 -# SliTaz package receipt.
    47.5 +# SliTaz package receipt v2.
    47.6  
    47.7 +ORIGIN="Cheetah"
    47.8  PACKAGE="python-cheetah"
    47.9 -VERSION="2.4.3"
   47.10 +VERSION="2.4.4"
   47.11  CATEGORY="development"
   47.12 -SHORT_DESC="Cheetah is a template engine and code generation tool written in Python."
   47.13 +SHORT_DESC="Cheetah is a template engine and code generation tool"
   47.14  MAINTAINER="pankso@slitaz.org"
   47.15  LICENSE="MIT"
   47.16 -WEB_SITE="http://www.cheetahtemplate.org/"
   47.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   47.18 +#HOST_ARCH
   47.19  REPOLOGY="python:cheetah"
   47.20  
   47.21 -SOURCE="Cheetah"
   47.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
   47.23 -WGET_URL="https://files.pythonhosted.org/packages/source/C/$SOURCE/$TARBALL"
   47.24 -TAGS="python"
   47.25 +BUILD_DEPENDS="python python-markdown"
   47.26  
   47.27 -DEPENDS="python"
   47.28 -BUILD_DEPENDS="python python-dev"
   47.29 -
   47.30 -# Rules to configure and make the package.
   47.31 -compile_rules()
   47.32 -{
   47.33 -	sed -i 's/sys.version_info/&[:]/' cheetah/Template.py
   47.34 -	sed -i 's/\(naoeu.*\\n"\))/\1, convertEOLs=False)/' cheetah/Tests/SyntaxAndOutput.py
   47.35 -	python setup.py install --root=$DESTDIR
   47.36 +compile_rules() {
   47.37 +	# Python3 not supported
   47.38 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
   47.39  }
   47.40  
   47.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
   47.42 -genpkg_rules()
   47.43 -{
   47.44 -	cp -a $install/usr $fs
   47.45 +genpkg_rules() {
   47.46 +	copy @std
   47.47 +	DEPENDS="python python-markdown"
   47.48 +	TAGS="python"
   47.49  }
    48.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    48.2 +++ b/python-cheetah3/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    48.3 @@ -0,0 +1,1 @@
    48.4 +../python/.icon.png
    48.5 \ No newline at end of file
    49.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    49.2 +++ b/python-cheetah3/receipt	Sat Sep 22 16:05:26 2018 +0300
    49.3 @@ -0,0 +1,25 @@
    49.4 +# SliTaz package receipt v2.
    49.5 +
    49.6 +ORIGIN="Cheetah3"
    49.7 +PACKAGE="python-cheetah3"
    49.8 +VERSION="3.1.0"
    49.9 +CATEGORY="development"
   49.10 +SHORT_DESC="Cheetah is a template engine and code generation tool"
   49.11 +MAINTAINER="al.bobylev@gmail.com"
   49.12 +LICENSE="MIT"
   49.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   49.14 +HOST_ARCH="any"
   49.15 +REPOLOGY="python:cheetah3"
   49.16 +
   49.17 +BUILD_DEPENDS="python python3"
   49.18 +SPLIT="${PACKAGE/python/python3}:3"
   49.19 +
   49.20 +compile_rules() {
   49.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   49.22 +}
   49.23 +
   49.24 +genpkg_rules() {
   49.25 +	copy @std
   49.26 +	py="${PACKAGE%%-*}" # python/python3
   49.27 +	DEPENDS="$py"
   49.28 +}
    50.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    50.2 +++ b/python-cheroot/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    50.3 @@ -0,0 +1,1 @@
    50.4 +../python/.icon.png
    50.5 \ No newline at end of file
    51.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    51.2 +++ b/python-cheroot/receipt	Sat Sep 22 16:05:26 2018 +0300
    51.3 @@ -0,0 +1,28 @@
    51.4 +# SliTaz package receipt v2.
    51.5 +
    51.6 +ORIGIN="cheroot"
    51.7 +PACKAGE="python-cheroot"
    51.8 +VERSION="6.5.2"
    51.9 +CATEGORY="python"
   51.10 +SHORT_DESC="Highly-optimized, pure-python HTTP server"
   51.11 +MAINTAINER="al.bobylev@gmail.com"
   51.12 +LICENSE="BSD"
   51.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   51.14 +HOST_ARCH="any"
   51.15 +REPOLOGY="python:cheroot"
   51.16 +
   51.17 +BUILD_DEPENDS="python python-backports.functools-lru-cache \
   51.18 +python-more-itertools python-six \
   51.19 +python3 python3-backports.functools-lru-cache python3-more-itertools \
   51.20 +python3-six"
   51.21 +SPLIT="${PACKAGE/python/python3}:3"
   51.22 +
   51.23 +compile_rules() {
   51.24 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   51.25 +}
   51.26 +
   51.27 +genpkg_rules() {
   51.28 +	copy @std
   51.29 +	py="${PACKAGE%%-*}" # python/python3
   51.30 +	DEPENDS="$py $py-backports.functools-lru-cache $py-more-itertools $py-six"
   51.31 +}
    52.1 --- a/python-cherrypy/receipt	Fri Sep 14 11:37:28 2018 +0300
    52.2 +++ b/python-cherrypy/receipt	Sat Sep 22 16:05:26 2018 +0300
    52.3 @@ -1,30 +1,41 @@
    52.4 -# SliTaz package receipt.
    52.5 +# SliTaz package receipt v2.
    52.6  
    52.7 +ORIGIN="CherryPy"
    52.8  PACKAGE="python-cherrypy"
    52.9 -VERSION="3.1.2" # Fix to this version for turbogears.
   52.10 +VERSION="18.0.1"  # version for Python3
   52.11 +VERSION2="17.3.0" # version for Python2
   52.12  CATEGORY="development"
   52.13 -SHORT_DESC="CherryPy is a pythonic, object-oriented HTTP framework."
   52.14 +SHORT_DESC="Object-Oriented HTTP framework"
   52.15  MAINTAINER="pankso@slitaz.org"
   52.16  LICENSE="BSD"
   52.17 -WEB_SITE="http://www.cherrypy.org/"
   52.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   52.19 +HOST_ARCH="any"
   52.20  REPOLOGY="python:cherrypy"
   52.21  
   52.22 -SOURCE="CherryPy"
   52.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
   52.24 -WGET_URL="http://download.cherrypy.org/cherrypy/$VERSION/$TARBALL"
   52.25 -TAGS="python"
   52.26 +BUILD_DEPENDS="python python-cheroot python-contextlib2 python-more-itertools \
   52.27 +python-portend python-six python-zc.lockfile \
   52.28 +python3 python3-cheroot python3-more-itertools python3-portend \
   52.29 +python3-zc.lockfile"
   52.30 +SPLIT="${PACKAGE/python/python3}:3"
   52.31  
   52.32 -DEPENDS="python"
   52.33 -BUILD_DEPENDS="python python-dev"
   52.34 -
   52.35 -# Rules to configure and make the package.
   52.36 -compile_rules()
   52.37 -{
   52.38 -	python setup.py install --root=$DESTDIR
   52.39 +compile_rules() {
   52.40 +	case $SET in
   52.41 +		'') VERSION="$VERSION2";;
   52.42 +	esac
   52.43 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   52.44  }
   52.45  
   52.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
   52.47 -genpkg_rules()
   52.48 -{
   52.49 -	cp -a $install/usr $fs
   52.50 +genpkg_rules() {
   52.51 +	copy @std
   52.52 +	py="${PACKAGE%%-*}" # python/python3
   52.53 +	case $PACKAGE in
   52.54 +		python-*)
   52.55 +			DEPENDS="$py $py-cheroot $py-contextlib2 $py-more-itertools \
   52.56 +			$py-portend $py-six $py-zc.lockfile"
   52.57 +			;;
   52.58 +		python3-*)
   52.59 +			DEPENDS="$py $py-cheroot $py-more-itertools $py-portend \
   52.60 +			$py-zc.lockfile"
   52.61 +			;;
   52.62 +	esac
   52.63  }
    53.1 --- a/python-configobj/receipt	Fri Sep 14 11:37:28 2018 +0300
    53.2 +++ b/python-configobj/receipt	Sat Sep 22 16:05:26 2018 +0300
    53.3 @@ -1,30 +1,26 @@
    53.4 -# SliTaz package receipt.
    53.5 +# SliTaz package receipt v2.
    53.6  
    53.7 +ORIGIN="configobj"
    53.8  PACKAGE="python-configobj"
    53.9  VERSION="5.0.6"
   53.10  CATEGORY="development"
   53.11  SHORT_DESC="Config file reading, writing and validation"
   53.12  MAINTAINER="al.bobylev@gmail.com"
   53.13 -LICENSE="other"
   53.14 -WEB_SITE="https://github.com/DiffSK/configobj"
   53.15 +LICENSE="BSD"
   53.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   53.17 +HOST_ARCH="any"
   53.18  REPOLOGY="python:configobj"
   53.19  
   53.20 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   53.21 -WGET_URL="https://github.com/DiffSK/configobj/archive/v$VERSION.tar.gz"
   53.22 +BUILD_DEPENDS="python python-six \
   53.23 +python3 python3-six"
   53.24 +SPLIT="${PACKAGE/python/python3}:3"
   53.25  
   53.26 -DEPENDS="python python-six"
   53.27 -BUILD_DEPENDS="python"
   53.28 -
   53.29 -# Rules to configure and make the package.
   53.30 -compile_rules()
   53.31 -{
   53.32 -	python setup.py build
   53.33 -	python setup.py install --root=$DESTDIR
   53.34 +compile_rules() {
   53.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   53.36  }
   53.37  
   53.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   53.39 -genpkg_rules()
   53.40 -{
   53.41 -	cp -a $install/* $fs
   53.42 +genpkg_rules() {
   53.43 +	copy @std
   53.44 +	py="${PACKAGE%%-*}" # python/python3
   53.45 +	DEPENDS="$py $py-six"
   53.46  }
   53.47 -
    54.1 --- a/python-configparser/receipt	Fri Sep 14 11:37:28 2018 +0300
    54.2 +++ b/python-configparser/receipt	Sat Sep 22 16:05:26 2018 +0300
    54.3 @@ -1,23 +1,25 @@
    54.4  # SliTaz package receipt v2.
    54.5  
    54.6 +ORIGIN="configparser"
    54.7  PACKAGE="python-configparser"
    54.8 -VERSION="latest"
    54.9 -CATEGORY="development"
   54.10 +VERSION="3.5.0"
   54.11 +CATEGORY="python"
   54.12  SHORT_DESC="Updated configparser from Python 3.5 to Python 2.7"
   54.13  MAINTAINER="al.bobylev@gmail.com"
   54.14  LICENSE="MIT"
   54.15 -WEB_SITE="https://pypi.org/project/configparser/"
   54.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   54.17  HOST_ARCH="any"
   54.18  REPOLOGY="python:configparser"
   54.19  
   54.20 -BUILD_DEPENDS="python"
   54.21 +BUILD_DEPENDS="python python3"
   54.22 +SPLIT="${PACKAGE/python/python3}:3"
   54.23  
   54.24  compile_rules() {
   54.25 -	pip install --no-compile --root=$DESTDIR configparser
   54.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   54.27  }
   54.28  
   54.29  genpkg_rules() {
   54.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*configparser-||p' $LOGS/$PACKAGE.log)
   54.31  	copy @std
   54.32 -	DEPENDS="python"
   54.33 +	py="${PACKAGE%%-*}" # python/python3
   54.34 +	DEPENDS="$py"
   54.35  }
    55.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    55.2 +++ b/python-constantly/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    55.3 @@ -0,0 +1,1 @@
    55.4 +../python/.icon.png
    55.5 \ No newline at end of file
    56.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    56.2 +++ b/python-constantly/receipt	Sat Sep 22 16:05:26 2018 +0300
    56.3 @@ -0,0 +1,25 @@
    56.4 +# SliTaz package receipt v2.
    56.5 +
    56.6 +ORIGIN="constantly"
    56.7 +PACKAGE="python-constantly"
    56.8 +VERSION="15.1.0"
    56.9 +CATEGORY="python"
   56.10 +SHORT_DESC="Symbolic constants in Python"
   56.11 +MAINTAINER="al.bobylev@gmail.com"
   56.12 +LICENSE="MIT"
   56.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   56.14 +HOST_ARCH="any"
   56.15 +REPOLOGY="python:constantly"
   56.16 +
   56.17 +BUILD_DEPENDS="python python3"
   56.18 +SPLIT="${PACKAGE/python/python3}:3"
   56.19 +
   56.20 +compile_rules() {
   56.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   56.22 +}
   56.23 +
   56.24 +genpkg_rules() {
   56.25 +	copy @std
   56.26 +	py="${PACKAGE%%-*}" # python/python3
   56.27 +	DEPENDS="$py"
   56.28 +}
    57.1 --- a/python-contextlib2/receipt	Fri Sep 14 11:37:28 2018 +0300
    57.2 +++ b/python-contextlib2/receipt	Sat Sep 22 16:05:26 2018 +0300
    57.3 @@ -1,22 +1,25 @@
    57.4  # SliTaz package receipt v2.
    57.5  
    57.6 +ORIGIN="contextlib2"
    57.7  PACKAGE="python-contextlib2"
    57.8 -VERSION="latest"
    57.9 +VERSION="0.5.5"
   57.10  CATEGORY="python"
   57.11  SHORT_DESC="Backports and enhancements for the contextlib module"
   57.12  MAINTAINER="al.bobylev@gmail.com"
   57.13  LICENSE="BSD"
   57.14 -WEB_SITE="https://pypi.org/project/contextlib2/"
   57.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   57.16 +HOST_ARCH="any"
   57.17  REPOLOGY="python:contextlib2"
   57.18  
   57.19 -BUILD_DEPENDS="python"
   57.20 +BUILD_DEPENDS="python python3"
   57.21 +SPLIT="${PACKAGE/python/python3}:3"
   57.22  
   57.23  compile_rules() {
   57.24 -	pip install --no-compile --root=$DESTDIR contextlib2
   57.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   57.26  }
   57.27  
   57.28  genpkg_rules() {
   57.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*contextlib2-||p' $LOGS/$PACKAGE.log)
   57.30  	copy @std
   57.31 -	DEPENDS="python"
   57.32 +	py="${PACKAGE%%-*}" # python/python3
   57.33 +	DEPENDS="$py"
   57.34  }
    58.1 --- a/python-couchdbkit/receipt	Fri Sep 14 11:37:28 2018 +0300
    58.2 +++ b/python-couchdbkit/receipt	Sat Sep 22 16:05:26 2018 +0300
    58.3 @@ -1,30 +1,24 @@
    58.4 -# SliTaz package receipt.
    58.5 +# SliTaz package receipt v2.
    58.6  
    58.7 +ORIGIN="couchdbkit"
    58.8  PACKAGE="python-couchdbkit"
    58.9 -VERSION="0.6.2"
   58.10 -CATEGORY="development"
   58.11 +VERSION="0.6.5"
   58.12 +CATEGORY="python"
   58.13  SHORT_DESC="A framework for python applications to access and manage CouchDB"
   58.14  MAINTAINER="claudinei@slitaz.org"
   58.15  LICENSE="MIT"
   58.16 -WEB_SITE="https://pypi.org/project/couchdbkit/"
   58.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   58.18 +HOST_ARCH="any"
   58.19  REPOLOGY="python:couchdbkit"
   58.20  
   58.21 -SOURCE="couchdbkit"
   58.22 -TARBALL="$SOURCE-$VERSION.zip"
   58.23 -WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
   58.24 +BUILD_DEPENDS="python-dev python-restkit"
   58.25  
   58.26 -DEPENDS="python couchdb python-simplejson python-restkit"
   58.27 -BUILD_DEPENDS="python python-dev"
   58.28 -
   58.29 -# Rules to configure and make the package.
   58.30 -compile_rules()
   58.31 -{
   58.32 -	python setup.py install --root=$DESTDIR
   58.33 +compile_rules() {
   58.34 +	# Python3 based compilation produce error
   58.35 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
   58.36  }
   58.37  
   58.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   58.39 -genpkg_rules()
   58.40 -{
   58.41 -	mkdir -p $fs/usr
   58.42 -	cp -a $install/usr $fs
   58.43 +genpkg_rules() {
   58.44 +	copy @std
   58.45 +	DEPENDS="python python-restkit"
   58.46  }
    59.1 --- a/python-coverage/receipt	Fri Sep 14 11:37:28 2018 +0300
    59.2 +++ b/python-coverage/receipt	Sat Sep 22 16:05:26 2018 +0300
    59.3 @@ -1,22 +1,27 @@
    59.4  # SliTaz package receipt v2.
    59.5  
    59.6 +ORIGIN="coverage"
    59.7  PACKAGE="python-coverage"
    59.8 -VERSION="latest"
    59.9 +VERSION="4.5.1"
   59.10  CATEGORY="python"
   59.11  SHORT_DESC="Code coverage measurement for Python"
   59.12  MAINTAINER="al.bobylev@gmail.com"
   59.13  LICENSE="Apache2"
   59.14 -WEB_SITE="https://pypi.org/project/coverage/"
   59.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   59.16 +#HOST_ARCH=""
   59.17  REPOLOGY="python:coverage"
   59.18  
   59.19 -BUILD_DEPENDS="python"
   59.20 +BUILD_DEPENDS="python python3"
   59.21 +SPLIT="${PACKAGE/python/python3}:3"
   59.22  
   59.23  compile_rules() {
   59.24 -	pip install --no-compile --root=$DESTDIR coverage
   59.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   59.26 +
   59.27 +	find $install -type f -name '*.png' -exec chmod a-x '{}' \;
   59.28  }
   59.29  
   59.30  genpkg_rules() {
   59.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*coverage-||p' $LOGS/$PACKAGE.log)
   59.32  	copy @std
   59.33 -	DEPENDS="python"
   59.34 +	py="${PACKAGE%%-*}" # python/python3
   59.35 +	DEPENDS="$py"
   59.36  }
    60.1 --- a/python-crank/receipt	Fri Sep 14 11:37:28 2018 +0300
    60.2 +++ b/python-crank/receipt	Sat Sep 22 16:05:26 2018 +0300
    60.3 @@ -1,22 +1,25 @@
    60.4  # SliTaz package receipt v2.
    60.5  
    60.6 +ORIGIN="crank"
    60.7  PACKAGE="python-crank"
    60.8 -VERSION="latest"
    60.9 -CATEGORY="development"
   60.10 +VERSION="0.8.1"
   60.11 +CATEGORY="python"
   60.12  SHORT_DESC="Generalization of dispatch mechanism for use across frameworks"
   60.13  MAINTAINER="al.bobylev@gmail.com"
   60.14  LICENSE="MIT"
   60.15 -WEB_SITE="https://pypi.org/project/crank/"
   60.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   60.17 +HOST_ARCH="any"
   60.18  REPOLOGY="python:crank"
   60.19  
   60.20 -BUILD_DEPENDS="python"
   60.21 +BUILD_DEPENDS="python python3"
   60.22 +SPLIT="${PACKAGE/python/python3}:3"
   60.23  
   60.24  compile_rules() {
   60.25 -	pip install --no-compile --root=$DESTDIR crank
   60.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   60.27  }
   60.28  
   60.29  genpkg_rules() {
   60.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*crank-||p' $LOGS/$PACKAGE.log)
   60.31  	copy @std
   60.32 -	DEPENDS="python"
   60.33 +	py="${PACKAGE%%-*}" # python/python3
   60.34 +	DEPENDS="$py"
   60.35  }
    61.1 --- a/python-cryptography/receipt	Fri Sep 14 11:37:28 2018 +0300
    61.2 +++ b/python-cryptography/receipt	Sat Sep 22 16:05:26 2018 +0300
    61.3 @@ -1,24 +1,35 @@
    61.4  # SliTaz package receipt v2.
    61.5  
    61.6 +ORIGIN="cryptography"
    61.7  PACKAGE="python-cryptography"
    61.8 -VERSION="latest"
    61.9 +VERSION="2.3.1"
   61.10  CATEGORY="python"
   61.11  SHORT_DESC="Provide cryptographic recipes and primitives"
   61.12  MAINTAINER="al.bobylev@gmail.com"
   61.13  LICENSE="BSD"
   61.14  WEB_SITE="https://pypi.org/project/cryptography/"
   61.15 +#HOST_ARCH
   61.16  REPOLOGY="python:cryptography"
   61.17  
   61.18 -BUILD_DEPENDS="python python-enum34 python-cffi python-asn1crypto python-idna \
   61.19 -python-six python-ipaddress"
   61.20 +BUILD_DEPENDS="python python-asn1crypto python-cffi python-enum34 python-idna \
   61.21 +python-ipaddress python-six \
   61.22 +python3 python3-asn1crypto python3-cffi python3-idna python3-six"
   61.23 +SPLIT="${PACKAGE/python/python3}:3"
   61.24  
   61.25  compile_rules() {
   61.26 -	pip install --no-compile --root=$DESTDIR cryptography
   61.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   61.28  }
   61.29  
   61.30  genpkg_rules() {
   61.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*cryptography-||p' $LOGS/$PACKAGE.log)
   61.32  	copy @std
   61.33 -	DEPENDS="python python-enum34 python-cffi python-asn1crypto python-idna \
   61.34 -	python-six python-ipaddress"
   61.35 +	py="${PACKAGE%%-*}" # python/python3
   61.36 +	case $PACKAGE in
   61.37 +		python-*)
   61.38 +			DEPENDS="$py $py-asn1crypto $py-cffi $py-enum34 $py-idna \
   61.39 +			$py-ipaddress $py-six"
   61.40 +			;;
   61.41 +		python3-*)
   61.42 +			DEPENDS="$py $py-asn1crypto $py-cffi $py-idna $py-six"
   61.43 +			;;
   61.44 +	esac
   61.45  }
    62.1 --- a/python-cssselect/receipt	Fri Sep 14 11:37:28 2018 +0300
    62.2 +++ b/python-cssselect/receipt	Sat Sep 22 16:05:26 2018 +0300
    62.3 @@ -1,29 +1,25 @@
    62.4 -# SliTaz package receipt.
    62.5 +# SliTaz package receipt v2.
    62.6  
    62.7 +ORIGIN="cssselect"
    62.8  PACKAGE="python-cssselect"
    62.9 -VERSION="0.7.1"
   62.10 -CATEGORY="development"
   62.11 -SHORT_DESC="parses CSS3 Selectors and translates them to XPath."
   62.12 +VERSION="1.0.3"
   62.13 +CATEGORY="python"
   62.14 +SHORT_DESC="Parse CSS3 Selectors and translate them to XPath"
   62.15  MAINTAINER="monghitri@aruba.it"
   62.16  LICENSE="BSD"
   62.17 -WEB_SITE="https://pypi.org/project/cssselect/"
   62.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   62.19 +HOST_ARCH="any"
   62.20  REPOLOGY="python:cssselect"
   62.21  
   62.22 -SOURCE="cssselect"
   62.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
   62.24 -WGET_URL="https://files.pythonhosted.org/packages/source/c/$SOURCE/$TARBALL"
   62.25 +BUILD_DEPENDS="python python3"
   62.26 +SPLIT="${PACKAGE/python/python3}:3"
   62.27  
   62.28 -DEPENDS="python"
   62.29 -BUILD_DEPENDS="python"
   62.30 -
   62.31 -# Rules to configure and make the package.
   62.32 -compile_rules()
   62.33 -{
   62.34 -	python setup.py install --root=$DESTDIR
   62.35 +compile_rules() {
   62.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   62.37  }
   62.38  
   62.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
   62.40 -genpkg_rules()
   62.41 -{
   62.42 -	cp -a $install/usr $fs
   62.43 +genpkg_rules() {
   62.44 +	copy @std
   62.45 +	py="${PACKAGE%%-*}" # python/python3
   62.46 +	DEPENDS="$py"
   62.47  }
    63.1 --- a/python-cssutils/receipt	Fri Sep 14 11:37:28 2018 +0300
    63.2 +++ b/python-cssutils/receipt	Sat Sep 22 16:05:26 2018 +0300
    63.3 @@ -1,29 +1,27 @@
    63.4 -# SliTaz package receipt.
    63.5 +# SliTaz package receipt v2.
    63.6  
    63.7 +ORIGIN="cssutils"
    63.8  PACKAGE="python-cssutils"
    63.9 -VERSION="0.9.10b1"
   63.10 -CATEGORY="development"
   63.11 -SHORT_DESC="A Python package to parse and build CSS Cascading Style Sheets."
   63.12 +VERSION="1.0.2"
   63.13 +CATEGORY="python"
   63.14 +SHORT_DESC="A CSS Cascading Style Sheets library for Python"
   63.15  MAINTAINER="monghitri@aruba.it"
   63.16  LICENSE="GPL3"
   63.17 -WEB_SITE="http://cthedot.de/cssutils/"
   63.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   63.19 +HOST_ARCH="any"
   63.20  REPOLOGY="python:cssutils"
   63.21  
   63.22 -SOURCE="cssutils"
   63.23 -TARBALL="$SOURCE-$VERSION.zip"
   63.24 -WGET_URL="https://files.pythonhosted.org/packages/source/c/cssutils/$TARBALL"
   63.25 +BUILD_DEPENDS="python python3"
   63.26 +SPLIT="${PACKAGE/python/python3}:3"
   63.27  
   63.28 -DEPENDS="python"
   63.29 -BUILD_DEPENDS="python"
   63.30 +COOKOPTS="!gifz" # contains bad zero-size gifs
   63.31  
   63.32 -# Rules to configure and make the package.
   63.33 -compile_rules()
   63.34 -{
   63.35 -	python setup.py install --root=$DESTDIR
   63.36 +compile_rules() {
   63.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   63.38  }
   63.39  
   63.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
   63.41 -genpkg_rules()
   63.42 -{
   63.43 -	cp -a $install/usr $fs
   63.44 +genpkg_rules() {
   63.45 +	copy @std
   63.46 +	py="${PACKAGE%%-*}" # python/python3
   63.47 +	DEPENDS="$py"
   63.48  }
    64.1 --- a/python-cups/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    64.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    64.3 @@ -1,1 +0,0 @@
    64.4 -../python/.icon.png
    64.5 \ No newline at end of file
    65.1 --- a/python-cups/receipt	Fri Sep 14 11:37:28 2018 +0300
    65.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    65.3 @@ -1,29 +0,0 @@
    65.4 -# SliTaz package receipt.
    65.5 -
    65.6 -PACKAGE="python-cups"
    65.7 -VERSION="1.9.68"
    65.8 -CATEGORY="development"
    65.9 -SHORT_DESC="Python bindings for libcups."
   65.10 -MAINTAINER="pascal.bellard@slitaz.org"
   65.11 -LICENSE="GPL2"
   65.12 -WEB_SITE="https://pypi.org/project/pycups/"
   65.13 -REPOLOGY="python:pycups"
   65.14 -
   65.15 -SOURCE="pycups"
   65.16 -TARBALL="$SOURCE-$VERSION.tar.bz2"
   65.17 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
   65.18 -
   65.19 -DEPENDS="python libcups"
   65.20 -BUILD_DEPENDS="python-dev cups-dev"
   65.21 -
   65.22 -# Rules to configure and make the package.
   65.23 -compile_rules()
   65.24 -{
   65.25 -	python setup.py install --root=$DESTDIR
   65.26 -}
   65.27 -
   65.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
   65.29 -genpkg_rules()
   65.30 -{
   65.31 -	cp -a $install/usr $fs
   65.32 -}
    66.1 --- a/python-curtsies/receipt	Fri Sep 14 11:37:28 2018 +0300
    66.2 +++ b/python-curtsies/receipt	Sat Sep 22 16:05:26 2018 +0300
    66.3 @@ -1,22 +1,26 @@
    66.4  # SliTaz package receipt v2.
    66.5  
    66.6 +ORIGIN="curtsies"
    66.7  PACKAGE="python-curtsies"
    66.8 -VERSION="latest"
    66.9 +VERSION="0.3.0"
   66.10  CATEGORY="development"
   66.11  SHORT_DESC="Curses-like terminal wrapper, with colored strings"
   66.12  MAINTAINER="al.bobylev@gmail.com"
   66.13  LICENSE="MIT"
   66.14 -WEB_SITE="https://pypi.org/project/curtsies/"
   66.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   66.16 +HOST_ARCH="any"
   66.17  REPOLOGY="python:curtsies"
   66.18  
   66.19 -BUILD_DEPENDS="python-wcwidth python-blessings python-typing"
   66.20 +BUILD_DEPENDS="python-wcwidth python-blessings python-typing \
   66.21 +python3-wcwidth python3-blessings python3-typing"
   66.22 +SPLIT="${PACKAGE/python/python3}:3"
   66.23  
   66.24  compile_rules() {
   66.25 -	pip install --no-compile --root=$DESTDIR curtsies
   66.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   66.27  }
   66.28  
   66.29  genpkg_rules() {
   66.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*curtsies-||p' $LOGS/$PACKAGE.log)
   66.31  	copy @std
   66.32 -	DEPENDS="$BUILD_DEPENDS"
   66.33 +	py=${PACKAGE%%-*} # python/python3
   66.34 +	DEPENDS="$py $py-wcwidth $py-blessings $py-typing"
   66.35  }
    67.1 --- a/python-cython/receipt	Fri Sep 14 11:37:28 2018 +0300
    67.2 +++ b/python-cython/receipt	Sat Sep 22 16:05:26 2018 +0300
    67.3 @@ -1,22 +1,25 @@
    67.4  # SliTaz package receipt v2.
    67.5  
    67.6 +ORIGIN="Cython"
    67.7  PACKAGE="python-cython"
    67.8 -VERSION="latest"
    67.9 -CATEGORY="development"
   67.10 +VERSION="0.28.5"
   67.11 +CATEGORY="python"
   67.12  SHORT_DESC="Language to write C extensions for Python"
   67.13  MAINTAINER="pankso@slitaz.org"
   67.14  LICENSE="Apache"
   67.15 -WEB_SITE="http://cython.org/"
   67.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   67.17 +#HOST_ARCH
   67.18  REPOLOGY="python:cython"
   67.19  
   67.20 -BUILD_DEPENDS="python-dev"
   67.21 +BUILD_DEPENDS="python python3"
   67.22 +SPLIT="${PACKAGE/python/python3}:3"
   67.23  
   67.24  compile_rules() {
   67.25 -	pip install --no-compile --root=$DESTDIR Cython
   67.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   67.27  }
   67.28  
   67.29  genpkg_rules() {
   67.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*Cython-||p' $LOGS/$PACKAGE.log)
   67.31 -	copy @std
   67.32 -	DEPENDS="python"
   67.33 +	copy @std @dev
   67.34 +	py=${PACKAGE%%-*} # python/python3
   67.35 +	DEPENDS="$py"
   67.36  }
    68.1 --- a/python-dateutil/receipt	Fri Sep 14 11:37:28 2018 +0300
    68.2 +++ b/python-dateutil/receipt	Sat Sep 22 16:05:26 2018 +0300
    68.3 @@ -1,34 +1,25 @@
    68.4 -# SliTaz package receipt.
    68.5 +# SliTaz package receipt v2.
    68.6  
    68.7 +ORIGIN="python-dateutil"
    68.8  PACKAGE="python-dateutil"
    68.9 -VERSION="1.5"
   68.10 +VERSION="2.7.3"
   68.11  CATEGORY="development"
   68.12  SHORT_DESC="Extensions to the standart python 2.3+ datetime module"
   68.13  MAINTAINER="claudinei@slitaz.org"
   68.14  LICENSE="PSL"
   68.15 -WEB_SITE="http://labix.org/python-dateutil"
   68.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   68.17 +HOST_ARCH="any"
   68.18  REPOLOGY="python:dateutil"
   68.19  
   68.20 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   68.21 -WGET_URL="http://labix.org/download/$PACKAGE/$TARBALL"
   68.22 +BUILD_DEPENDS="python python-six  python3 python3-six"
   68.23 +SPLIT="${PACKAGE/python/python3}:3"
   68.24  
   68.25 -DEPENDS="python"
   68.26 -BUILD_DEPENDS="python python-dev"
   68.27 -
   68.28 -# Rules to configure and make the package.
   68.29 -compile_rules()
   68.30 -{
   68.31 -	cd $src
   68.32 -	python setup.py install --root=$DESTDIR
   68.33 +compile_rules() {
   68.34 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   68.35  }
   68.36  
   68.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
   68.38 -genpkg_rules()
   68.39 -{
   68.40 -	for file in `find $install | grep 'pyc$'`; do
   68.41 -		rm $file
   68.42 -	done
   68.43 -	mkdir -p $fs/usr
   68.44 -	cp -a $install/usr/lib $fs/usr
   68.45 +genpkg_rules() {
   68.46 +	copy @std
   68.47 +	py=${PACKAGE%%-*} # python/python3
   68.48 +	DEPENDS="$py $py-six"
   68.49  }
   68.50 -
    69.1 --- a/python-dbus/receipt	Fri Sep 14 11:37:28 2018 +0300
    69.2 +++ b/python-dbus/receipt	Sat Sep 22 16:05:26 2018 +0300
    69.3 @@ -1,38 +1,45 @@
    69.4  # SliTaz package receipt v2.
    69.5  
    69.6 +ORIGIN="dbus-python"
    69.7  PACKAGE="python-dbus"
    69.8 -VERSION="latest"
    69.9 +VERSION="1.2.8"
   69.10  CATEGORY="system-tools"
   69.11 -SHORT_DESC="D-Bus Python bindings"
   69.12 +SHORT_DESC="Python bindings for libdbus"
   69.13  MAINTAINER="pankso@slitaz.org"
   69.14  LICENSE="GPL2"
   69.15 -WEB_SITE="http://freedesktop.org/wiki/Software/DBusBindings"
   69.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   69.17 +#HOST_ARCH
   69.18  REPOLOGY="python:dbus-python"
   69.19  
   69.20 -BUILD_DEPENDS="dbus-dev glib-dev python-dev dbus-glib-dev"
   69.21 -SPLIT="$PACKAGE-dev"
   69.22 +BUILD_DEPENDS="python-dev python3-dev dbus-dev glib-dev"
   69.23 +SPLIT="$PACKAGE-dev \
   69.24 +${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
   69.25  
   69.26  # Python packages name should start with "python-", but "python-dbus-python"
   69.27  # is pretty ugly name, so strip it to "python-dbus"
   69.28  
   69.29  compile_rules() {
   69.30 -	pip install --no-compile --root=$DESTDIR dbus-python &&
   69.31 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
   69.32  
   69.33  	# fix installation
   69.34  	mv $install/tmp/pip-build-*/dbus-python/build/lib.*/* \
   69.35 -		$install/usr/lib/python2.7/site-packages/ &&
   69.36 +		$install/usr/lib/python*/site-packages/
   69.37  	rm -r $install/tmp
   69.38 +
   69.39 +	# it don't follow --no-compile option
   69.40 +	find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
   69.41  }
   69.42  
   69.43  genpkg_rules() {
   69.44 -	VERSION=$(sed -n '/^Successfully installed/ s|.*dbus-python-||p' $LOGS/${PACKAGE%-dev}.log)
   69.45  	case $PACKAGE in
   69.46  		*-dev)
   69.47  			copy @dev
   69.48 +			DEPENDS="${PACKAGE%%-dev} dbus-dev"
   69.49  			;;
   69.50  		*)
   69.51  			copy @std
   69.52 -			DEPENDS="dbus glib python dbus-glib"
   69.53 +			py=${PACKAGE%%-*} # python/python3
   69.54 +			DEPENDS="$py dbus glib"
   69.55  			;;
   69.56  	esac
   69.57  }
    70.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    70.2 +++ b/python-decorator/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    70.3 @@ -0,0 +1,1 @@
    70.4 +../python/.icon.png
    70.5 \ No newline at end of file
    71.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    71.2 +++ b/python-decorator/receipt	Sat Sep 22 16:05:26 2018 +0300
    71.3 @@ -0,0 +1,25 @@
    71.4 +# SliTaz package receipt v2.
    71.5 +
    71.6 +ORIGIN="decorator"
    71.7 +PACKAGE="python-decorator"
    71.8 +VERSION="4.3.0"
    71.9 +CATEGORY="python"
   71.10 +SHORT_DESC="Better living through Python with decorators"
   71.11 +MAINTAINER="al.bobylev@gmail.com"
   71.12 +LICENSE="BSD"
   71.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   71.14 +HOST_ARCH="any"
   71.15 +REPOLOGY="python:decorator"
   71.16 +
   71.17 +BUILD_DEPENDS="python python3"
   71.18 +SPLIT="${PACKAGE/python/python3}:3"
   71.19 +
   71.20 +compile_rules() {
   71.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   71.22 +}
   71.23 +
   71.24 +genpkg_rules() {
   71.25 +	copy @std
   71.26 +	py=${PACKAGE%%-*} # python/python3
   71.27 +	DEPENDS="$py"
   71.28 +}
    72.1 --- a/python-decoratortools/receipt	Fri Sep 14 11:37:28 2018 +0300
    72.2 +++ b/python-decoratortools/receipt	Sat Sep 22 16:05:26 2018 +0300
    72.3 @@ -1,26 +1,24 @@
    72.4  # SliTaz package receipt v2.
    72.5  
    72.6 +ORIGIN="DecoratorTools"
    72.7  PACKAGE="python-decoratortools"
    72.8  VERSION="1.8"
    72.9 -CATEGORY="development"
   72.10 +CATEGORY="python"
   72.11  SHORT_DESC="Class, function, and metaclass decorators"
   72.12  MAINTAINER="taziden@slitaz.org"
   72.13  LICENSE="PSL"
   72.14 -WEB_SITE="https://pypi.org/project/DecoratorTools/"
   72.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   72.16 +HOST_ARCH="any"
   72.17  REPOLOGY="python:decoratortools"
   72.18  
   72.19 -SOURCE="DecoratorTools"
   72.20 -TARBALL="$SOURCE-$VERSION.zip"
   72.21 -WGET_URL="https://files.pythonhosted.org/packages/source/D/$SOURCE/$TARBALL"
   72.22 -
   72.23 -BUILD_DEPENDS="python python-dev"
   72.24 +BUILD_DEPENDS="python"
   72.25  
   72.26  compile_rules() {
   72.27 -	python setup.py install --root=$DESTDIR
   72.28 +	# Python3 based compilation produce error
   72.29 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
   72.30  }
   72.31  
   72.32  genpkg_rules() {
   72.33  	copy @std
   72.34  	DEPENDS="python"
   72.35 -	TAGS="python"
   72.36  }
    73.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    73.2 +++ b/python-defusedxml/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    73.3 @@ -0,0 +1,1 @@
    73.4 +../python/.icon.png
    73.5 \ No newline at end of file
    74.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    74.2 +++ b/python-defusedxml/receipt	Sat Sep 22 16:05:26 2018 +0300
    74.3 @@ -0,0 +1,25 @@
    74.4 +# SliTaz package receipt v2.
    74.5 +
    74.6 +ORIGIN="defusedxml"
    74.7 +PACKAGE="python-defusedxml"
    74.8 +VERSION="0.5.0"
    74.9 +CATEGORY="python"
   74.10 +SHORT_DESC="XML bomb protection for Python stdlib modules"
   74.11 +MAINTAINER="al.bobylev@gmail.com"
   74.12 +LICENSE="PSFL"
   74.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   74.14 +HOST_ARCH="any"
   74.15 +REPOLOGY="python:defusedxml"
   74.16 +
   74.17 +BUILD_DEPENDS="python python3"
   74.18 +SPLIT="${PACKAGE/python/python3}:3"
   74.19 +
   74.20 +compile_rules() {
   74.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   74.22 +}
   74.23 +
   74.24 +genpkg_rules() {
   74.25 +	copy @std
   74.26 +	py="${PACKAGE%%-*}" # python/python3
   74.27 +	DEPENDS="$py"
   74.28 +}
    75.1 --- a/python-distribute/receipt	Fri Sep 14 11:37:28 2018 +0300
    75.2 +++ b/python-distribute/receipt	Sat Sep 22 16:05:26 2018 +0300
    75.3 @@ -1,22 +1,24 @@
    75.4  # SliTaz package receipt v2.
    75.5  
    75.6 +ORIGIN="distribute"
    75.7  PACKAGE="python-distribute"
    75.8 -VERSION="latest"
    75.9 -CATEGORY="development"
   75.10 +VERSION="0.7.3"
   75.11 +CATEGORY="python"
   75.12  SHORT_DESC="Distribute legacy wrapper"
   75.13  MAINTAINER="slaxemulator@gmail.com"
   75.14  LICENSE="PSL"
   75.15 -WEB_SITE="https://pypi.org/project/distribute/"
   75.16 +WEB_SITE="http://pypi.python.org/pypi/$ORIGIN"
   75.17 +HOST_ARCH="any"
   75.18  REPOLOGY="python:distribute"
   75.19  
   75.20  BUILD_DEPENDS="python"
   75.21  
   75.22  compile_rules() {
   75.23 -	pip install --no-compile --root=$DESTDIR distribute
   75.24 +	# Python3 based compilation produce error
   75.25 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
   75.26  }
   75.27  
   75.28  genpkg_rules() {
   75.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*distribute-||p' $LOGS/$PACKAGE.log)
   75.30  	copy @std
   75.31  	DEPENDS="python"
   75.32  }
    76.1 --- a/python-distutils-extra/receipt	Fri Sep 14 11:37:28 2018 +0300
    76.2 +++ b/python-distutils-extra/receipt	Sat Sep 22 16:05:26 2018 +0300
    76.3 @@ -1,26 +1,27 @@
    76.4 -# SliTaz package receipt.
    76.5 +# SliTaz package receipt v2.
    76.6  
    76.7  PACKAGE="python-distutils-extra"
    76.8 -VERSION="2.39"
    76.9 -CATEGORY="development"
   76.10 +VERSION="2.41"
   76.11 +CATEGORY="python"
   76.12  SHORT_DESC="Add support for i18n, documentation and icons to distutils"
   76.13  MAINTAINER="al.bobylev@gmail.com"
   76.14  LICENSE="GPL2"
   76.15  WEB_SITE="https://launchpad.net/python-distutils-extra"
   76.16 +HOST_ARCH="any"
   76.17  REPOLOGY="python:distutils-extra"
   76.18  
   76.19 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   76.20 -WGET_URL="$WEB_SITE/trunk/$VERSION/+download/$TARBALL"
   76.21 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
   76.22 +WGET_URL="https://salsa.debian.org/debian/$PACKAGE/-/archive/$VERSION/$TARBALL"
   76.23  
   76.24 -BUILD_DEPENDS="python"
   76.25 +BUILD_DEPENDS="python python3"
   76.26 +SPLIT="${PACKAGE/python/python3}:3"
   76.27  
   76.28  compile_rules() {
   76.29 -	python setup.py install \
   76.30 -		--prefix=/usr \
   76.31 -		--root=$install
   76.32 +	python$SET -B setup.py install --root=$install
   76.33  }
   76.34  
   76.35  genpkg_rules() {
   76.36  	copy @std
   76.37 -	DEPENDS="python"
   76.38 +	py=${PACKAGE%%-*} # python/python3
   76.39 +	DEPENDS="$py"
   76.40  }
    77.1 --- a/python-django/receipt	Fri Sep 14 11:37:28 2018 +0300
    77.2 +++ b/python-django/receipt	Sat Sep 22 16:05:26 2018 +0300
    77.3 @@ -1,35 +1,35 @@
    77.4  # SliTaz package receipt v2.
    77.5  
    77.6 +ORIGIN="Django"
    77.7  PACKAGE="python-django"
    77.8 -VERSION="latest"
    77.9 -CATEGORY="development"
   77.10 +VERSION="2.1.1"    # version for Python3
   77.11 +VERSION2="1.11.15" # version for Python2
   77.12 +CATEGORY="python"
   77.13  SHORT_DESC="High-level Python Web framework"
   77.14  MAINTAINER="al.bobylev@gmail.com"
   77.15  LICENSE="BSD"
   77.16 -WEB_SITE="https://pypi.org/project/Django/"
   77.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   77.18 +HOST_ARCH="any"
   77.19  REPOLOGY="python:django"
   77.20  
   77.21 -BUILD_DEPENDS="python python-pytz python3 python3-pytz"
   77.22 -SPLIT="python3-django:py3"
   77.23 +BUILD_DEPENDS="python python-pytz  python3 python3-pytz"
   77.24 +SPLIT="${PACKAGE/python/python3}:3"
   77.25  
   77.26  compile_rules() {
   77.27  	case $SET in
   77.28 -		'')  pip='pip';;
   77.29 -		py3) pip='pip3';;
   77.30 +		'') VERSION="$VERSION2";;
   77.31  	esac
   77.32 -
   77.33 -	$pip install --no-compile --root=$DESTDIR Django &&
   77.34 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
   77.35  
   77.36  	sed -i 's|fill="ABABA7"|fill="#ABABA7"|' \
   77.37  		$install/usr/lib/python*/site-packages/django/contrib/gis/static/gis/img/draw_polygon_off.svg
   77.38  }
   77.39  
   77.40  genpkg_rules() {
   77.41 -	VERSION=$(find $install -type d -name 'Django-*.dist-info' -exec basename '{}' \; \
   77.42 -	| sed 's|Django-\(.*\)\.dist-info|\1|')
   77.43 +	case $PACKAGE in
   77.44 +		python-*) VERSION="$VERSION2";;
   77.45 +	esac
   77.46  	copy @std
   77.47 -	case $PACKAGE in
   77.48 -		python-django)  DEPENDS="python python-pytz";;
   77.49 -		python3-django) DEPENDS="python3 python3-pytz";;
   77.50 -	esac
   77.51 +	py=${PACKAGE%%-*} # python/python3
   77.52 +	DEPENDS="$py $py-pytz"
   77.53  }
    78.1 --- a/python-dnspython/receipt	Fri Sep 14 11:37:28 2018 +0300
    78.2 +++ b/python-dnspython/receipt	Sat Sep 22 16:05:26 2018 +0300
    78.3 @@ -1,29 +1,25 @@
    78.4 -# SliTaz package receipt.
    78.5 +# SliTaz package receipt v2.
    78.6  
    78.7 +ORIGIN="dnspython"
    78.8  PACKAGE="python-dnspython"
    78.9 -VERSION="1.10.0"
   78.10 -CATEGORY="development"
   78.11 -SHORT_DESC="a DNS toolkit for Python"
   78.12 +VERSION="1.15.0"
   78.13 +CATEGORY="python"
   78.14 +SHORT_DESC="A DNS toolkit for Python"
   78.15  MAINTAINER="monghitri@aruba.it"
   78.16  LICENSE="BSD"
   78.17 -WEB_SITE="http://www.dnspython.org/"
   78.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   78.19 +HOST_ARCH="any"
   78.20  REPOLOGY="python:dnspython"
   78.21  
   78.22 -SOURCE="dnspython"
   78.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
   78.24 -WGET_URL="http://www.dnspython.org/kits/$VERSION/$TARBALL"
   78.25 +BUILD_DEPENDS="python python3"
   78.26 +SPLIT="${PACKAGE/python/python3}:3"
   78.27  
   78.28 -DEPENDS="python"
   78.29 -BUILD_DEPENDS="python"
   78.30 -
   78.31 -# Rules to configure and make the package.
   78.32 -compile_rules()
   78.33 -{
   78.34 -	python setup.py install --root=$DESTDIR
   78.35 +compile_rules() {
   78.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   78.37  }
   78.38  
   78.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
   78.40 -genpkg_rules()
   78.41 -{
   78.42 -	cp -a $install/usr $fs
   78.43 +genpkg_rules() {
   78.44 +	copy @std
   78.45 +	py=${PACKAGE%%-*} # python/python3
   78.46 +	DEPENDS="$py"
   78.47  }
    79.1 --- a/python-docopt/receipt	Fri Sep 14 11:37:28 2018 +0300
    79.2 +++ b/python-docopt/receipt	Sat Sep 22 16:05:26 2018 +0300
    79.3 @@ -1,30 +1,25 @@
    79.4 -# SliTaz package receipt.
    79.5 +# SliTaz package receipt v2.
    79.6  
    79.7 +ORIGIN="docopt"
    79.8  PACKAGE="python-docopt"
    79.9  VERSION="0.6.2"
   79.10 -CATEGORY="development"
   79.11 -SHORT_DESC="Pythonic argument parser, that will make you smile."
   79.12 +CATEGORY="python"
   79.13 +SHORT_DESC="Pythonic argument parser, that will make you smile"
   79.14  MAINTAINER="paul@slitaz.org"
   79.15  LICENSE="MIT"
   79.16 -WEB_SITE="http://docopt.org/"
   79.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   79.18 +HOST_ARCH="any"
   79.19  REPOLOGY="python:docopt"
   79.20  
   79.21 -SOURCE="docopt"
   79.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
   79.23 -WGET_URL="https://files.pythonhosted.org/packages/source/d/$SOURCE/$TARBALL"
   79.24 +BUILD_DEPENDS="python python3"
   79.25 +SPLIT="${PACKAGE/python/python3}:3"
   79.26  
   79.27 -DEPENDS="python"
   79.28 -BUILD_DEPENDS="python-dev"
   79.29 -
   79.30 -# Rules to configure and make the package.
   79.31 -compile_rules()
   79.32 -{
   79.33 -	python setup.py install --root=$DESTDIR
   79.34 +compile_rules() {
   79.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   79.36  }
   79.37  
   79.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   79.39 -genpkg_rules()
   79.40 -{
   79.41 -	cp -a $install/usr $fs
   79.42 +genpkg_rules() {
   79.43 +	copy @std
   79.44 +	py=${PACKAGE%%-*} # python/python3
   79.45 +	DEPENDS="$py"
   79.46  }
   79.47 -
    80.1 --- a/python-docutils/receipt	Fri Sep 14 11:37:28 2018 +0300
    80.2 +++ b/python-docutils/receipt	Sat Sep 22 16:05:26 2018 +0300
    80.3 @@ -1,23 +1,26 @@
    80.4  # SliTaz package receipt v2.
    80.5  
    80.6 +ORIGIN="docutils"
    80.7  PACKAGE="python-docutils"
    80.8 -VERSION="latest"
    80.9 +VERSION="0.14"
   80.10  CATEGORY="python"
   80.11  SHORT_DESC="Text processing system"
   80.12  MAINTAINER="claudinei@slitaz.org"
   80.13  LICENSE="PublicDomain GPL3 BSD"
   80.14 -WEB_SITE="http://docutils.sourceforge.net"
   80.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   80.16 +HOST_ARCH="any"
   80.17  REPOLOGY="python:docutils"
   80.18  
   80.19 -BUILD_DEPENDS="python"
   80.20 +BUILD_DEPENDS="python python3"
   80.21 +SPLIT="${PACKAGE/python/python3}:3"
   80.22  
   80.23  compile_rules() {
   80.24 -	pip install --no-compile --root=$DESTDIR docutils
   80.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   80.26  }
   80.27  
   80.28  genpkg_rules() {
   80.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*docutils-||p' $LOGS/$PACKAGE.log)
   80.30  	copy @std
   80.31 -	DEPENDS="python"
   80.32 -	SUGGESTED="python-pil"
   80.33 +	py=${PACKAGE%%-*} # python/python3
   80.34 +	DEPENDS="$py"
   80.35 +	SUGGESTED="$py-pil"
   80.36  }
    81.1 --- a/python-dulwich/receipt	Fri Sep 14 11:37:28 2018 +0300
    81.2 +++ b/python-dulwich/receipt	Sat Sep 22 16:05:26 2018 +0300
    81.3 @@ -1,22 +1,26 @@
    81.4  # SliTaz package receipt v2.
    81.5  
    81.6 +ORIGIN="dulwich"
    81.7  PACKAGE="python-dulwich"
    81.8 -VERSION="latest"
    81.9 -CATEGORY="development"
   81.10 +VERSION="0.19.6"
   81.11 +CATEGORY="python"
   81.12  SHORT_DESC="Git files formats and protocols for Python"
   81.13  MAINTAINER="pascal.bellard@slitaz.org"
   81.14  LICENSE="GPL2"
   81.15 -WEB_SITE="https://pypi.org/project/dulwich/"
   81.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   81.17 +#HOST_ARCH
   81.18  REPOLOGY="python:dulwich"
   81.19  
   81.20 -BUILD_DEPENDS="python-dev python-urllib3 python-certifi"
   81.21 +BUILD_DEPENDS="python-dev python-urllib3 python-certifi \
   81.22 +python3-dev python3-urllib3 python3-certifi"
   81.23 +SPLIT="${PACKAGE/python/python3}:3"
   81.24  
   81.25  compile_rules() {
   81.26 -	pip install --no-compile --root=$DESTDIR dulwich
   81.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   81.28  }
   81.29  
   81.30  genpkg_rules() {
   81.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*dulwich-||p' $LOGS/$PACKAGE.log)
   81.32  	copy @std @dev
   81.33 -	DEPENDS="python python-urllib3 python-certifi"
   81.34 +	py=${PACKAGE%%-*} # python/python3
   81.35 +	DEPENDS="$py $py-urllib3 $py-certifi"
   81.36  }
    82.1 --- a/python-efl/receipt	Fri Sep 14 11:37:28 2018 +0300
    82.2 +++ b/python-efl/receipt	Sat Sep 22 16:05:26 2018 +0300
    82.3 @@ -1,27 +1,27 @@
    82.4  # SliTaz package receipt v2.
    82.5  
    82.6 +ORIGIN="python-efl"
    82.7  PACKAGE="python-efl"
    82.8 -VERSION="1.20.0"
    82.9 +VERSION="1.21.0"
   82.10  CATEGORY="base-system"
   82.11  SHORT_DESC="Python bindings for EFL"
   82.12  MAINTAINER="al.bobylev@gmail.com"
   82.13  LICENSE="GPL3 LGPL3"
   82.14 -WEB_SITE="https://www.enlightenment.org/"
   82.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   82.16  REPOLOGY="python:efl"
   82.17  
   82.18 -TARBALL="$PACKAGE-$VERSION.tar.xz"
   82.19 -WGET_URL="https://download.enlightenment.org/rel/bindings/python/$TARBALL"
   82.20 -
   82.21  BUILD_DEPENDS="efl-dev python-dbus-dev python-dev"
   82.22 +BUILD_DEPENDS="python-dev python3-dev efl-dev python-dbus-dev python3-dbus-dev"
   82.23 +SPLIT="${PACKAGE/python/python3}:3"
   82.24  
   82.25  compile_rules() {
   82.26  	# note, it required about 1.7 GB RAM on compiling
   82.27 -	python setup.py build &&
   82.28 -	python setup.py install --root=$install
   82.29 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   82.30  }
   82.31  
   82.32  genpkg_rules() {
   82.33  	copy @std
   82.34 -	DEPENDS="dbus efl python"
   82.35 +	py=${PACKAGE%%-*} # python/python3
   82.36 +	DEPENDS="$py dbus efl"
   82.37  	TAGS="e enlightenment efl python"
   82.38  }
    83.1 --- a/python-elaphe/receipt	Fri Sep 14 11:37:28 2018 +0300
    83.2 +++ b/python-elaphe/receipt	Sat Sep 22 16:05:26 2018 +0300
    83.3 @@ -1,29 +1,25 @@
    83.4 -# SliTaz package receipt.
    83.5 +# SliTaz package receipt v2.
    83.6  
    83.7 +ORIGIN="elaphe"
    83.8  PACKAGE="python-elaphe"
    83.9  VERSION="0.6.0"
   83.10 -CATEGORY="development"
   83.11 -SHORT_DESC="Generates various barcodes using barcode.ps and PIL/Pillow."
   83.12 +CATEGORY="python"
   83.13 +SHORT_DESC="Generates various barcodes using barcode.ps and PIL/Pillow"
   83.14  MAINTAINER="pascal.bellard@slitaz.org"
   83.15  LICENSE="BSD"
   83.16 -WEB_SITE="https://pypi.org/project/elaphe/"
   83.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   83.18 +HOST_ARCH="any"
   83.19  REPOLOGY="python:elaphe"
   83.20  
   83.21 -SOURCE="elaphe"
   83.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
   83.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
   83.24 +BUILD_DEPENDS="python python-pillow  python3 python3-pillow"
   83.25 +SPLIT="${PACKAGE/python/python3}:3"
   83.26  
   83.27 -DEPENDS="python"
   83.28 -BUILD_DEPENDS="python"
   83.29 -
   83.30 -# Rules to configure and make the package.
   83.31 -compile_rules()
   83.32 -{
   83.33 -	python setup.py install --root=$DESTDIR
   83.34 +compile_rules() {
   83.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   83.36  }
   83.37  
   83.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   83.39 -genpkg_rules()
   83.40 -{
   83.41 -	cp -a $install/usr $fs
   83.42 +genpkg_rules() {
   83.43 +	copy @std
   83.44 +	py=${PACKAGE%%-*} # python/python3
   83.45 +	DEPENDS="$py $py-pillow"
   83.46  }
    84.1 --- a/python-enum34/receipt	Fri Sep 14 11:37:28 2018 +0300
    84.2 +++ b/python-enum34/receipt	Sat Sep 22 16:05:26 2018 +0300
    84.3 @@ -1,23 +1,25 @@
    84.4  # SliTaz package receipt v2.
    84.5  
    84.6 +ORIGIN="enum34"
    84.7  PACKAGE="python-enum34"
    84.8 -VERSION="latest"
    84.9 -CATEGORY="development"
   84.10 +VERSION="1.1.6"
   84.11 +CATEGORY="python"
   84.12  SHORT_DESC="Python 3.4 Enum backported to 2.7"
   84.13  MAINTAINER="al.bobylev@gmail.com"
   84.14  LICENSE="BSD"
   84.15 -WEB_SITE="https://pypi.org/project/enum34/"
   84.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   84.17  HOST_ARCH="any"
   84.18  REPOLOGY="python:enum34"
   84.19  
   84.20 -BUILD_DEPENDS="python"
   84.21 +BUILD_DEPENDS="python python3"
   84.22 +SPLIT="${PACKAGE/python/python3}:3"
   84.23  
   84.24  compile_rules() {
   84.25 -	pip install --no-compile --root=$DESTDIR enum34
   84.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   84.27  }
   84.28  
   84.29  genpkg_rules() {
   84.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*enum34-||p' $LOGS/$PACKAGE.log)
   84.31  	copy @std
   84.32 -	DEPENDS="python"
   84.33 +	py=${PACKAGE%%-*} # python/python3
   84.34 +	DEPENDS="$py"
   84.35  }
    85.1 --- a/python-erppeek/receipt	Fri Sep 14 11:37:28 2018 +0300
    85.2 +++ b/python-erppeek/receipt	Sat Sep 22 16:05:26 2018 +0300
    85.3 @@ -1,29 +1,25 @@
    85.4 -# SliTaz package receipt.
    85.5 +# SliTaz package receipt v2.
    85.6  
    85.7 +ORIGIN="ERPpeek"
    85.8  PACKAGE="python-erppeek"
    85.9  VERSION="1.6.3"
   85.10 -CATEGORY="development"
   85.11 -SHORT_DESC="Versatile tool for browsing Odoo / OpenERP data."
   85.12 +CATEGORY="python"
   85.13 +SHORT_DESC="Versatile tool for browsing Odoo / OpenERP data"
   85.14  MAINTAINER="pascal.bellard@slitaz.org"
   85.15  LICENSE="BSD"
   85.16 -WEB_SITE="https://pypi.org/project/ERPpeek/"
   85.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   85.18 +HOST_ARCH="any"
   85.19  REPOLOGY="python:erppeek"
   85.20  
   85.21 -SOURCE="ERPpeek"
   85.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
   85.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
   85.24 +BUILD_DEPENDS="python python3"
   85.25 +SPLIT="${PACKAGE/python/python3}:3"
   85.26  
   85.27 -DEPENDS="python"
   85.28 -BUILD_DEPENDS="python"
   85.29 -
   85.30 -# Rules to configure and make the package.
   85.31 -compile_rules()
   85.32 -{
   85.33 -	python setup.py install --prefix=/usr --root=$DESTDIR
   85.34 +compile_rules() {
   85.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   85.36  }
   85.37  
   85.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   85.39 -genpkg_rules()
   85.40 -{
   85.41 -	cp -a $install/usr $fs/
   85.42 +genpkg_rules() {
   85.43 +	copy @std
   85.44 +	py=${PACKAGE%%-*} # python/python3
   85.45 +	DEPENDS="$py"
   85.46  }
    86.1 --- a/python-ethtool/receipt	Fri Sep 14 11:37:28 2018 +0300
    86.2 +++ b/python-ethtool/receipt	Sat Sep 22 16:05:26 2018 +0300
    86.3 @@ -1,31 +1,25 @@
    86.4 -# SliTaz package receipt.
    86.5 +# SliTaz package receipt v2.
    86.6  
    86.7 +ORIGIN="ethtool"
    86.8  PACKAGE="python-ethtool"
    86.9 -VERSION="0.8"
   86.10 +VERSION="0.14"
   86.11  CATEGORY="network"
   86.12 -SHORT_DESC="Python bindings for the ethtool kernel interface."
   86.13 +SHORT_DESC="Python module to interface with ethtool"
   86.14  MAINTAINER="pascal.bellard@slitaz.org"
   86.15  LICENSE="GPL2"
   86.16 -WEB_SITE="http://fedorapeople.org/cgit/dsommers/public_git/python-ethtool.git"
   86.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   86.18 +#HOST_ARCH
   86.19  REPOLOGY="python:ethtool"
   86.20  
   86.21 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
   86.22 -WGET_URL="https://fedorahosted.org/releases/p/y/$PACKAGE/$TARBALL"
   86.23 +BUILD_DEPENDS="python-dev python3-dev libnl-dev"
   86.24 +SPLIT="${PACKAGE/python/python3}:3"
   86.25  
   86.26 -DEPENDS="python libnl1"
   86.27 -BUILD_DEPENDS="python-dev libnl1-dev"
   86.28 -
   86.29 -# Rules to configure and make the package.
   86.30 -compile_rules()
   86.31 -{
   86.32 -	python setup.py build &&
   86.33 -	python setup.py install --root=$DESTDIR
   86.34 +compile_rules() {
   86.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   86.36  }
   86.37  
   86.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   86.39 -genpkg_rules()
   86.40 -{
   86.41 -	mkdir -p $fs
   86.42 -	cp -a $install/usr $fs
   86.43 +genpkg_rules() {
   86.44 +	copy @std
   86.45 +	py=${PACKAGE%%-*} # python/python3
   86.46 +	DEPENDS="$py libnl"
   86.47  }
   86.48 -
    87.1 --- a/python-extremes/receipt	Fri Sep 14 11:37:28 2018 +0300
    87.2 +++ b/python-extremes/receipt	Sat Sep 22 16:05:26 2018 +0300
    87.3 @@ -1,30 +1,24 @@
    87.4 -# SliTaz package receipt.
    87.5 +# SliTaz package receipt v2.
    87.6  
    87.7 +ORIGIN="Extremes"
    87.8  PACKAGE="python-extremes"
    87.9  VERSION="1.1.1"
   87.10 -CATEGORY="development"
   87.11 -SHORT_DESC="Production-quality 'Min' and 'Max' objects (adapted from PEP 326)."
   87.12 +CATEGORY="python"
   87.13 +SHORT_DESC="Production-quality 'Min' and 'Max' objects (adapted from PEP 326)"
   87.14  MAINTAINER="pankso@slitaz.org"
   87.15  LICENSE="PSL"
   87.16 -WEB_SITE="https://pypi.org/project/Extremes"
   87.17 +WEB_SITE="https://pypi.org/project/$ORIGIN"
   87.18 +HOST_ARCH="any"
   87.19  REPOLOGY="python:extremes"
   87.20  
   87.21 -SOURCE="Extremes"
   87.22 -TARBALL="$SOURCE-$VERSION.zip"
   87.23 -WGET_URL="https://files.pythonhosted.org/packages/source/E/$SOURCE/$TARBALL"
   87.24 -TAGS="python"
   87.25 +BUILD_DEPENDS="python-dev"
   87.26  
   87.27 -DEPENDS="python"
   87.28 -BUILD_DEPENDS="python python-dev"
   87.29 -
   87.30 -# Rules to configure and make the package.
   87.31 -compile_rules()
   87.32 -{
   87.33 -	python setup.py install --root=$DESTDIR
   87.34 +compile_rules() {
   87.35 +	# Python3 based compilation produce error
   87.36 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
   87.37  }
   87.38  
   87.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
   87.40 -genpkg_rules()
   87.41 -{
   87.42 -	cp -a $install/usr $fs
   87.43 +genpkg_rules() {
   87.44 +	copy @std
   87.45 +	DEPENDS="python"
   87.46  }
    88.1 --- a/python-flake8/receipt	Fri Sep 14 11:37:28 2018 +0300
    88.2 +++ b/python-flake8/receipt	Sat Sep 22 16:05:26 2018 +0300
    88.3 @@ -1,25 +1,35 @@
    88.4  # SliTaz package receipt v2.
    88.5  
    88.6 +ORIGIN="flake8"
    88.7  PACKAGE="python-flake8"
    88.8 -VERSION="latest"
    88.9 -CATEGORY="development"
   88.10 +VERSION="3.5.0"
   88.11 +CATEGORY="python"
   88.12  SHORT_DESC="The modular source code checker for Python"
   88.13  MAINTAINER="pascal.bellard@slitaz.org"
   88.14  LICENSE="MIT"
   88.15 -WEB_SITE="https://pypi.org/project/flake8/"
   88.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   88.17  HOST_ARCH="any"
   88.18  REPOLOGY="python:flake8"
   88.19  
   88.20 -BUILD_DEPENDS="python python-enum34 python-configparser python-mccabe \
   88.21 -python-pyflakes16 python-pycodestyle23"
   88.22 +BUILD_DEPENDS="python python-configparser python-enum34 python-mccabe \
   88.23 +python-pycodestyle23 python-pyflakes16 \
   88.24 +python3 python3-mccabe python3-pycodestyle23 python3-pyflakes16"
   88.25 +SPLIT="${PACKAGE/python/python3}:3"
   88.26  
   88.27  compile_rules() {
   88.28 -	pip install --no-compile --root=$DESTDIR flake8
   88.29 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   88.30  }
   88.31  
   88.32  genpkg_rules() {
   88.33 -	VERSION=$(sed -n '/^Successfully installed/ s|.*flake8-||p' $LOGS/$PACKAGE.log)
   88.34  	copy @std
   88.35 -	DEPENDS="python python-enum34 python-configparser python-mccabe \
   88.36 -	python-pyflakes16 python-pycodestyle23"
   88.37 +	py=${PACKAGE%%-*} # python/python3
   88.38 +	case $PACKAGE in
   88.39 +		python-*)
   88.40 +			DEPENDS="$py $py-configparser $py-enum34 $py-mccabe \
   88.41 +			$py-pycodestyle23 $py-pyflakes16"
   88.42 +			;;
   88.43 +		python3-*)
   88.44 +			DEPENDS="$py $py-mccabe $py-pycodestyle23 $py-pyflakes16"
   88.45 +			;;
   88.46 +	esac
   88.47  }
    89.1 --- a/python-flup/receipt	Fri Sep 14 11:37:28 2018 +0300
    89.2 +++ b/python-flup/receipt	Sat Sep 22 16:05:26 2018 +0300
    89.3 @@ -1,32 +1,25 @@
    89.4 -# SliTaz package receipt.
    89.5 +# SliTaz package receipt v2.
    89.6  
    89.7 +ORIGIN="flup"
    89.8  PACKAGE="python-flup"
    89.9 -VERSION="1.0.2"
   89.10 +VERSION="1.0.3"
   89.11  CATEGORY="network"
   89.12 -SHORT_DESC="Random collection of WSGI modules for Python."
   89.13 +SHORT_DESC="Random collection of WSGI modules for Python"
   89.14  MAINTAINER="pankso@slitaz.org"
   89.15  LICENSE="BSD"
   89.16 -WEB_SITE="https://www.saddi.com/software/flup/"
   89.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   89.18 +HOST_ARCH="any"
   89.19  REPOLOGY="python:flup"
   89.20  
   89.21 -SOURCE="flup"
   89.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
   89.23 -WGET_URL="http://www.saddi.com/software/flup/dist/$TARBALL"
   89.24 +BUILD_DEPENDS="python python3"
   89.25 +SPLIT="${PACKAGE/python/python3}:3"
   89.26  
   89.27 -DEPENDS="python"
   89.28 -BUILD_DEPENDS="python python-dev python-distribute"
   89.29 -
   89.30 -# Rules to configure and make the package.
   89.31 -compile_rules()
   89.32 -{
   89.33 -	python setup.py build &&
   89.34 -	python setup.py install --root=$DESTDIR
   89.35 +compile_rules() {
   89.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   89.37  }
   89.38  
   89.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
   89.40 -genpkg_rules()
   89.41 -{
   89.42 -	mkdir -p $fs
   89.43 -	cp -a $install/usr $fs
   89.44 +genpkg_rules() {
   89.45 +	copy @std
   89.46 +	py=${PACKAGE%%-*} # python/python3
   89.47 +	DEPENDS="$py"
   89.48  }
   89.49 -
    90.1 --- a/python-foolscap/receipt	Fri Sep 14 11:37:28 2018 +0300
    90.2 +++ b/python-foolscap/receipt	Sat Sep 22 16:05:26 2018 +0300
    90.3 @@ -1,29 +1,27 @@
    90.4 -# SliTaz package receipt.
    90.5 +# SliTaz package receipt v2.
    90.6  
    90.7 +ORIGIN="foolscap"
    90.8  PACKAGE="python-foolscap"
    90.9 -VERSION="0.8.0"
   90.10 -CATEGORY="development"
   90.11 -SHORT_DESC="Foolscap contains an RPC protocol for Twisted.."
   90.12 +VERSION="0.13.1"
   90.13 +CATEGORY="python"
   90.14 +SHORT_DESC="Foolscap contains an RPC protocol for Twisted"
   90.15  MAINTAINER="pascal.bellard@slitaz.org"
   90.16  LICENSE="MIT"
   90.17 -WEB_SITE="https://pypi.org/project/foolscap/"
   90.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   90.19 +HOST_ARCH="any"
   90.20  REPOLOGY="python:foolscap"
   90.21  
   90.22 -SOURCE="foolscap"
   90.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
   90.24 -WGET_URL="https://files.pythonhosted.org/packages/source/f/foolscap/$TARBALL"
   90.25 +BUILD_DEPENDS="python-dev python-pyopenssl python-twisted \
   90.26 +python-service_identity \
   90.27 +python3-dev python3-pyopenssl python3-twisted python3-service_identity"
   90.28 +SPLIT="${PACKAGE/python/python3}:3"
   90.29  
   90.30 -DEPENDS="python"
   90.31 -BUILD_DEPENDS="python-dev"
   90.32 -
   90.33 -# Rules to configure and make the package.
   90.34 -compile_rules()
   90.35 -{
   90.36 -	python setup.py install --prefix=/usr --root=$DESTDIR
   90.37 +compile_rules() {
   90.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   90.39  }
   90.40  
   90.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
   90.42 -genpkg_rules()
   90.43 -{
   90.44 -	cp -a $install/usr $fs/
   90.45 +genpkg_rules() {
   90.46 +	copy @std
   90.47 +	py=${PACKAGE%%-*} # python/python3
   90.48 +	DEPENDS="$py $py-pyopenssl $py-twisted $py-service_identity"
   90.49  }
    91.1 --- a/python-formalchemy/receipt	Fri Sep 14 11:37:28 2018 +0300
    91.2 +++ b/python-formalchemy/receipt	Sat Sep 22 16:05:26 2018 +0300
    91.3 @@ -1,30 +1,32 @@
    91.4 -# SliTaz package receipt.
    91.5 +# SliTaz package receipt v2.
    91.6  
    91.7 +ORIGIN="FormAlchemy"
    91.8  PACKAGE="python-formalchemy"
    91.9 -VERSION="1.4.2"
   91.10 -CATEGORY="development"
   91.11 -SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
   91.12 +VERSION="1.5.5"
   91.13 +CATEGORY="python"
   91.14 +SHORT_DESC="Auto-generated, customizable HTML output form fields from \
   91.15 +SQLAlchemy mapped classes"
   91.16  MAINTAINER="claudinei@slitaz.org"
   91.17  LICENSE="MIT"
   91.18 -WEB_SITE="https://pypi.org/project/FormAlchemy/"
   91.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   91.20 +HOST_ARCH="any"
   91.21  REPOLOGY="python:formalchemy"
   91.22  
   91.23 -SOURCE="formalchemy"
   91.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
   91.25 -WGET_URL="https://github.com/FormAlchemy/$SOURCE/archive/$VERSION.tar.gz"
   91.26 +BUILD_DEPENDS="python python-markupsafe python-six python-sqlalchemy \
   91.27 +python-tempita python-webhelpers2 python-webob \
   91.28 +python3 python3-markupsafe python3-six python3-sqlalchemy python3-tempita \
   91.29 +python3-webhelpers2 python3-webob"
   91.30 +SPLIT="${PACKAGE/python/python3}:3"
   91.31  
   91.32 -DEPENDS="python python-sqlalchemy python-webhelpers python-markupsafe \
   91.33 -python-tempita python-webob"
   91.34 -BUILD_DEPENDS="python-dev"
   91.35 +compile_rules() {
   91.36 +	fix utf-8; export LC_ALL=en_US.UTF-8
   91.37  
   91.38 -# Rules to configure and make the package.
   91.39 -compile_rules()
   91.40 -{
   91.41 -	python setup.py install --root=$DESTDIR
   91.42 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   91.43  }
   91.44  
   91.45 -# Rules to gen a SliTaz package suitable for Tazpkg.
   91.46 -genpkg_rules()
   91.47 -{
   91.48 -	cp -a $install/usr $fs
   91.49 +genpkg_rules() {
   91.50 +	copy @std
   91.51 +	py=${PACKAGE%%-*} # python/python3
   91.52 +	DEPENDS="$py $py-markupsafe $py-six $py-sqlalchemy $py-tempita \
   91.53 +	$py-webhelpers2 $py-webob"
   91.54  }
    92.1 --- a/python-formencode/receipt	Fri Sep 14 11:37:28 2018 +0300
    92.2 +++ b/python-formencode/receipt	Sat Sep 22 16:05:26 2018 +0300
    92.3 @@ -1,30 +1,25 @@
    92.4 -# SliTaz package receipt.
    92.5 +# SliTaz package receipt v2.
    92.6  
    92.7 +ORIGIN="FormEncode"
    92.8  PACKAGE="python-formencode"
    92.9 -VERSION="1.2.2"
   92.10 -CATEGORY="development"
   92.11 -SHORT_DESC="FormEncode is a validation and form generation package."
   92.12 +VERSION="1.3.1"
   92.13 +CATEGORY="python"
   92.14 +SHORT_DESC="Validate and generate forms"
   92.15  MAINTAINER="pankso@slitaz.org"
   92.16  LICENSE="PSL"
   92.17 -WEB_SITE="http://formencode.org/"
   92.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   92.19 +HOST_ARCH="any"
   92.20  REPOLOGY="python:formencode"
   92.21  
   92.22 -SOURCE="FormEncode"
   92.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
   92.24 -WGET_URL="https://files.pythonhosted.org/packages/source/F/$SOURCE/$TARBALL"
   92.25 -TAGS="python"
   92.26 +BUILD_DEPENDS="python python3"
   92.27 +SPLIT="${PACKAGE/python/python3}:3"
   92.28  
   92.29 -DEPENDS="python"
   92.30 -BUILD_DEPENDS="python python-dev"
   92.31 -
   92.32 -# Rules to configure and make the package.
   92.33 -compile_rules()
   92.34 -{
   92.35 -	python setup.py install --root=$DESTDIR
   92.36 +compile_rules() {
   92.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   92.38  }
   92.39  
   92.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
   92.41 -genpkg_rules()
   92.42 -{
   92.43 -	cp -a $install/usr $fs
   92.44 +genpkg_rules() {
   92.45 +	copy @std
   92.46 +	py=${PACKAGE%%-*} # python/python3
   92.47 +	DEPENDS="$py"
   92.48  }
    93.1 --- a/python-funcsigs/receipt	Fri Sep 14 11:37:28 2018 +0300
    93.2 +++ b/python-funcsigs/receipt	Sat Sep 22 16:05:26 2018 +0300
    93.3 @@ -1,22 +1,25 @@
    93.4  # SliTaz package receipt v2.
    93.5  
    93.6 +ORIGIN="funcsigs"
    93.7  PACKAGE="python-funcsigs"
    93.8 -VERSION="latest"
    93.9 +VERSION="1.0.2"
   93.10  CATEGORY="development"
   93.11  SHORT_DESC="Python function signatures"
   93.12  MAINTAINER="al.bobylev@gmail.com"
   93.13  LICENSE="BSD"
   93.14 -WEB_SITE="https://pypi.org/project/funcsigs/"
   93.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   93.16 +HOST_ARCH="any"
   93.17  REPOLOGY="python:funcsigs"
   93.18  
   93.19 -BUILD_DEPENDS="python"
   93.20 +BUILD_DEPENDS="python python3"
   93.21 +SPLIT="${PACKAGE/python/python3}:3"
   93.22  
   93.23  compile_rules() {
   93.24 -	pip install --no-compile --root=$DESTDIR funcsigs
   93.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   93.26  }
   93.27  
   93.28  genpkg_rules() {
   93.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*funcsigs-||p' $LOGS/$PACKAGE.log)
   93.30  	copy @std
   93.31 -	DEPENDS="python"
   93.32 +	py="${PACKAGE%%-*}" # python/python3
   93.33 +	DEPENDS="$py"
   93.34  }
    94.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    94.2 +++ b/python-future/.icon.png	Sat Sep 22 16:05:26 2018 +0300
    94.3 @@ -0,0 +1,1 @@
    94.4 +../python/.icon.png
    94.5 \ No newline at end of file
    95.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    95.2 +++ b/python-future/receipt	Sat Sep 22 16:05:26 2018 +0300
    95.3 @@ -0,0 +1,25 @@
    95.4 +# SliTaz package receipt v2.
    95.5 +
    95.6 +ORIGIN="future"
    95.7 +PACKAGE="python-future"
    95.8 +VERSION="0.16.0"
    95.9 +CATEGORY="python"
   95.10 +SHORT_DESC="Clean single-source support for Python 3 and 2"
   95.11 +MAINTAINER="al.bobylev@gmail.com"
   95.12 +LICENSE="MIT"
   95.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   95.14 +HOST_ARCH="any"
   95.15 +REPOLOGY="python:future"
   95.16 +
   95.17 +BUILD_DEPENDS="python python3"
   95.18 +SPLIT="${PACKAGE/python/python3}:3"
   95.19 +
   95.20 +compile_rules() {
   95.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   95.22 +}
   95.23 +
   95.24 +genpkg_rules() {
   95.25 +	copy @std
   95.26 +	py=${PACKAGE%%-*} # python/python3
   95.27 +	DEPENDS="$py"
   95.28 +}
    96.1 --- a/python-futures/receipt	Fri Sep 14 11:37:28 2018 +0300
    96.2 +++ b/python-futures/receipt	Sat Sep 22 16:05:26 2018 +0300
    96.3 @@ -1,23 +1,30 @@
    96.4  # SliTaz package receipt v2.
    96.5  
    96.6 +ORIGIN="futures"
    96.7  PACKAGE="python-futures"
    96.8 -ORIGIN="futures"
    96.9 -VERSION="latest"
   96.10 +VERSION="3.2.0"  # for Python2
   96.11 +VERSION3="3.1.1" # for Python3
   96.12  CATEGORY="python"
   96.13  SHORT_DESC="Backport of the concurrent.futures package from Python 3"
   96.14  MAINTAINER="al.bobylev@gmail.com"
   96.15  LICENSE="PSF"
   96.16  WEB_SITE="https://pypi.org/project/$ORIGIN/"
   96.17 -REPOLOGY="${PACKAGE/-/:}"
   96.18 +HOST_ARCH="any"
   96.19 +REPOLOGY="python:futures"
   96.20  
   96.21 -BUILD_DEPENDS="python"
   96.22 +BUILD_DEPENDS="python python3"
   96.23 +SPLIT="${PACKAGE/python/python3}:3"
   96.24  
   96.25  compile_rules() {
   96.26 -	pip install --no-compile --root=$DESTDIR $ORIGIN
   96.27 +	case $SET in
   96.28 +		3) VERSION="$VERSION3";;
   96.29 +	esac
   96.30 +
   96.31 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   96.32  }
   96.33  
   96.34  genpkg_rules() {
   96.35 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
   96.36  	copy @std
   96.37 -	DEPENDS="python"
   96.38 +	py="${PACKAGE%%-*}" # python/python3
   96.39 +	DEPENDS="$py"
   96.40  }
    97.1 --- a/python-gazpacho/.icon.png	Fri Sep 14 11:37:28 2018 +0300
    97.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    97.3 @@ -1,1 +0,0 @@
    97.4 -../python/.icon.png
    97.5 \ No newline at end of file
    98.1 --- a/python-gazpacho/receipt	Fri Sep 14 11:37:28 2018 +0300
    98.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    98.3 @@ -1,37 +0,0 @@
    98.4 -# SliTaz package receipt.
    98.5 -
    98.6 -PACKAGE="python-gazpacho"
    98.7 -VERSION="0.7.2"
    98.8 -CATEGORY="development"
    98.9 -SHORT_DESC="A GUI builder for the GTK+ toolkit"
   98.10 -MAINTAINER="claudinei@slitaz.org"
   98.11 -LICENSE="LGPL2.1"
   98.12 -WEB_SITE="http://gazpacho.sicem.biz"
   98.13 -REPOLOGY="gazpacho"
   98.14 -
   98.15 -SOURCE="gazpacho"
   98.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
   98.17 -WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$SOURCE/${VERSION%.*}/$TARBALL"
   98.18 -
   98.19 -DEPENDS="python python-pygtk python-kiwi"
   98.20 -SUGGESTED="twisted"
   98.21 -BUILD_DEPENDS="python python-dev python-pygtk python-kiwi"
   98.22 -
   98.23 -# Rules to configure and make the package.
   98.24 -compile_rules()
   98.25 -{
   98.26 -	python setup.py install --root=$DESTDIR || return 1
   98.27 -	mkdir -p $DESTDIR/usr/share/locale/pt
   98.28 -	cp -a locale/fr $DESTDIR/usr/share/locale
   98.29 -	cp -a locale/pt_BR/LC_MESSAGES $DESTDIR/usr/share/locale/pt
   98.30 -}
   98.31 -
   98.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
   98.33 -genpkg_rules()
   98.34 -{
   98.35 -	mkdir -p $fs/usr/share
   98.36 -	cp -a $install/usr/bin $fs/usr
   98.37 -	cp -a $install/usr/lib $fs/usr
   98.38 -	cp -a $install/usr/share $fs/usr
   98.39 -}
   98.40 -
    99.1 --- a/python-gdata/receipt	Fri Sep 14 11:37:28 2018 +0300
    99.2 +++ b/python-gdata/receipt	Sat Sep 22 16:05:26 2018 +0300
    99.3 @@ -1,22 +1,25 @@
    99.4  # SliTaz package receipt v2.
    99.5  
    99.6 +ORIGIN="gdata"
    99.7  PACKAGE="python-gdata"
    99.8 -VERSION="latest"
    99.9 +VERSION="2.0.18"
   99.10  CATEGORY="python"
   99.11  SHORT_DESC="Python client library for Google data APIs"
   99.12  MAINTAINER="pascal.bellard@slitaz.org"
   99.13  LICENSE="Apache"
   99.14 -WEB_SITE="https://pypi.org/project/gdata/"
   99.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
   99.16 +HOST_ARCH="any"
   99.17  REPOLOGY="python:gdata"
   99.18  
   99.19 -BUILD_DEPENDS="python"
   99.20 +BUILD_DEPENDS="python python3"
   99.21 +SPLIT="${PACKAGE/python/python3}:3"
   99.22  
   99.23  compile_rules() {
   99.24 -	pip install --no-compile --root=$DESTDIR gdata
   99.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
   99.26  }
   99.27  
   99.28  genpkg_rules() {
   99.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*gdata-||p' $LOGS/$PACKAGE.log)
   99.30  	copy @std
   99.31 -	DEPENDS="python"
   99.32 +	py=${PACKAGE%%-*} # python/python3
   99.33 +	DEPENDS="$py"
   99.34  }
   100.1 --- a/python-genshi/receipt	Fri Sep 14 11:37:28 2018 +0300
   100.2 +++ b/python-genshi/receipt	Sat Sep 22 16:05:26 2018 +0300
   100.3 @@ -1,29 +1,25 @@
   100.4 -# SliTaz package receipt.
   100.5 +# SliTaz package receipt v2.
   100.6  
   100.7 +ORIGIN="Genshi"
   100.8  PACKAGE="python-genshi"
   100.9 -VERSION="0.7"
  100.10 -CATEGORY="development"
  100.11 -SHORT_DESC="Python toolkit for generation of output for the web."
  100.12 +VERSION="0.7.1"
  100.13 +CATEGORY="python"
  100.14 +SHORT_DESC="A toolkit for generation of output for the web"
  100.15  MAINTAINER="pascal.bellard@slitaz.org"
  100.16  LICENSE="BSD"
  100.17 -WEB_SITE="http://genshi.edgewall.org/"
  100.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  100.19 +HOST_ARCH="any"
  100.20  REPOLOGY="python:genshi"
  100.21  
  100.22 -SOURCE="Genshi"
  100.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  100.24 -WGET_URL="http://ftp.edgewall.com/pub/genshi/$TARBALL"
  100.25 +BUILD_DEPENDS="python python3"
  100.26 +SPLIT="${PACKAGE/python/python3}:3"
  100.27  
  100.28 -DEPENDS="python"
  100.29 -BUILD_DEPENDS="python python-dev"
  100.30 -
  100.31 -# Rules to configure and make the package.
  100.32 -compile_rules()
  100.33 -{
  100.34 -	python setup.py install --root=$DESTDIR
  100.35 +compile_rules() {
  100.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  100.37  }
  100.38  
  100.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  100.40 -genpkg_rules()
  100.41 -{
  100.42 -	cp -a $install/usr $fs
  100.43 +genpkg_rules() {
  100.44 +	copy @std
  100.45 +	py=${PACKAGE%%-*} # python/python3
  100.46 +	DEPENDS="$py"
  100.47  }
   101.1 --- a/python-geojson/receipt	Fri Sep 14 11:37:28 2018 +0300
   101.2 +++ b/python-geojson/receipt	Sat Sep 22 16:05:26 2018 +0300
   101.3 @@ -1,30 +1,25 @@
   101.4 -# SliTaz package receipt.
   101.5 +# SliTaz package receipt v2.
   101.6  
   101.7 +ORIGIN="geojson"
   101.8  PACKAGE="python-geojson"
   101.9 -VERSION="1.0"
  101.10 -CATEGORY="development"
  101.11 -SHORT_DESC="Encoder/decoder for simple GIS features."
  101.12 +VERSION="2.4.0"
  101.13 +CATEGORY="python"
  101.14 +SHORT_DESC="Python bindings and utilities for GeoJSON"
  101.15  MAINTAINER="pascal.bellard@slitaz.org"
  101.16  LICENSE="BSD"
  101.17 -WEB_SITE="https://pypi.org/project/geojson/"
  101.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  101.19 +HOST_ARCH="any"
  101.20  REPOLOGY="python:geojson"
  101.21  
  101.22 -SOURCE="geojson"
  101.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  101.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  101.25 +BUILD_DEPENDS="python python3"
  101.26 +SPLIT="${PACKAGE/python/python3}:3"
  101.27  
  101.28 -DEPENDS="python"
  101.29 -BUILD_DEPENDS="python"
  101.30 -
  101.31 -# Rules to configure and make the package.
  101.32 -compile_rules()
  101.33 -{
  101.34 -	python setup.py install --root=$DESTDIR
  101.35 +compile_rules() {
  101.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  101.37  }
  101.38  
  101.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  101.40 -genpkg_rules()
  101.41 -{
  101.42 -	cp -a $install/usr $fs
  101.43 +genpkg_rules() {
  101.44 +	copy @std
  101.45 +	py=${PACKAGE%%-*} # python/python3
  101.46 +	DEPENDS="$py"
  101.47  }
  101.48 -
   102.1 --- a/python-gevent-psycopg2/receipt	Fri Sep 14 11:37:28 2018 +0300
   102.2 +++ b/python-gevent-psycopg2/receipt	Sat Sep 22 16:05:26 2018 +0300
   102.3 @@ -1,28 +1,30 @@
   102.4  # SliTaz package receipt v2.
   102.5  
   102.6 +ORIGIN="gevent-psycopg2"
   102.7  PACKAGE="python-gevent-psycopg2"
   102.8  VERSION="0.0.3"
   102.9 -CATEGORY="development"
  102.10 +CATEGORY="python"
  102.11  SHORT_DESC="Patch psycopg2 to use gevent"
  102.12  MAINTAINER="pascal.bellard@slitaz.org"
  102.13  LICENSE="PublicDomain"
  102.14 -WEB_SITE="https://github.com/zacharyvoase/gevent-psycopg2"
  102.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  102.16 +HOST_ARCH="any"
  102.17  REPOLOGY="python:gevent-psycopg2"
  102.18  
  102.19 -SOURCE="gevent-psycopg2"
  102.20 -TARBALL="$SOURCE-$VERSION.tar.gz"
  102.21 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  102.22 +TARBALL="$ORIGIN-$VERSION.tar.gz"
  102.23 +WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL"
  102.24  
  102.25 -BUILD_DEPENDS="python-distribute python-dev python openssl"
  102.26 +BUILD_DEPENDS="python python-distribute"
  102.27  
  102.28  compile_rules() {
  102.29 +	# to fix: 'urllib2.HTTPError: HTTP Error 403: SSL is required'
  102.30  	sed -i 's|http:|https:|' distribute_setup.py
  102.31  
  102.32 -	python setup.py build &&
  102.33 -	python setup.py install --root=$DESTDIR
  102.34 +	# Python3 based compilation produce error
  102.35 +	python -B setup.py install --root=$install
  102.36  }
  102.37  
  102.38  genpkg_rules() {
  102.39  	copy @std
  102.40 -	DEPENDS="python-psycopg2 python-gevent"
  102.41 +	DEPENDS="python python-psycopg2 python-gevent"
  102.42  }
   103.1 --- a/python-gevent/receipt	Fri Sep 14 11:37:28 2018 +0300
   103.2 +++ b/python-gevent/receipt	Sat Sep 22 16:05:26 2018 +0300
   103.3 @@ -1,31 +1,25 @@
   103.4 -# SliTaz package receipt.
   103.5 +# SliTaz package receipt v2.
   103.6  
   103.7 +ORIGIN="gevent"
   103.8  PACKAGE="python-gevent"
   103.9 -VERSION="0.13.8"
  103.10 -CATEGORY="development"
  103.11 -SHORT_DESC="A coroutine-based Python networking library"
  103.12 +VERSION="1.3.6"
  103.13 +CATEGORY="python"
  103.14 +SHORT_DESC="Coroutine-based network library"
  103.15  MAINTAINER="pascal.bellard@slitaz.org"
  103.16  LICENSE="MIT"
  103.17 -WEB_SITE="http://www.gevent.org/"
  103.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  103.19 +#HOST_ARCH
  103.20  REPOLOGY="python:gevent"
  103.21  
  103.22 -SOURCE="gevent"
  103.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  103.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  103.25 +BUILD_DEPENDS="python python-greenlet  python3 python3-greenlet"
  103.26 +SPLIT="${PACKAGE/python/python3}:3"
  103.27  
  103.28 -DEPENDS="python"
  103.29 -BUILD_DEPENDS="wget python-dev python libevent-dev"
  103.30 -
  103.31 -# Rules to configure and make the package.
  103.32 -compile_rules()
  103.33 -{
  103.34 -	python setup.py build &&
  103.35 -	python setup.py install --root=$DESTDIR
  103.36 +compile_rules() {
  103.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  103.38  }
  103.39  
  103.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  103.41 -genpkg_rules()
  103.42 -{
  103.43 -	mkdir -p $fs
  103.44 -	cp -a $install/usr $fs
  103.45 +genpkg_rules() {
  103.46 +	copy @std @dev
  103.47 +	py=${PACKAGE%%-*} # python/python3
  103.48 +	DEPENDS="$py $py-greenlet"
  103.49  }
   104.1 --- a/python-greenlet/receipt	Fri Sep 14 11:37:28 2018 +0300
   104.2 +++ b/python-greenlet/receipt	Sat Sep 22 16:05:26 2018 +0300
   104.3 @@ -1,22 +1,25 @@
   104.4  # SliTaz package receipt v2.
   104.5  
   104.6 +ORIGIN="greenlet"
   104.7  PACKAGE="python-greenlet"
   104.8 -VERSION="latest"
   104.9 +VERSION="0.4.15"
  104.10  CATEGORY="development"
  104.11  SHORT_DESC="Lightweight in-process concurrent programming"
  104.12  MAINTAINER="al.bobylev@gmail.com"
  104.13  LICENSE="MIT"
  104.14 -WEB_SITE="https://pypi.org/project/greenlet/"
  104.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  104.16 +#HOST_ARCH
  104.17  REPOLOGY="python:greenlet"
  104.18  
  104.19 -BUILD_DEPENDS="python-dev"
  104.20 +BUILD_DEPENDS="python python3"
  104.21 +SPLIT="${PACKAGE/python/python3}:3"
  104.22  
  104.23  compile_rules() {
  104.24 -	pip install --no-compile --root=$DESTDIR greenlet
  104.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  104.26  }
  104.27  
  104.28  genpkg_rules() {
  104.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*greenlet-||p' $LOGS/$PACKAGE.log)
  104.30  	copy @std @dev
  104.31 -	DEPENDS="python"
  104.32 +	py="${PACKAGE%%-*}" # python/python3
  104.33 +	DEPENDS="$py"
  104.34  }
   105.1 --- a/python-hg-git/receipt	Fri Sep 14 11:37:28 2018 +0300
   105.2 +++ b/python-hg-git/receipt	Sat Sep 22 16:05:26 2018 +0300
   105.3 @@ -1,23 +1,25 @@
   105.4  # SliTaz package receipt v2.
   105.5  
   105.6 +ORIGIN="hg-git"
   105.7  PACKAGE="python-hg-git"
   105.8 -VERSION="latest"
   105.9 +VERSION="0.8.11"
  105.10  CATEGORY="misc"
  105.11  SHORT_DESC="Git plugin for Mercurial"
  105.12  MAINTAINER="pascal.bellard@slitaz.org"
  105.13  LICENSE="GPL2"
  105.14 -WEB_SITE="https://pypi.org/project/hg-git/"
  105.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  105.16  HOST_ARCH="any"
  105.17  REPOLOGY="python:hg-git"
  105.18  
  105.19 -BUILD_DEPENDS="python-dev python-dulwich"
  105.20 +BUILD_DEPENDS="python python-dulwich  python3 python3-dulwich"
  105.21 +SPLIT="${PACKAGE/python/python3}:3"
  105.22  
  105.23  compile_rules() {
  105.24 -	pip install --no-compile --root=$DESTDIR hg-git
  105.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  105.26  }
  105.27  
  105.28  genpkg_rules() {
  105.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*hg-git-||p' $LOGS/$PACKAGE.log)
  105.30  	copy @std
  105.31 -	DEPENDS="mercurial python-dulwich python"
  105.32 +	py="${PACKAGE%%-*}" # python/python3
  105.33 +	DEPENDS="$py $py-dulwich   mercurial"
  105.34  }
   106.1 --- a/python-html2text/receipt	Fri Sep 14 11:37:28 2018 +0300
   106.2 +++ b/python-html2text/receipt	Sat Sep 22 16:05:26 2018 +0300
   106.3 @@ -1,32 +1,25 @@
   106.4 -# SliTaz package receipt.
   106.5 +# SliTaz package receipt v2.
   106.6  
   106.7 +ORIGIN="html2text"
   106.8  PACKAGE="python-html2text"
   106.9 -VERSION="3.200.3"
  106.10 +VERSION="2018.1.9"
  106.11  CATEGORY="network"
  106.12 -SHORT_DESC="Converts a page of HTML into clean, easy-to-read plain ASCII text."
  106.13 +SHORT_DESC="Turn HTML into equivalent Markdown-structured text"
  106.14  MAINTAINER="pankso@slitaz.org"
  106.15  LICENSE="GPL3"
  106.16 -WEB_SITE="http://www.aaronsw.com/2002/html2text/"
  106.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  106.18 +HOST_ARCH="any"
  106.19  REPOLOGY="python:html2text"
  106.20  
  106.21 -SOURCE="html2text"
  106.22 -TARBALL="${SOURCE}-${VERSION}.tar.gz"
  106.23 -WGET_URL="https://files.pythonhosted.org/packages/source/h/html2text/$TARBALL"
  106.24 +BUILD_DEPENDS="python python3"
  106.25 +SPLIT="${PACKAGE/python/python3}:3"
  106.26  
  106.27 -DEPENDS="python"
  106.28 -BUILD_DEPENDS="python-dev python-distribute"
  106.29 -
  106.30 -# Rules to configure and make the package.
  106.31 -compile_rules()
  106.32 -{
  106.33 -	python setup.py install --root="$DESTDIR" --optimize=1
  106.34 +compile_rules() {
  106.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  106.36  }
  106.37  
  106.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  106.39 -genpkg_rules()
  106.40 -{
  106.41 -	mkdir -p $fs/usr
  106.42 -	cp -a $install/usr/lib $fs/usr
  106.43 -	cp -a $install/usr/bin $fs/usr
  106.44 +genpkg_rules() {
  106.45 +	copy @std
  106.46 +	py="${PACKAGE%%-*}" # python/python3
  106.47 +	DEPENDS="$py"
  106.48  }
  106.49 -
   107.1 --- a/python-html5lib/receipt	Fri Sep 14 11:37:28 2018 +0300
   107.2 +++ b/python-html5lib/receipt	Sat Sep 22 16:05:26 2018 +0300
   107.3 @@ -1,28 +1,26 @@
   107.4 -# SliTaz package receipt.
   107.5 +# SliTaz package receipt v2.
   107.6  
   107.7 +ORIGIN="html5lib"
   107.8  PACKAGE="python-html5lib"
   107.9 -VERSION="0.95"
  107.10 -CATEGORY="development"
  107.11 -SHORT_DESC="Standarts-compliant library for parsing HTML documents in Python."
  107.12 +VERSION="1.0.1"
  107.13 +CATEGORY="python"
  107.14 +SHORT_DESC="HTML parser based on the WHATWG HTML specification"
  107.15  MAINTAINER="claudinei@slitaz.org"
  107.16  LICENSE="MIT"
  107.17 -WEB_SITE="https://github.com/html5lib/html5lib-python"
  107.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  107.19 +HOST_ARCH="any"
  107.20  REPOLOGY="python:html5lib"
  107.21  
  107.22 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  107.23 -WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
  107.24 +BUILD_DEPENDS="python python-webencodings python-six \
  107.25 +python3 python3-webencodings python3-six"
  107.26 +SPLIT="${PACKAGE/python/python3}:3"
  107.27  
  107.28 -DEPENDS="python python-six"
  107.29 -BUILD_DEPENDS="python-dev"
  107.30 -
  107.31 -# Rules to configure and make the package.
  107.32 -compile_rules()
  107.33 -{
  107.34 -	python setup.py install --root=$DESTDIR
  107.35 +compile_rules() {
  107.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  107.37  }
  107.38  
  107.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  107.40 -genpkg_rules()
  107.41 -{
  107.42 -	cp -a $install/usr $fs
  107.43 +genpkg_rules() {
  107.44 +	copy @std
  107.45 +	py="${PACKAGE%%-*}" # python/python3
  107.46 +	DEPENDS="$py $py-webencodings $py-six"
  107.47  }
   108.1 --- a/python-http-parser/receipt	Fri Sep 14 11:37:28 2018 +0300
   108.2 +++ b/python-http-parser/receipt	Sat Sep 22 16:05:26 2018 +0300
   108.3 @@ -1,30 +1,25 @@
   108.4 -# SliTaz package receipt.
   108.5 +# SliTaz package receipt v2.
   108.6  
   108.7 +ORIGIN="http-parser"
   108.8  PACKAGE="python-http-parser"
   108.9 -VERSION="0.8.1"
  108.10 -CATEGORY="development"
  108.11 -SHORT_DESC="HTTP request/response parser for python in C"
  108.12 +VERSION="0.8.3"
  108.13 +CATEGORY="python"
  108.14 +SHORT_DESC="HTTP request/response parser"
  108.15  MAINTAINER="claudinei@slitaz.org"
  108.16  LICENSE="MIT"
  108.17 -WEB_SITE="https://github.com/benoitc/http-parser/"
  108.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  108.19 +#HOST_ARCH
  108.20  REPOLOGY="python:http-parser"
  108.21  
  108.22 -SOURCE="http-parser"
  108.23 -TARBALL="$SOURCE-$VERSION.zip"
  108.24 -WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
  108.25 +BUILD_DEPENDS="python-dev python3-dev"
  108.26 +SPLIT="${PACKAGE/python/python3}:3"
  108.27  
  108.28 -DEPENDS="python"
  108.29 -BUILD_DEPENDS="python-dev python-cython"
  108.30 -
  108.31 -# Rules to configure and make the package.
  108.32 -compile_rules()
  108.33 -{
  108.34 -	python setup.py install --root=$DESTDIR
  108.35 +compile_rules() {
  108.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  108.37  }
  108.38  
  108.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  108.40 -genpkg_rules()
  108.41 -{
  108.42 -	mkdir -p $fs/usr
  108.43 -	cp -a $install/usr $fs
  108.44 +genpkg_rules() {
  108.45 +	copy @std
  108.46 +	py="${PACKAGE%%-*}" # python/python3
  108.47 +	DEPENDS="$py"
  108.48  }
   109.1 --- a/python-httplib2/receipt	Fri Sep 14 11:37:28 2018 +0300
   109.2 +++ b/python-httplib2/receipt	Sat Sep 22 16:05:26 2018 +0300
   109.3 @@ -1,29 +1,25 @@
   109.4 -# SliTaz package receipt.
   109.5 +# SliTaz package receipt v2.
   109.6  
   109.7 +ORIGIN="httplib2"
   109.8  PACKAGE="python-httplib2"
   109.9 -VERSION="0.8"
  109.10 -CATEGORY="development"
  109.11 +VERSION="0.11.3"
  109.12 +CATEGORY="python"
  109.13  SHORT_DESC="A comprehensive HTTP client library for python"
  109.14  MAINTAINER="claudinei@slitaz.org"
  109.15  LICENSE="MIT"
  109.16 -WEB_SITE="https://pypi.org/project/httplib2/"
  109.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  109.18 +HOST_ARCH="any"
  109.19  REPOLOGY="python:httplib2"
  109.20  
  109.21 -SOURCE="httplib2"
  109.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  109.23 -WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL" # FIXME
  109.24 +BUILD_DEPENDS="python-dev python3-dev"
  109.25 +SPLIT="${PACKAGE/python/python3}:3"
  109.26  
  109.27 -DEPENDS="python"
  109.28 -BUILD_DEPENDS="python-dev"
  109.29 -
  109.30 -# Rules to configure and make the package.
  109.31 -compile_rules()
  109.32 -{
  109.33 -	python setup.py install --root=$DESTDIR
  109.34 +compile_rules() {
  109.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  109.36  }
  109.37  
  109.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  109.39 -genpkg_rules()
  109.40 -{
  109.41 -	cp -a $install/usr $fs
  109.42 +genpkg_rules() {
  109.43 +	copy @std
  109.44 +	py="${PACKAGE%%-*}" # python/python3
  109.45 +	DEPENDS="$py"
  109.46  }
   110.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   110.2 +++ b/python-hyperlink/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   110.3 @@ -0,0 +1,1 @@
   110.4 +../python/.icon.png
   110.5 \ No newline at end of file
   111.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   111.2 +++ b/python-hyperlink/receipt	Sat Sep 22 16:05:26 2018 +0300
   111.3 @@ -0,0 +1,25 @@
   111.4 +# SliTaz package receipt v2.
   111.5 +
   111.6 +ORIGIN="hyperlink"
   111.7 +PACKAGE="python-hyperlink"
   111.8 +VERSION="18.0.0"
   111.9 +CATEGORY="python"
  111.10 +SHORT_DESC="A featureful, immutable, and correct URL for Python"
  111.11 +MAINTAINER="al.bobylev@gmail.com"
  111.12 +LICENSE="MIT"
  111.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  111.14 +HOST_ARCH="any"
  111.15 +REPOLOGY="python:hyperlink"
  111.16 +
  111.17 +BUILD_DEPENDS="python python-idna  python3 python3-idna"
  111.18 +SPLIT="${PACKAGE/python/python3}:3"
  111.19 +
  111.20 +compile_rules() {
  111.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  111.22 +}
  111.23 +
  111.24 +genpkg_rules() {
  111.25 +	copy @std
  111.26 +	py=${PACKAGE%%-*} # python/python3
  111.27 +	DEPENDS="$py $py-idna"
  111.28 +}
   112.1 --- a/python-idna/receipt	Fri Sep 14 11:37:28 2018 +0300
   112.2 +++ b/python-idna/receipt	Sat Sep 22 16:05:26 2018 +0300
   112.3 @@ -1,22 +1,25 @@
   112.4  # SliTaz package receipt v2.
   112.5  
   112.6 +ORIGIN="idna"
   112.7  PACKAGE="python-idna"
   112.8 -VERSION="latest"
   112.9 +VERSION="2.7"
  112.10  CATEGORY="network"
  112.11  SHORT_DESC="Internationalized Domain Names in Applications"
  112.12  MAINTAINER="al.bobylev@gmail.com"
  112.13  LICENSE="BSD"
  112.14 -WEB_SITE="https://pypi.org/project/idna/"
  112.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  112.16 +HOST_ARCH="any"
  112.17  REPOLOGY="python:idna"
  112.18  
  112.19 -BUILD_DEPENDS="python"
  112.20 +BUILD_DEPENDS="python python3"
  112.21 +SPLIT="${PACKAGE/python/python3}:3"
  112.22  
  112.23  compile_rules() {
  112.24 -	pip install --no-compile --root=$DESTDIR idna
  112.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  112.26  }
  112.27  
  112.28  genpkg_rules() {
  112.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*idna-||p' $LOGS/$PACKAGE.log)
  112.30  	copy @std
  112.31 -	DEPENDS="python"
  112.32 +	py="${PACKAGE%%-*}" # python/python3
  112.33 +	DEPENDS="$py"
  112.34  }
   113.1 --- a/python-imagesize/receipt	Fri Sep 14 11:37:28 2018 +0300
   113.2 +++ b/python-imagesize/receipt	Sat Sep 22 16:05:26 2018 +0300
   113.3 @@ -1,22 +1,25 @@
   113.4  # SliTaz package receipt v2.
   113.5  
   113.6 +ORIGIN="imagesize"
   113.7  PACKAGE="python-imagesize"
   113.8 -VERSION="latest"
   113.9 +VERSION="1.1.0"
  113.10  CATEGORY="python"
  113.11  SHORT_DESC="Getting image size from png/jpeg/jpeg2000/gif file"
  113.12  MAINTAINER="al.bobylev@gmail.com"
  113.13  LICENSE="MIT"
  113.14 -WEB_SITE="https://pypi.org/project/imagesize/"
  113.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  113.16 +HOST_ARCH="any"
  113.17  REPOLOGY="python:imagesize"
  113.18  
  113.19 -BUILD_DEPENDS="python"
  113.20 +BUILD_DEPENDS="python python3"
  113.21 +SPLIT="${PACKAGE/python/python3}:3"
  113.22  
  113.23  compile_rules() {
  113.24 -	pip install --no-compile --root=$DESTDIR imagesize
  113.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  113.26  }
  113.27  
  113.28  genpkg_rules() {
  113.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*imagesize-||p' $LOGS/$PACKAGE.log)
  113.30  	copy @std
  113.31 -	DEPENDS="python"
  113.32 +	py="${PACKAGE%%-*}" # python/python3
  113.33 +	DEPENDS="$py"
  113.34  }
   114.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   114.2 +++ b/python-incremental/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   114.3 @@ -0,0 +1,1 @@
   114.4 +../python/.icon.png
   114.5 \ No newline at end of file
   115.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   115.2 +++ b/python-incremental/receipt	Sat Sep 22 16:05:26 2018 +0300
   115.3 @@ -0,0 +1,25 @@
   115.4 +# SliTaz package receipt v2.
   115.5 +
   115.6 +ORIGIN="incremental"
   115.7 +PACKAGE="python-incremental"
   115.8 +VERSION="17.5.0"
   115.9 +CATEGORY="python"
  115.10 +SHORT_DESC="Version Python projects"
  115.11 +MAINTAINER="al.bobylev@gmail.com"
  115.12 +LICENSE="MIT"
  115.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  115.14 +HOST_ARCH="any"
  115.15 +REPOLOGY="python:incremental"
  115.16 +
  115.17 +BUILD_DEPENDS="python python3"
  115.18 +SPLIT="${PACKAGE/python/python3}:3"
  115.19 +
  115.20 +compile_rules() {
  115.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  115.22 +}
  115.23 +
  115.24 +genpkg_rules() {
  115.25 +	copy @std
  115.26 +	py=${PACKAGE%%-*} # python/python3
  115.27 +	DEPENDS="$py"
  115.28 +}
   116.1 --- a/python-ipaddr/receipt	Fri Sep 14 11:37:28 2018 +0300
   116.2 +++ b/python-ipaddr/receipt	Sat Sep 22 16:05:26 2018 +0300
   116.3 @@ -1,22 +1,25 @@
   116.4  # SliTaz package receipt v2.
   116.5  
   116.6 +ORIGIN="ipaddr"
   116.7  PACKAGE="python-ipaddr"
   116.8 -VERSION="latest"
   116.9 +VERSION="2.2.0"
  116.10  CATEGORY="python"
  116.11  SHORT_DESC="Google's Python IP address manipulation library"
  116.12  MAINTAINER="al.bobylev@gmail.com"
  116.13  LICENSE="Apache"
  116.14 -WEB_SITE="https://pypi.org/project/ipaddr/"
  116.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  116.16 +HOST_ARCH="any"
  116.17  REPOLOGY="python:ipaddr"
  116.18  
  116.19 -BUILD_DEPENDS="python"
  116.20 +BUILD_DEPENDS="python python3"
  116.21 +SPLIT="${PACKAGE/python/python3}:3"
  116.22  
  116.23  compile_rules() {
  116.24 -	pip install --no-compile --root=$DESTDIR ipaddr
  116.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  116.26  }
  116.27  
  116.28  genpkg_rules() {
  116.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*ipaddr-||p' $LOGS/$PACKAGE.log)
  116.30  	copy @std
  116.31 -	DEPENDS="python"
  116.32 +	py=${PACKAGE%%-*} # python/python3
  116.33 +	DEPENDS="$py"
  116.34  }
   117.1 --- a/python-ipaddress/receipt	Fri Sep 14 11:37:28 2018 +0300
   117.2 +++ b/python-ipaddress/receipt	Sat Sep 22 16:05:26 2018 +0300
   117.3 @@ -1,23 +1,25 @@
   117.4  # SliTaz package receipt v2.
   117.5  
   117.6 +ORIGIN="ipaddress"
   117.7  PACKAGE="python-ipaddress"
   117.8 -VERSION="latest"
   117.9 +VERSION="1.0.22"
  117.10  CATEGORY="python"
  117.11  SHORT_DESC="IPv4/IPv6 manipulation library"
  117.12  MAINTAINER="al.bobylev@gmail.com"
  117.13  LICENSE="PSFL"
  117.14 -WEB_SITE="https://pypi.org/project/ipaddress/"
  117.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  117.16  HOST_ARCH="any"
  117.17  REPOLOGY="python:ipaddress"
  117.18  
  117.19 -BUILD_DEPENDS="python"
  117.20 +BUILD_DEPENDS="python python3"
  117.21 +SPLIT="${PACKAGE/python/python3}:3"
  117.22  
  117.23  compile_rules() {
  117.24 -	pip install --no-compile --root=$DESTDIR ipaddress
  117.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  117.26  }
  117.27  
  117.28  genpkg_rules() {
  117.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*ipaddress-||p' $LOGS/$PACKAGE.log)
  117.30  	copy @std
  117.31 -	DEPENDS="python"
  117.32 +	py=${PACKAGE%%-*} # python/python3
  117.33 +	DEPENDS="$py"
  117.34  }
   118.1 --- a/python-ipy/receipt	Fri Sep 14 11:37:28 2018 +0300
   118.2 +++ b/python-ipy/receipt	Sat Sep 22 16:05:26 2018 +0300
   118.3 @@ -1,32 +1,25 @@
   118.4 -# SliTaz package receipt.
   118.5 +# SliTaz package receipt v2.
   118.6  
   118.7 +ORIGIN="IPy"
   118.8  PACKAGE="python-ipy"
   118.9 -VERSION="0.63"
  118.10 -CATEGORY="development"
  118.11 -SHORT_DESC="Python class and tools for IPv4 and IPv6 addresses and networks."
  118.12 +VERSION="0.83"
  118.13 +CATEGORY="python"
  118.14 +SHORT_DESC="Class and tools for handling of IPv4 and IPv6 addresses and networks"
  118.15  MAINTAINER="pascal.bellard@slitaz.org"
  118.16  LICENSE="BSD"
  118.17 -WEB_SITE="http://software.inl.fr/trac/wiki/IPy"
  118.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  118.19 +HOST_ARCH="any"
  118.20  REPOLOGY="python:ipy"
  118.21  
  118.22 -SOURCE="IPy"
  118.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  118.24 -WGET_URL="https://files.pythonhosted.org/packages/source/I/$SOURCE/$TARBALL"
  118.25 +BUILD_DEPENDS="python python3"
  118.26 +SPLIT="${PACKAGE/python/python3}:3"
  118.27  
  118.28 -DEPENDS="python"
  118.29 -BUILD_DEPENDS="python"
  118.30 -
  118.31 -# Rules to configure and make the package.
  118.32 -compile_rules()
  118.33 -{
  118.34 -	python setup.py build
  118.35 -	python setup.py install --root=$DESTDIR
  118.36 +compile_rules() {
  118.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  118.38  }
  118.39  
  118.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  118.41 -genpkg_rules()
  118.42 -{
  118.43 -	mkdir -p $fs/usr
  118.44 -	cp -a $install/usr/lib $fs/usr
  118.45 +genpkg_rules() {
  118.46 +	copy @std
  118.47 +	py=${PACKAGE%%-*} # python/python3
  118.48 +	DEPENDS="$py"
  118.49  }
  118.50 -
   119.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   119.2 +++ b/python-jaraco.functools/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   119.3 @@ -0,0 +1,1 @@
   119.4 +../python/.icon.png
   119.5 \ No newline at end of file
   120.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   120.2 +++ b/python-jaraco.functools/receipt	Sat Sep 22 16:05:26 2018 +0300
   120.3 @@ -0,0 +1,31 @@
   120.4 +# SliTaz package receipt v2.
   120.5 +
   120.6 +ORIGIN="jaraco.functools"
   120.7 +PACKAGE="python-jaraco.functools"
   120.8 +VERSION="1.20"
   120.9 +CATEGORY="python"
  120.10 +SHORT_DESC="Additional functools in the spirit of stdlib’s functools"
  120.11 +MAINTAINER="al.bobylev@gmail.com"
  120.12 +LICENSE="MIT"
  120.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  120.14 +HOST_ARCH="any"
  120.15 +REPOLOGY="python:jaraco.functools"
  120.16 +
  120.17 +BUILD_DEPENDS="python python-backports.functools-lru-cache \
  120.18 +python-more-itertools \
  120.19 +python3 python3-more-itertools"
  120.20 +SPLIT="${PACKAGE/python/python3}:3"
  120.21 +
  120.22 +compile_rules() {
  120.23 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  120.24 +}
  120.25 +
  120.26 +genpkg_rules() {
  120.27 +	copy @std
  120.28 +	py="${PACKAGE%%-*}" # python/python3
  120.29 +	case $PACKAGE in
  120.30 +		python-*)  DEPENDS="$py $py-backports.functools-lru-cache \
  120.31 +			$py-more-itertools";;
  120.32 +		python3-*) DEPENDS="$py $py-more-itertools";;
  120.33 +	esac
  120.34 +}
   121.1 --- a/python-jcconv/receipt	Fri Sep 14 11:37:28 2018 +0300
   121.2 +++ b/python-jcconv/receipt	Sat Sep 22 16:05:26 2018 +0300
   121.3 @@ -1,29 +1,24 @@
   121.4 -# SliTaz package receipt.
   121.5 +# SliTaz package receipt v2.
   121.6  
   121.7 +ORIGIN="jcconv"
   121.8  PACKAGE="python-jcconv"
   121.9 -VERSION="0.1.6"
  121.10 -CATEGORY="development"
  121.11 -SHORT_DESC="Python Japanese Characters CONVerter."
  121.12 +VERSION="0.2.3"
  121.13 +CATEGORY="python"
  121.14 +SHORT_DESC="Python Japanese Characters CONVerter"
  121.15  MAINTAINER="pascal.bellard@slitaz.org"
  121.16  LICENSE="MIT"
  121.17 -WEB_SITE="https://pypi.org/project/jcconv/"
  121.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  121.19 +HOST_ARCH="any"
  121.20  REPOLOGY="python:jcconv"
  121.21  
  121.22 -SOURCE="jcconv"
  121.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  121.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  121.25 -
  121.26 -DEPENDS="python"
  121.27  BUILD_DEPENDS="python"
  121.28  
  121.29 -# Rules to configure and make the package.
  121.30 -compile_rules()
  121.31 -{
  121.32 -	python setup.py install --root=$DESTDIR
  121.33 +compile_rules() {
  121.34 +	# Python3 based compilation produce error
  121.35 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  121.36  }
  121.37  
  121.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  121.39 -genpkg_rules()
  121.40 -{
  121.41 -	cp -a $install/usr $fs
  121.42 +genpkg_rules() {
  121.43 +	copy @std
  121.44 +	DEPENDS="python"
  121.45  }
   122.1 --- a/python-jedi/receipt	Fri Sep 14 11:37:28 2018 +0300
   122.2 +++ b/python-jedi/receipt	Sat Sep 22 16:05:26 2018 +0300
   122.3 @@ -1,30 +1,25 @@
   122.4 -# SliTaz package receipt.
   122.5 +# SliTaz package receipt v2.
   122.6  
   122.7 +ORIGIN="jedi"
   122.8  PACKAGE="python-jedi"
   122.9 -VERSION="0.9.0"
  122.10 -CATEGORY="development"
  122.11 -SHORT_DESC="An autocompletion tool for Python that can be used for text editors."
  122.12 +VERSION="0.12.1"
  122.13 +CATEGORY="python"
  122.14 +SHORT_DESC="An autocompletion tool for Python that can be used for text editors"
  122.15  MAINTAINER="paul@slitaz.org"
  122.16  LICENSE="MIT"
  122.17 -WEB_SITE="https://pypi.org/project/jedi/"
  122.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  122.19 +HOST_ARCH="any"
  122.20  REPOLOGY="python:jedi"
  122.21  
  122.22 -SOURCE="jedi"
  122.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  122.24 -WGET_URL="https://files.pythonhosted.org/packages/source/j/$SOURCE/$TARBALL"
  122.25 +BUILD_DEPENDS="python python-parso  python3 python3-parso"
  122.26 +SPLIT="${PACKAGE/python/python3}:3"
  122.27  
  122.28 -DEPENDS="python"
  122.29 -BUILD_DEPENDS="python-dev"
  122.30 -
  122.31 -# Rules to configure and make the package.
  122.32 -compile_rules()
  122.33 -{
  122.34 -	python setup.py install --root=$DESTDIR
  122.35 +compile_rules() {
  122.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  122.37  }
  122.38  
  122.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  122.40 -genpkg_rules()
  122.41 -{
  122.42 -	cp -a $install/usr $fs
  122.43 +genpkg_rules() {
  122.44 +	copy @std
  122.45 +	py=${PACKAGE%%-*} # python/python3
  122.46 +	DEPENDS="$py $py-parso"
  122.47  }
  122.48 -
   123.1 --- a/python-jinja2/receipt	Fri Sep 14 11:37:28 2018 +0300
   123.2 +++ b/python-jinja2/receipt	Sat Sep 22 16:05:26 2018 +0300
   123.3 @@ -1,22 +1,25 @@
   123.4  # SliTaz package receipt v2.
   123.5  
   123.6 +ORIGIN=Jinja2
   123.7  PACKAGE="python-jinja2"
   123.8 -VERSION="latest"
   123.9 +VERSION="2.10"
  123.10  CATEGORY="python"
  123.11  SHORT_DESC="Stand-alone template engine"
  123.12  MAINTAINER="claudinei@slitaz.org"
  123.13  LICENSE="BSD"
  123.14 -WEB_SITE="http://jinja.pocoo.org"
  123.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  123.16 +HOST_ARCH="any"
  123.17  REPOLOGY="python:jinja2"
  123.18  
  123.19 -BUILD_DEPENDS="python-markupsafe"
  123.20 +BUILD_DEPENDS="python python-markupsafe  python3 python3-markupsafe"
  123.21 +SPLIT="${PACKAGE/python/python3}:3"
  123.22  
  123.23  compile_rules() {
  123.24 -	pip install --no-compile --root=$DESTDIR Jinja2
  123.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  123.26  }
  123.27  
  123.28  genpkg_rules() {
  123.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*Jinja2-||p' $LOGS/$PACKAGE.log)
  123.30  	copy @std
  123.31 -	DEPENDS="python-markupsafe"
  123.32 +	py=${PACKAGE%%-*} # python/python3
  123.33 +	DEPENDS="$py $py-markupsafe"
  123.34  }
   124.1 --- a/python-kid/receipt	Fri Sep 14 11:37:28 2018 +0300
   124.2 +++ b/python-kid/receipt	Sat Sep 22 16:05:26 2018 +0300
   124.3 @@ -1,31 +1,24 @@
   124.4 -# SliTaz package receipt.
   124.5 +# SliTaz package receipt v2.
   124.6  
   124.7 +ORIGIN="kid"
   124.8  PACKAGE="python-kid"
   124.9  VERSION="0.9.6"
  124.10 -CATEGORY="development"
  124.11 -SHORT_DESC="Pythonic, XML-based Templating."
  124.12 +CATEGORY="python"
  124.13 +SHORT_DESC="A simple and pythonic XML template language"
  124.14  MAINTAINER="pankso@slitaz.org"
  124.15  LICENSE="MIT"
  124.16 -WEB_SITE="https://pypi.org/project/kid/"
  124.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  124.18 +HOST_ARCH="any"
  124.19  REPOLOGY="python:kid"
  124.20  
  124.21 -SOURCE="kid"
  124.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  124.23 -WGET_URL="https://files.pythonhosted.org/packages/source/k/kid/$TARBALL"
  124.24 -TAGS="python"
  124.25 +BUILD_DEPENDS="python"
  124.26  
  124.27 -DEPENDS="python"
  124.28 -BUILD_DEPENDS="python python-dev"
  124.29 -
  124.30 -# Rules to configure and make the package.
  124.31 -compile_rules()
  124.32 -{
  124.33 -	python setup.py install --root=$DESTDIR
  124.34 +compile_rules() {
  124.35 +	# Python3 based compilation produce error
  124.36 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  124.37  }
  124.38  
  124.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  124.40 -genpkg_rules()
  124.41 -{
  124.42 -	cp -a $install/usr $fs
  124.43 +genpkg_rules() {
  124.44 +	copy @std
  124.45 +	DEPENDS="python"
  124.46  }
  124.47 -
   125.1 --- a/python-kiwi/receipt	Fri Sep 14 11:37:28 2018 +0300
   125.2 +++ b/python-kiwi/receipt	Sat Sep 22 16:05:26 2018 +0300
   125.3 @@ -1,31 +1,39 @@
   125.4 -# SliTaz package receipt.
   125.5 +# SliTaz package receipt v2.
   125.6  
   125.7 +ORIGIN="kiwi"
   125.8  PACKAGE="python-kiwi"
   125.9 -VERSION="1.9.29"
  125.10 -CATEGORY="development"
  125.11 -SHORT_DESC="A framework for python applications with graphical user interfaces."
  125.12 +VERSION="9.16.14"
  125.13 +CATEGORY="python"
  125.14 +SHORT_DESC="KIWI - Appliance Builder (next generation)"
  125.15  MAINTAINER="claudinei@slitaz.org"
  125.16  LICENSE="LGPL2.1"
  125.17 -WEB_SITE="https://github.com/stoq/kiwi"
  125.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  125.19 +#HOST_ARCH
  125.20  REPOLOGY="python:kiwi"
  125.21  
  125.22 -SOURCE="kiwi"
  125.23 -TARBALL="$SOURCE-$VERSION.tar.xz"
  125.24 -WGET_URL="https://download.gnome.org/sources/kiwi/${VERSION%.*}/$TARBALL"
  125.25 +TARBALL="$ORIGIN-$VERSION.tar.gz"
  125.26 +WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL"
  125.27  
  125.28 -DEPENDS="python gtk+ python-pygobject2 python-pygtk"
  125.29 -SUGGESTED="zopeinterface libglade"
  125.30 -BUILD_DEPENDS="python-dev gtk+-dev python-pygobject2-dev python-pygtk-dev"
  125.31 +BUILD_DEPENDS="python-dev python-docopt python-future python-lxml \
  125.32 +python-pyyaml python-requests python-six python-xattr \
  125.33 +python3-dev python3-docopt python3-future python3-lxml python3-pyyaml \
  125.34 +python3-requests python3-six python3-xattr"
  125.35 +SPLIT="${PACKAGE/python/python3}:3"
  125.36  
  125.37 -# Rules to configure and make the package.
  125.38 -compile_rules()
  125.39 -{
  125.40 -	python setup.py install --root=$DESTDIR
  125.41 +compile_rules() {
  125.42 +	#	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  125.43 +
  125.44 +	# pip failed because tools not compiled before installing,
  125.45 +	# so using `python ... build` and then `python ... install` to solve it.
  125.46 +	python$SET -B setup.py build &&
  125.47 +	python$SET -B setup.py install --root=$install
  125.48 +
  125.49 +	find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
  125.50  }
  125.51  
  125.52 -# Rules to gen a SliTaz package suitable for Tazpkg.
  125.53 -genpkg_rules()
  125.54 -{
  125.55 -	cp -a $install/usr $fs
  125.56 +genpkg_rules() {
  125.57 +	copy @std
  125.58 +	py=${PACKAGE%%-*} # python/python3
  125.59 +	DEPENDS="$py $py-docopt $py-future $py-lxml $py-pyyaml $py-requests \
  125.60 +	$py-six $py-xattr"
  125.61  }
  125.62 -
   126.1 --- a/python-ldap/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   126.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   126.3 @@ -1,1 +0,0 @@
   126.4 -../python/.icon.png
   126.5 \ No newline at end of file
   127.1 --- a/python-ldap/receipt	Fri Sep 14 11:37:28 2018 +0300
   127.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   127.3 @@ -1,30 +0,0 @@
   127.4 -# SliTaz package receipt.
   127.5 -
   127.6 -PACKAGE="python-ldap"
   127.7 -VERSION="2.4.9"
   127.8 -CATEGORY="development"
   127.9 -SHORT_DESC="An object-oriented API to access LDAP directory servers."
  127.10 -MAINTAINER="pascal.bellard@slitaz.org"
  127.11 -LICENSE="PSL"
  127.12 -WEB_SITE="http://www.python-ldap.org/"
  127.13 -REPOLOGY="python:ldap3"
  127.14 -
  127.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  127.16 -WGET_URL="https://files.pythonhosted.org/packages/source/p/$PACKAGE/$TARBALL"
  127.17 -
  127.18 -DEPENDS="openldap openssl cyrus-sasl python"
  127.19 -BUILD_DEPENDS="openldap-dev openssl-dev cyrus-sasl-dev python-dev"
  127.20 -
  127.21 -# Rules to configure and make the package.
  127.22 -compile_rules()
  127.23 -{
  127.24 -	python setup.py build
  127.25 -	python setup.py install --root=$DESTDIR
  127.26 -}
  127.27 -
  127.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
  127.29 -genpkg_rules()
  127.30 -{
  127.31 -	mkdir -p $fs/usr
  127.32 -	cp -a $install/usr/lib $fs/usr
  127.33 -}
   128.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   128.2 +++ b/python-ldap3/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   128.3 @@ -0,0 +1,1 @@
   128.4 +../python/.icon.png
   128.5 \ No newline at end of file
   129.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   129.2 +++ b/python-ldap3/receipt	Sat Sep 22 16:05:26 2018 +0300
   129.3 @@ -0,0 +1,26 @@
   129.4 +# SliTaz package receipt v2.
   129.5 +
   129.6 +ORIGIN="ldap3"
   129.7 +PACKAGE="python-ldap3"
   129.8 +VERSION="2.5.1"
   129.9 +CATEGORY="python"
  129.10 +SHORT_DESC="A strictly RFC 4510 conforming LDAP V3 pure Python client library"
  129.11 +MAINTAINER="pascal.bellard@slitaz.org"
  129.12 +LICENSE="GPL3"
  129.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  129.14 +HOST_ARCH="any"
  129.15 +REPOLOGY="python:ldap3"
  129.16 +
  129.17 +BUILD_DEPENDS="python python-pyasn1  python3 python3-pyasn1 \
  129.18 +openldap-dev openssl-dev cyrus-sasl-dev"
  129.19 +SPLIT="${PACKAGE/python/python3}:3"
  129.20 +
  129.21 +compile_rules() {
  129.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  129.23 +}
  129.24 +
  129.25 +genpkg_rules() {
  129.26 +	copy @std
  129.27 +	py=${PACKAGE%%-*} # python/python3
  129.28 +	DEPENDS="$py $py-pyasn1   openldap openssl cyrus-sasl"
  129.29 +}
   130.1 --- a/python-libvirt/receipt	Fri Sep 14 11:37:28 2018 +0300
   130.2 +++ b/python-libvirt/receipt	Sat Sep 22 16:05:26 2018 +0300
   130.3 @@ -1,25 +1,34 @@
   130.4  # SliTaz package receipt v2.
   130.5  
   130.6 +ORIGIN="libvirt-python"
   130.7  PACKAGE="python-libvirt"
   130.8 -VERSION="latest"
   130.9 +VERSION="4.7.0"
  130.10  CATEGORY="python"
  130.11  SHORT_DESC="Python bindings for libvirt"
  130.12  MAINTAINER="al.bobylev@gmail.com"
  130.13  LICENSE="GPL2 LGPL2.1"
  130.14 -WEB_SITE="https://pypi.org/project/libvirt-python/"
  130.15 +#WEB_SITE="https://pypi.org/project/$ORIGIN/" # not in hurry: 4.6.0
  130.16 +WEB_SITE="https://libvirt.org/"
  130.17 +#HOST_ARCH
  130.18  REPOLOGY="python:libvirt-python"
  130.19  
  130.20 -BUILD_DEPENDS="libvirt-dev python-dev"
  130.21 +TARBALL="$ORIGIN-$VERSION.tar.gz"
  130.22 +WGET_URL="https://libvirt.org/sources/python/$TARBALL"
  130.23 +
  130.24 +BUILD_DEPENDS="python-dev python3-dev libvirt-dev"
  130.25 +SPLIT="${PACKAGE/python/python3}:3"
  130.26  
  130.27  # Python packages name should start with "python-", but "python-libvirt-python"
  130.28  # is pretty ugly name, so strip it to "python-libvirt"
  130.29  
  130.30  compile_rules() {
  130.31 -	pip install --no-compile --root=$DESTDIR libvirt-python
  130.32 +#	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  130.33 +
  130.34 +	python$SET -B setup.py install --root=$install
  130.35  }
  130.36  
  130.37  genpkg_rules() {
  130.38 -	VERSION=$(sed -n '/^Successfully installed/ s|.*libvirt-python-||p' $LOGS/$PACKAGE.log)
  130.39  	copy @std
  130.40 -	DEPENDS="libvirt python"
  130.41 +	py=${PACKAGE%%-*} # python/python3
  130.42 +	DEPENDS="$py libvirt"
  130.43  }
   131.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   131.2 +++ b/python-linecache2/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   131.3 @@ -0,0 +1,1 @@
   131.4 +../python/.icon.png
   131.5 \ No newline at end of file
   132.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   132.2 +++ b/python-linecache2/receipt	Sat Sep 22 16:05:26 2018 +0300
   132.3 @@ -0,0 +1,25 @@
   132.4 +# SliTaz package receipt v2.
   132.5 +
   132.6 +ORIGIN="linecache2"
   132.7 +PACKAGE="python-linecache2"
   132.8 +VERSION="1.0.0"
   132.9 +CATEGORY="python"
  132.10 +SHORT_DESC="Backports of the traceback module"
  132.11 +MAINTAINER="al.bobylev@gmail.com"
  132.12 +LICENSE="PSFL"
  132.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  132.14 +HOST_ARCH="any"
  132.15 +REPOLOGY="python:linecache2"
  132.16 +
  132.17 +BUILD_DEPENDS="python python3"
  132.18 +SPLIT="${PACKAGE/python/python3}:3"
  132.19 +
  132.20 +compile_rules() {
  132.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  132.22 +}
  132.23 +
  132.24 +genpkg_rules() {
  132.25 +	copy @std
  132.26 +	py="${PACKAGE%%-*}" # python/python3
  132.27 +	DEPENDS="$py"
  132.28 +}
   133.1 --- a/python-llfuse/receipt	Fri Sep 14 11:37:28 2018 +0300
   133.2 +++ b/python-llfuse/receipt	Sat Sep 22 16:05:26 2018 +0300
   133.3 @@ -1,26 +1,29 @@
   133.4  # SliTaz package receipt v2.
   133.5  
   133.6 +ORIGIN="llfuse"
   133.7  PACKAGE="python-llfuse"
   133.8 -VERSION="1.3.2"
   133.9 -CATEGORY="development"
  133.10 +VERSION="1.3.5"
  133.11 +CATEGORY="python"
  133.12  SHORT_DESC="Python bindings for the low level FUSE API"
  133.13  MAINTAINER="pascal.bellard@slitaz.org"
  133.14  LICENSE="LGPL2"
  133.15 -WEB_SITE="https://github.com/python-llfuse/python-llfuse"
  133.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  133.17 +#HOST_ARCH
  133.18  REPOLOGY="python:llfuse"
  133.19  
  133.20 -SOURCE="llfuse"
  133.21 -TARBALL="llfuse-$VERSION.tar.bz2"
  133.22 -WGET_URL="https://bitbucket.org/nikratio/python-llfuse/downloads/$TARBALL"
  133.23 -
  133.24 -BUILD_DEPENDS="python-dev fuse2-dev attr-dev"
  133.25 +BUILD_DEPENDS="python-dev python-contextlib2  python3-dev \
  133.26 +fuse2-dev attr-dev"
  133.27 +SPLIT="${PACKAGE/python/python3}:3"
  133.28  
  133.29  compile_rules() {
  133.30 -	python setup.py build &&
  133.31 -	python setup.py install --root=$DESTDIR
  133.32 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  133.33  }
  133.34  
  133.35  genpkg_rules() {
  133.36  	copy @std
  133.37 -	DEPENDS="fuse2 python"
  133.38 +	py=${PACKAGE%%-*} # python/python3
  133.39 +	case $PACKAGE in
  133.40 +		python-*)  DEPENDS="$py $py-contextlib2 fuse2";;
  133.41 +		python3-*) DEPENDS="$py fuse2";;
  133.42 +	esac
  133.43  }
   134.1 --- a/python-lxml/receipt	Fri Sep 14 11:37:28 2018 +0300
   134.2 +++ b/python-lxml/receipt	Sat Sep 22 16:05:26 2018 +0300
   134.3 @@ -1,29 +1,34 @@
   134.4 -# SliTaz package receipt.
   134.5 +# SliTaz package receipt v2.
   134.6  
   134.7 +ORIGIN="lxml"
   134.8  PACKAGE="python-lxml"
   134.9 -VERSION="2.3"
  134.10 +VERSION="4.2.5"
  134.11  CATEGORY="development"
  134.12 -SHORT_DESC="Pythonic binding for the libxml2 and libxslt libraries.."
  134.13 +SHORT_DESC="Pythonic binding for the libxml2 and libxslt libraries"
  134.14  MAINTAINER="pascal.bellard@slitaz.org"
  134.15  LICENSE="BSD GPL PSL"
  134.16 -WEB_SITE="https://lxml.de/"
  134.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  134.18 +#HOST_ARCH=""
  134.19  REPOLOGY="python:lxml"
  134.20  
  134.21 -SOURCE="lxml"
  134.22 -TARBALL="$SOURCE-$VERSION.tgz"
  134.23 -WGET_URL="${WEB_SITE}${TARBALL}"
  134.24 +BUILD_DEPENDS="python python3 libxml2-dev libxslt-dev"
  134.25 +SPLIT="$PACKAGE-dev \
  134.26 +${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
  134.27  
  134.28 -DEPENDS="python libxml2 libxslt zlib"
  134.29 -BUILD_DEPENDS="python-dev libxml2 libxml2-dev libxslt libxslt-dev"
  134.30 -
  134.31 -# Rules to configure and make the package.
  134.32 -compile_rules()
  134.33 -{
  134.34 -	make && python setup.py install --root=$DESTDIR
  134.35 +compile_rules() {
  134.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  134.37  }
  134.38  
  134.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  134.40 -genpkg_rules()
  134.41 -{
  134.42 -	cp -a $install/usr $fs
  134.43 +genpkg_rules() {
  134.44 +	case $PACKAGE in
  134.45 +		*-dev)
  134.46 +			copy @dev
  134.47 +			DEPENDS="${PACKAGE%%-dev}"
  134.48 +			;;
  134.49 +		*)
  134.50 +			copy @std
  134.51 +			py="${PACKAGE%%-*}" # python/python3
  134.52 +			DEPENDS="$py libxml2 libxslt"
  134.53 +			;;
  134.54 +	esac
  134.55  }
   135.1 --- a/python-mako/receipt	Fri Sep 14 11:37:28 2018 +0300
   135.2 +++ b/python-mako/receipt	Sat Sep 22 16:05:26 2018 +0300
   135.3 @@ -1,30 +1,25 @@
   135.4 -# SliTaz package receipt.
   135.5 +# SliTaz package receipt v2.
   135.6  
   135.7 +ORIGIN="Mako"
   135.8  PACKAGE="python-mako"
   135.9 -VERSION="1.0.4"
  135.10 -CATEGORY="development"
  135.11 +VERSION="1.0.7"
  135.12 +CATEGORY="python"
  135.13  SHORT_DESC="Fast template library"
  135.14  MAINTAINER="taziden@slitaz.org"
  135.15  LICENSE="MIT"
  135.16 -WEB_SITE="http://www.makotemplates.org/"
  135.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  135.18 +HOST_ARCH="any"
  135.19  REPOLOGY="python:mako"
  135.20  
  135.21 -SOURCE="Mako"
  135.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  135.23 -WGET_URL="https://files.pythonhosted.org/packages/source/M/Mako/$TARBALL"
  135.24 -TAGS="python"
  135.25 +BUILD_DEPENDS="python python-markupsafe python3 python3-markupsafe"
  135.26 +SPLIT="${PACKAGE/python/python3}:3"
  135.27  
  135.28 -DEPENDS="python"
  135.29 -BUILD_DEPENDS="python python-dev"
  135.30 -
  135.31 -# Rules to configure and make the package.
  135.32 -compile_rules()
  135.33 -{
  135.34 -	python setup.py install --root=$DESTDIR
  135.35 +compile_rules() {
  135.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  135.37  }
  135.38  
  135.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  135.40 -genpkg_rules()
  135.41 -{
  135.42 -	cp -a $install/usr $fs
  135.43 +genpkg_rules() {
  135.44 +	copy @std
  135.45 +	py=${PACKAGE%%-*} # python/python3
  135.46 +	DEPENDS="$py $py-markupsafe"
  135.47  }
   136.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   136.2 +++ b/python-markdown/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   136.3 @@ -0,0 +1,1 @@
   136.4 +../python/.icon.png
   136.5 \ No newline at end of file
   137.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   137.2 +++ b/python-markdown/receipt	Sat Sep 22 16:05:26 2018 +0300
   137.3 @@ -0,0 +1,25 @@
   137.4 +# SliTaz package receipt v2.
   137.5 +
   137.6 +ORIGIN="Markdown"
   137.7 +PACKAGE="python-markdown"
   137.8 +VERSION="2.6.11"
   137.9 +CATEGORY="python"
  137.10 +SHORT_DESC="Python implementation of Markdown"
  137.11 +MAINTAINER="al.bobylev@gmail.com"
  137.12 +LICENSE="BSD"
  137.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  137.14 +HOST_ARCH="any"
  137.15 +REPOLOGY="python:markdown"
  137.16 +
  137.17 +BUILD_DEPENDS="python python3"
  137.18 +SPLIT="${PACKAGE/python/python3}:3"
  137.19 +
  137.20 +compile_rules() {
  137.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  137.22 +}
  137.23 +
  137.24 +genpkg_rules() {
  137.25 +	copy @std
  137.26 +	py=${PACKAGE%%-*} # python/python3
  137.27 +	DEPENDS="$py"
  137.28 +}
   138.1 --- a/python-markupsafe/receipt	Fri Sep 14 11:37:28 2018 +0300
   138.2 +++ b/python-markupsafe/receipt	Sat Sep 22 16:05:26 2018 +0300
   138.3 @@ -1,22 +1,25 @@
   138.4  # SliTaz package receipt v2.
   138.5  
   138.6 +ORIGIN="MarkupSafe"
   138.7  PACKAGE="python-markupsafe"
   138.8 -VERSION="latest"
   138.9 +VERSION="1.0"
  138.10  CATEGORY="python"
  138.11  SHORT_DESC="Implements a XML/HTML/XHTML Markup safe string for Python"
  138.12  MAINTAINER="pascal.bellard@slitaz.org"
  138.13  LICENSE="BSD"
  138.14 -WEB_SITE="https://pypi.org/project/MarkupSafe/"
  138.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  138.16 +HOST_ARCH="any"
  138.17  REPOLOGY="python:markupsafe"
  138.18  
  138.19 -BUILD_DEPENDS="python"
  138.20 +BUILD_DEPENDS="python python3"
  138.21 +SPLIT="${PACKAGE/python/python3}:3"
  138.22  
  138.23  compile_rules() {
  138.24 -	pip install --no-compile --root=$DESTDIR MarkupSafe
  138.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  138.26  }
  138.27  
  138.28  genpkg_rules() {
  138.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*MarkupSafe-||p' $LOGS/$PACKAGE.log)
  138.30  	copy @std
  138.31 -	DEPENDS="python"
  138.32 +	py=${PACKAGE%%-*} # python/python3
  138.33 +	DEPENDS="$py"
  138.34  }
   139.1 --- a/python-mccabe/receipt	Fri Sep 14 11:37:28 2018 +0300
   139.2 +++ b/python-mccabe/receipt	Sat Sep 22 16:05:26 2018 +0300
   139.3 @@ -1,23 +1,25 @@
   139.4  # SliTaz package receipt v2.
   139.5  
   139.6 +ORIGIN="mccabe"
   139.7  PACKAGE="python-mccabe"
   139.8 -VERSION="latest"
   139.9 -CATEGORY="development"
  139.10 +VERSION="0.6.1"
  139.11 +CATEGORY="python"
  139.12  SHORT_DESC="McCabe checker, plugin for flake8"
  139.13  MAINTAINER="al.bobylev@gmail.com"
  139.14  LICENSE="MIT"
  139.15 -WEB_SITE="https://pypi.org/project/mccabe/"
  139.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  139.17  HOST_ARCH="any"
  139.18  REPOLOGY="python:mccabe"
  139.19  
  139.20 -BUILD_DEPENDS="python"
  139.21 +BUILD_DEPENDS="python python3"
  139.22 +SPLIT="${PACKAGE/python/python3}:3"
  139.23  
  139.24  compile_rules() {
  139.25 -	pip install --no-compile --root=$DESTDIR mccabe
  139.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  139.27  }
  139.28  
  139.29  genpkg_rules() {
  139.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*mccabe-||p' $LOGS/$PACKAGE.log)
  139.31  	copy @std
  139.32 -	DEPENDS="python"
  139.33 +	py=${PACKAGE%%-*} # python/python3
  139.34 +	DEPENDS="$py"
  139.35  }
   140.1 --- a/python-mechanize/receipt	Fri Sep 14 11:37:28 2018 +0300
   140.2 +++ b/python-mechanize/receipt	Sat Sep 22 16:05:26 2018 +0300
   140.3 @@ -1,30 +1,25 @@
   140.4 -# SliTaz package receipt.
   140.5 +# SliTaz package receipt v2.
   140.6  
   140.7 +ORIGIN="mechanize"
   140.8  PACKAGE="python-mechanize"
   140.9 -VERSION="0.2.5"
  140.10 +VERSION="0.3.7"
  140.11  CATEGORY="network"
  140.12 -SHORT_DESC="Stateful programmatic web browsing in Python."
  140.13 +SHORT_DESC="Stateful programmatic web browsing"
  140.14  MAINTAINER="pankso@slitaz.org"
  140.15  LICENSE="BSD"
  140.16 -WEB_SITE="http://wwwsearch.sourceforge.net/mechanize/"
  140.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  140.18 +HOST_ARCH="any"
  140.19  REPOLOGY="python:mechanize"
  140.20  
  140.21 -SOURCE="mechanize"
  140.22 -TARBALL="${SOURCE}-${VERSION}.tar.gz"
  140.23 -WGET_URL="https://files.pythonhosted.org/packages/source/m/mechanize/$TARBALL"
  140.24 +BUILD_DEPENDS="python python-html5lib"
  140.25  
  140.26 -DEPENDS="python"
  140.27 -BUILD_DEPENDS="python-dev python-distribute"
  140.28 +compile_rules() {
  140.29 +	# Python3 based compilation produce error: 'mechanize only works on python 2.x'
  140.30  
  140.31 -# Rules to configure and make the package.
  140.32 -compile_rules()
  140.33 -{
  140.34 -	python setup.py install --root="$DESTDIR" --optimize=1
  140.35 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  140.36  }
  140.37  
  140.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  140.39 -genpkg_rules()
  140.40 -{
  140.41 -	mkdir -p $fs/usr
  140.42 -	cp -a $install/usr/lib $fs/usr
  140.43 +genpkg_rules() {
  140.44 +	copy @std
  140.45 +	DEPENDS="python python-html5lib"
  140.46  }
   141.1 --- a/python-mock/receipt	Fri Sep 14 11:37:28 2018 +0300
   141.2 +++ b/python-mock/receipt	Sat Sep 22 16:05:26 2018 +0300
   141.3 @@ -1,29 +1,29 @@
   141.4 -# SliTaz package receipt.
   141.5 +# SliTaz package receipt v2.
   141.6  
   141.7 +ORIGIN="mock"
   141.8  PACKAGE="python-mock"
   141.9 -VERSION="1.0.1"
  141.10 -CATEGORY="development"
  141.11 -SHORT_DESC="A library for testing in Python."
  141.12 +VERSION="2.0.0"
  141.13 +CATEGORY="python"
  141.14 +SHORT_DESC="A library for testing in Python"
  141.15  MAINTAINER="pascal.bellard@slitaz.org"
  141.16  LICENSE="BSD"
  141.17 -WEB_SITE="https://pypi.org/pypi/mock/"
  141.18 +WEB_SITE="https://pypi.org/pypi/$ORIGIN/"
  141.19 +HOST_ARCH="any"
  141.20  REPOLOGY="python:mock"
  141.21  
  141.22 -SOURCE="mock"
  141.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  141.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  141.25 +BUILD_DEPENDS="python python-funcsigs python-pbr python-six \
  141.26 +python3 python3-pbr python3-six"
  141.27 +SPLIT="${PACKAGE/python/python3}:3"
  141.28  
  141.29 -DEPENDS="python"
  141.30 -BUILD_DEPENDS="python"
  141.31 -
  141.32 -# Rules to configure and make the package.
  141.33 -compile_rules()
  141.34 -{
  141.35 -	python setup.py install --root=$DESTDIR
  141.36 +compile_rules() {
  141.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  141.38  }
  141.39  
  141.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  141.41 -genpkg_rules()
  141.42 -{
  141.43 -	cp -a $install/usr $fs
  141.44 +genpkg_rules() {
  141.45 +	copy @std
  141.46 +	py=${PACKAGE%%-*} # python/python3
  141.47 +	case $PACKAGE in
  141.48 +		python-*)  DEPENDS="$py $py-funcsigs $py-pbr $py-six";;
  141.49 +		python3-*) DEPENDS="$py $py-pbr $py-six";;
  141.50 +	esac
  141.51  }
   142.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   142.2 +++ b/python-more-itertools/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   142.3 @@ -0,0 +1,1 @@
   142.4 +../python/.icon.png
   142.5 \ No newline at end of file
   143.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   143.2 +++ b/python-more-itertools/receipt	Sat Sep 22 16:05:26 2018 +0300
   143.3 @@ -0,0 +1,26 @@
   143.4 +# SliTaz package receipt v2.
   143.5 +
   143.6 +ORIGIN="more-itertools"
   143.7 +PACKAGE="python-more-itertools"
   143.8 +VERSION="4.3.0"
   143.9 +CATEGORY="python"
  143.10 +SHORT_DESC="More routines for operating on iterables, beyond itertools"
  143.11 +MAINTAINER="al.bobylev@gmail.com"
  143.12 +LICENSE="MIT"
  143.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  143.14 +HOST_ARCH="any"
  143.15 +REPOLOGY="python:more-itertools"
  143.16 +
  143.17 +BUILD_DEPENDS="python python-six \
  143.18 +python3 python3-six"
  143.19 +SPLIT="${PACKAGE/python/python3}:3"
  143.20 +
  143.21 +compile_rules() {
  143.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  143.23 +}
  143.24 +
  143.25 +genpkg_rules() {
  143.26 +	copy @std
  143.27 +	py="${PACKAGE%%-*}" # python/python3
  143.28 +	DEPENDS="$py $py-six"
  143.29 +}
   144.1 --- a/python-mpd/receipt	Fri Sep 14 11:37:28 2018 +0300
   144.2 +++ b/python-mpd/receipt	Sat Sep 22 16:05:26 2018 +0300
   144.3 @@ -1,29 +1,25 @@
   144.4 -# SliTaz package receipt.
   144.5 +# SliTaz package receipt v2.
   144.6  
   144.7 +ORIGIN="python-mpd"
   144.8  PACKAGE="python-mpd"
   144.9  VERSION="0.3.0"
  144.10  CATEGORY="multimedia"
  144.11  SHORT_DESC="Python MPD client library"
  144.12  MAINTAINER="jozee@slitaz.org"
  144.13  LICENSE="LGPL3"
  144.14 -WEB_SITE="https://pypi.org/project/python-mpd/"
  144.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  144.16 +HOST_ARCH="any"
  144.17  REPOLOGY="python:mpd"
  144.18  
  144.19 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
  144.20 -WGET_URL="https://files.pythonhosted.org/packages/source/p/python-mpd/$TARBALL"
  144.21 +BUILD_DEPENDS="python python3"
  144.22 +SPLIT="${PACKAGE/python/python3}:3"
  144.23  
  144.24 -DEPENDS="python"
  144.25 -BUILD_DEPENDS="python-dev"
  144.26 -
  144.27 -# Rules to configure and make the package.
  144.28 -compile_rules()
  144.29 -{
  144.30 -	python setup.py install --prefix=/usr --root="$DESTDIR"
  144.31 +compile_rules() {
  144.32 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  144.33  }
  144.34  
  144.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
  144.36 -genpkg_rules()
  144.37 -{
  144.38 -	mkdir -p $fs/usr/lib
  144.39 -	cp -a $install/usr/lib $fs/usr
  144.40 +genpkg_rules() {
  144.41 +	copy @std
  144.42 +	py=${PACKAGE%%-*} # python/python3
  144.43 +	DEPENDS="$py"
  144.44  }
   145.1 --- a/python-mygpoclient/receipt	Fri Sep 14 11:37:28 2018 +0300
   145.2 +++ b/python-mygpoclient/receipt	Sat Sep 22 16:05:26 2018 +0300
   145.3 @@ -1,31 +1,25 @@
   145.4 -# SliTaz package receipt.
   145.5 +# SliTaz package receipt v2.
   145.6  
   145.7 +ORIGIN="mygpoclient"
   145.8  PACKAGE="python-mygpoclient"
   145.9 -VERSION="1.5"
  145.10 -CATEGORY="development"
  145.11 -SHORT_DESC="Python interface to the gpodder.net web services."
  145.12 +VERSION="1.8"
  145.13 +CATEGORY="python"
  145.14 +SHORT_DESC="gpodder.net API Client Library"
  145.15  MAINTAINER="claudinei@slitaz.org"
  145.16  LICENSE="GPL3"
  145.17 -WEB_SITE="http://thpinfo.com/2010/mygpoclient"
  145.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  145.19 +HOST_ARCH="any"
  145.20  REPOLOGY="python:mygpoclient"
  145.21  
  145.22 -SOURCE="mygpoclient"
  145.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  145.24 -WGET_URL="$WEB_SITE/$TARBALL"
  145.25 +BUILD_DEPENDS="python python3"
  145.26 +SPLIT="${PACKAGE/python/python3}:3"
  145.27  
  145.28 -DEPENDS="python python-simplejson"
  145.29 -BUILD_DEPENDS="python-dev"
  145.30 -
  145.31 -# Rules to configure and make the package.
  145.32 -compile_rules()
  145.33 -{
  145.34 -	python setup.py install --root=$DESTDIR
  145.35 +compile_rules() {
  145.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  145.37  }
  145.38  
  145.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  145.40 -genpkg_rules()
  145.41 -{
  145.42 -	mkdir -p $fs/usr
  145.43 -	cp -a $install/usr/lib $fs/usr
  145.44 -	cp -a $install/usr/bin $fs/usr
  145.45 +genpkg_rules() {
  145.46 +	copy @std
  145.47 +	py=${PACKAGE%%-*} # python/python3
  145.48 +	DEPENDS="$py"
  145.49  }
   146.1 --- a/python-mysql/receipt	Fri Sep 14 11:37:28 2018 +0300
   146.2 +++ b/python-mysql/receipt	Sat Sep 22 16:05:26 2018 +0300
   146.3 @@ -1,40 +1,27 @@
   146.4 -# SliTaz package receipt.
   146.5 +# SliTaz package receipt v2.
   146.6  
   146.7 +ORIGIN="MySQL-python"
   146.8  PACKAGE="python-mysql"
   146.9 -VERSION="1.2.3"
  146.10 -CATEGORY="development"
  146.11 -SHORT_DESC="A Python interface to MySQL ."
  146.12 +VERSION="1.2.5"
  146.13 +CATEGORY="python"
  146.14 +SHORT_DESC="Python interface to MySQL"
  146.15  MAINTAINER="claudinei@slitaz.org"
  146.16  LICENSE="GPL"
  146.17 -WEB_SITE="http://mysql-python.sourceforge.net/"
  146.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  146.19 +#HOST_ARCH
  146.20  REPOLOGY="python:mysql-python"
  146.21  
  146.22 -SOURCE="MySQL-python"
  146.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  146.24 -WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
  146.25 -
  146.26 -DEPENDS="python libmysqlclient zlib openssl"
  146.27  BUILD_DEPENDS="python-dev mysql-dev"
  146.28  
  146.29 -# Rules to configure and make the package.
  146.30 -compile_rules()
  146.31 -{
  146.32 -	sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
  146.33 -	python setup.py build
  146.34 -	python setup.py install --root=$DESTDIR
  146.35 +# Python packages name should start with "python-", but "python-mysql-python"
  146.36 +# is pretty ugly name, so strip it to "python-mysql"
  146.37 +
  146.38 +compile_rules() {
  146.39 +	# Python3 based compilation produce error and currently unsupported
  146.40 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  146.41  }
  146.42  
  146.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
  146.44 -genpkg_rules()
  146.45 -{
  146.46 -	mkdir -p $fs/usr
  146.47 -	cp -a $install/usr/lib $fs/usr
  146.48 +genpkg_rules() {
  146.49 +	copy @std
  146.50 +	DEPENDS="python libmysqlclient"
  146.51  }
  146.52 -
  146.53 -# Remove old package.
  146.54 -post_install()
  146.55 -{
  146.56 -	[ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] ||
  146.57 -		rm -rf "$1/var/lib/tazpkg/installed/mysql-python"
  146.58 -}
  146.59 -
   147.1 --- a/python-netaddr/receipt	Fri Sep 14 11:37:28 2018 +0300
   147.2 +++ b/python-netaddr/receipt	Sat Sep 22 16:05:26 2018 +0300
   147.3 @@ -1,32 +1,25 @@
   147.4 -# SliTaz package receipt.
   147.5 +# SliTaz package receipt v2.
   147.6  
   147.7 +ORIGIN="netaddr"
   147.8  PACKAGE="python-netaddr"
   147.9 -VERSION="0.7.10"
  147.10 -CATEGORY="development"
  147.11 -SHORT_DESC="A network address representation and manipulation library."
  147.12 +VERSION="0.7.19"
  147.13 +CATEGORY="python"
  147.14 +SHORT_DESC="A network address manipulation library for Python"
  147.15  MAINTAINER="pascal.bellard@slitaz.org"
  147.16  LICENSE="BSD"
  147.17 -WEB_SITE="https://github.com/drkjam/netaddr"
  147.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  147.19 +HOST_ARCH="any"
  147.20  REPOLOGY="python:netaddr"
  147.21  
  147.22 -SOURCE="netaddr"
  147.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  147.24 -WGET_URL="https://github.com/downloads/drkjam/$SOURCE/$TARBALL"
  147.25 +BUILD_DEPENDS="python python3"
  147.26 +SPLIT="${PACKAGE/python/python3}:3"
  147.27  
  147.28 -DEPENDS="python"
  147.29 -BUILD_DEPENDS="python-dev python wget"
  147.30 -
  147.31 -# Rules to configure and make the package.
  147.32 -compile_rules()
  147.33 -{
  147.34 -	python setup.py build &&
  147.35 -	python setup.py install --root=$DESTDIR
  147.36 +compile_rules() {
  147.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  147.38  }
  147.39  
  147.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  147.41 -genpkg_rules()
  147.42 -{
  147.43 -	mkdir -p $fs
  147.44 -	cp -a $install/usr $fs
  147.45 +genpkg_rules() {
  147.46 +	copy @std
  147.47 +	py=${PACKAGE%%-*} # python/python3
  147.48 +	DEPENDS="$py"
  147.49  }
  147.50 -
   148.1 --- a/python-netifaces/receipt	Fri Sep 14 11:37:28 2018 +0300
   148.2 +++ b/python-netifaces/receipt	Sat Sep 22 16:05:26 2018 +0300
   148.3 @@ -1,29 +1,25 @@
   148.4 -# SliTaz package receipt.
   148.5 +# SliTaz package receipt v2.
   148.6  
   148.7 +ORIGIN="netifaces"
   148.8  PACKAGE="python-netifaces"
   148.9 -VERSION="0.8"
  148.10 -CATEGORY="development"
  148.11 -SHORT_DESC="Portable access to network interfaces from Python."
  148.12 +VERSION="0.10.7"
  148.13 +CATEGORY="python"
  148.14 +SHORT_DESC="Portable network interface information"
  148.15  MAINTAINER="monghitri@aruba.it"
  148.16  LICENSE="MIT"
  148.17 -WEB_SITE="https://alastairs-place.net/projects/netifaces/"
  148.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  148.19 +#HOST_ARCH
  148.20  REPOLOGY="python:netifaces"
  148.21  
  148.22 -SOURCE="netifaces"
  148.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  148.24 -WGET_URL="http://alastairs-place.net/projects/$SOURCE/$TARBALL"
  148.25 +BUILD_DEPENDS="python python3"
  148.26 +SPLIT="${PACKAGE/python/python3}:3"
  148.27  
  148.28 -DEPENDS="python"
  148.29 -BUILD_DEPENDS="python-dev"
  148.30 -
  148.31 -# Rules to configure and make the package.
  148.32 -compile_rules()
  148.33 -{
  148.34 -	python setup.py install --root=$DESTDIR
  148.35 +compile_rules() {
  148.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  148.37  }
  148.38  
  148.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  148.40 -genpkg_rules()
  148.41 -{
  148.42 -	cp -a $install/usr $fs
  148.43 +genpkg_rules() {
  148.44 +	copy @std
  148.45 +	py=${PACKAGE%%-*} # python/python3
  148.46 +	DEPENDS="$py"
  148.47  }
   149.1 --- a/python-nose/receipt	Fri Sep 14 11:37:28 2018 +0300
   149.2 +++ b/python-nose/receipt	Sat Sep 22 16:05:26 2018 +0300
   149.3 @@ -1,32 +1,25 @@
   149.4 -# SliTaz package receipt.
   149.5 +# SliTaz package receipt v2.
   149.6  
   149.7 +ORIGIN="nose"
   149.8  PACKAGE="python-nose"
   149.9 -VERSION="0.11.3"
  149.10 -CATEGORY="development"
  149.11 +VERSION="1.3.7"
  149.12 +CATEGORY="python"
  149.13  SHORT_DESC="Unittest extension"
  149.14  MAINTAINER="taziden@slitaz.org"
  149.15  LICENSE="LGPL2.1"
  149.16 -WEB_SITE="http://pylonshq.com"
  149.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  149.18 +HOST_ARCH="any"
  149.19  REPOLOGY="python:nose"
  149.20  
  149.21 -SOURCE="nose"
  149.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  149.23 -WGET_URL="$WEB_SITE/download/1.0/$TARBALL"
  149.24 -TAGS="python"
  149.25 +BUILD_DEPENDS="python python3"
  149.26 +SPLIT="${PACKAGE/python/python3}:3"
  149.27  
  149.28 -DEPENDS="python"
  149.29 -BUILD_DEPENDS="python python-dev"
  149.30 -
  149.31 -# Rules to configure and make the package.
  149.32 -compile_rules()
  149.33 -{
  149.34 -	sed -i 's|man/man|share/&|' setup.py
  149.35 -	python setup.py install --root=$DESTDIR
  149.36 +compile_rules() {
  149.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  149.38  }
  149.39  
  149.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  149.41 -genpkg_rules()
  149.42 -{
  149.43 -	mkdir -p $fs/usr
  149.44 -	cp -a $install/usr/lib $fs/usr
  149.45 +genpkg_rules() {
  149.46 +	copy @std
  149.47 +	py="${PACKAGE%%-*}" # python/python3
  149.48 +	DEPENDS="$py"
  149.49  }
   150.1 --- a/python-numpy/receipt	Fri Sep 14 11:37:28 2018 +0300
   150.2 +++ b/python-numpy/receipt	Sat Sep 22 16:05:26 2018 +0300
   150.3 @@ -1,22 +1,25 @@
   150.4  # SliTaz package receipt v2.
   150.5  
   150.6 +ORIGIN="numpy"
   150.7  PACKAGE="python-numpy"
   150.8 -VERSION="latest"
   150.9 +VERSION="1.15.1"
  150.10  CATEGORY="development"
  150.11  SHORT_DESC="NumPy: array processing for numbers, strings, records, and objects"
  150.12  MAINTAINER="pascal.bellard@slitaz.org"
  150.13  LICENSE="BSD"
  150.14 -WEB_SITE="http://www.numpy.org/"
  150.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  150.16 +#HOST_ARCH
  150.17  REPOLOGY="python:numpy"
  150.18  
  150.19 -BUILD_DEPENDS="python"
  150.20 +BUILD_DEPENDS="python python3"
  150.21 +SPLIT="${PACKAGE/python/python3}:3"
  150.22  
  150.23  compile_rules() {
  150.24 -	pip install --no-compile --root=$DESTDIR numpy
  150.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  150.26  }
  150.27  
  150.28  genpkg_rules() {
  150.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*numpy-||p' $LOGS/$PACKAGE.log)
  150.30  	copy @std @dev
  150.31 -	DEPENDS="python"
  150.32 +	py="${PACKAGE%%-*}" # python/python3
  150.33 +	DEPENDS="$py"
  150.34  }
   151.1 --- a/python-oauth2/receipt	Fri Sep 14 11:37:28 2018 +0300
   151.2 +++ b/python-oauth2/receipt	Sat Sep 22 16:05:26 2018 +0300
   151.3 @@ -1,30 +1,25 @@
   151.4 -# SliTaz package receipt.
   151.5 +# SliTaz package receipt v2.
   151.6  
   151.7 +ORIGIN="oauth2"
   151.8  PACKAGE="python-oauth2"
   151.9 -VERSION="1.5.211"
  151.10 -CATEGORY="development"
  151.11 -SHORT_DESC="Library for OAuth version 1.0."
  151.12 +VERSION="1.9.0.post1"
  151.13 +CATEGORY="python"
  151.14 +SHORT_DESC="Library for OAuth version 1.9"
  151.15  MAINTAINER="paul@slitaz.org"
  151.16  LICENSE="MIT"
  151.17 -WEB_SITE="https://github.com/simplegeo/python-oauth2"
  151.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  151.19 +HOST_ARCH="any"
  151.20  REPOLOGY="python:oauth2"
  151.21  
  151.22 -SOURCE="oauth2"
  151.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  151.24 -WGET_URL="https://files.pythonhosted.org/packages/source/o/$SOURCE/$TARBALL"
  151.25 -TAGS="python"
  151.26 +BUILD_DEPENDS="python python-httplib2  python3 python3-httplib2"
  151.27 +SPLIT="${PACKAGE/python/python3}:3"
  151.28  
  151.29 -DEPENDS="python"
  151.30 -BUILD_DEPENDS="python python-dev"
  151.31 -
  151.32 -# Rules to configure and make the package.
  151.33 -compile_rules()
  151.34 -{
  151.35 -	python setup.py install --root=$DESTDIR
  151.36 +compile_rules() {
  151.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  151.38  }
  151.39  
  151.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  151.41 -genpkg_rules()
  151.42 -{
  151.43 -	cp -a $install/usr $fs
  151.44 +genpkg_rules() {
  151.45 +	copy @std @dev
  151.46 +	py="${PACKAGE%%-*}" # python/python3
  151.47 +	DEPENDS="$py $py-httplib2"
  151.48  }
   152.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   152.2 +++ b/python-oauthlib/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   152.3 @@ -0,0 +1,1 @@
   152.4 +../python/.icon.png
   152.5 \ No newline at end of file
   153.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   153.2 +++ b/python-oauthlib/receipt	Sat Sep 22 16:05:26 2018 +0300
   153.3 @@ -0,0 +1,26 @@
   153.4 +# SliTaz package receipt v2.
   153.5 +
   153.6 +ORIGIN="oauthlib"
   153.7 +PACKAGE="python-oauthlib"
   153.8 +VERSION="2.1.0"
   153.9 +CATEGORY="python"
  153.10 +SHORT_DESC="A generic, spec-compliant, thorough implementation of the OAuth \
  153.11 +request-signing logic"
  153.12 +MAINTAINER="al.bobylev@gmail.com"
  153.13 +LICENSE="BSD"
  153.14 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  153.15 +HOST_ARCH="any"
  153.16 +REPOLOGY="python:oauthlib"
  153.17 +
  153.18 +BUILD_DEPENDS="python python3"
  153.19 +SPLIT="${PACKAGE/python/python3}:3"
  153.20 +
  153.21 +compile_rules() {
  153.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  153.23 +}
  153.24 +
  153.25 +genpkg_rules() {
  153.26 +	copy @std
  153.27 +	py=${PACKAGE%%-*} # python/python3
  153.28 +	DEPENDS="$py"
  153.29 +}
   154.1 --- a/python-ofxparse/receipt	Fri Sep 14 11:37:28 2018 +0300
   154.2 +++ b/python-ofxparse/receipt	Sat Sep 22 16:05:26 2018 +0300
   154.3 @@ -1,30 +1,26 @@
   154.4 -# SliTaz package receipt.
   154.5 +# SliTaz package receipt v2.
   154.6  
   154.7 +ORIGIN="ofxparse"
   154.8  PACKAGE="python-ofxparse"
   154.9 -VERSION="0.14"
  154.10 -CATEGORY="development"
  154.11 -SHORT_DESC="Tools for working with the OFX (Open Financial Exchange) file format."
  154.12 +VERSION="0.19"
  154.13 +CATEGORY="python"
  154.14 +SHORT_DESC="Tools for working with the OFX (Open Financial Exchange) file format"
  154.15  MAINTAINER="pascal.bellard@slitaz.org"
  154.16  LICENSE="MIT"
  154.17 -WEB_SITE="https://pypi.org/project/ofxparse/"
  154.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  154.19 +HOST_ARCH="any"
  154.20  REPOLOGY="python:ofxparse"
  154.21  
  154.22 -SOURCE="ofxparse"
  154.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  154.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  154.25 +BUILD_DEPENDS="python python-beautifulsoup4 python-lxml python-six \
  154.26 +python3 python3-beautifulsoup4 python3-lxml python3-six"
  154.27 +SPLIT="${PACKAGE/python/python3}:3"
  154.28  
  154.29 -DEPENDS="python python-beautifulsoup4"
  154.30 -BUILD_DEPENDS="python"
  154.31 -
  154.32 -# Rules to configure and make the package.
  154.33 -compile_rules()
  154.34 -{
  154.35 -	python setup.py install --root=$DESTDIR
  154.36 +compile_rules() {
  154.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  154.38  }
  154.39  
  154.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  154.41 -genpkg_rules()
  154.42 -{
  154.43 -	cp -a $install/usr $fs
  154.44 +genpkg_rules() {
  154.45 +	copy @std @dev
  154.46 +	py="${PACKAGE%%-*}" # python/python3
  154.47 +	DEPENDS="$py $py-beautifulsoup4 $py-lxml $py-six"
  154.48  }
  154.49 -
   155.1 --- a/python-ooop/receipt	Fri Sep 14 11:37:28 2018 +0300
   155.2 +++ b/python-ooop/receipt	Sat Sep 22 16:05:26 2018 +0300
   155.3 @@ -1,29 +1,25 @@
   155.4 -# SliTaz package receipt.
   155.5 +# SliTaz package receipt v2.
   155.6  
   155.7 +ORIGIN="ooop"
   155.8  PACKAGE="python-ooop"
   155.9  VERSION="0.2.3"
  155.10 -CATEGORY="development"
  155.11 -SHORT_DESC="OpenObject on Python, a library to connect with Open ERP."
  155.12 +CATEGORY="python"
  155.13 +SHORT_DESC="OpenObject on Python, a library to connect with Open ERP"
  155.14  MAINTAINER="pascal.bellard@slitaz.org"
  155.15  LICENSE="GPL3"
  155.16 -WEB_SITE="https://pypi.org/project/ooop/"
  155.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  155.18 +HOST_ARCH="any"
  155.19  REPOLOGY="python:ooop"
  155.20  
  155.21 -SOURCE="${PACKAGE#*-}"
  155.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  155.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  155.24 +BUILD_DEPENDS="python python3"
  155.25 +SPLIT="${PACKAGE/python/python3}:3"
  155.26  
  155.27 -DEPENDS="python"
  155.28 -BUILD_DEPENDS="python python-dev"
  155.29 -
  155.30 -# Rules to configure and make the package.
  155.31 -compile_rules()
  155.32 -{
  155.33 -	python setup.py install --root=$DESTDIR
  155.34 +compile_rules() {
  155.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  155.36  }
  155.37  
  155.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  155.39 -genpkg_rules()
  155.40 -{
  155.41 -	cp -a $install/usr $fs
  155.42 +genpkg_rules() {
  155.43 +	copy @std
  155.44 +	py="${PACKAGE%%-*}" # python/python3
  155.45 +	DEPENDS="$py"
  155.46  }
   156.1 --- a/python-opengl-accelerate/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   156.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   156.3 @@ -1,1 +0,0 @@
   156.4 -../python/.icon.png
   156.5 \ No newline at end of file
   157.1 --- a/python-opengl-accelerate/receipt	Fri Sep 14 11:37:28 2018 +0300
   157.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   157.3 @@ -1,32 +0,0 @@
   157.4 -# SliTaz package receipt.
   157.5 -
   157.6 -PACKAGE="python-opengl-accelerate"
   157.7 -VERSION="3.0.2"
   157.8 -CATEGORY="development"
   157.9 -SHORT_DESC="Cross platform Python binding to OpenGL."
  157.10 -MAINTAINER="yuripourre@gmail.com"
  157.11 -LICENSE="BSD"
  157.12 -WEB_SITE="http://pyopengl.sf.net"
  157.13 -REPOLOGY="python:opengl-accelerate"
  157.14 -
  157.15 -SOURCE="PyOpenGL-accelerate"
  157.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  157.17 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
  157.18 -
  157.19 -DEPENDS="python python-opengl"
  157.20 -BUILD_DEPENDS="python python-dev python-opengl"
  157.21 -
  157.22 -# Rules to configure and make the package.
  157.23 -compile_rules()
  157.24 -{
  157.25 -	{
  157.26 -	python setup.py build &&
  157.27 -	python setup.py install --root=$DESTDIR
  157.28 -	} 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
  157.29 -}
  157.30 -
  157.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
  157.32 -genpkg_rules()
  157.33 -{
  157.34 -	cp -a $install/usr $fs
  157.35 -}
   158.1 --- a/python-opengl/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   158.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   158.3 @@ -1,1 +0,0 @@
   158.4 -../python/.icon.png
   158.5 \ No newline at end of file
   159.1 --- a/python-opengl/receipt	Fri Sep 14 11:37:28 2018 +0300
   159.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   159.3 @@ -1,32 +0,0 @@
   159.4 -# SliTaz package receipt.
   159.5 -
   159.6 -PACKAGE="python-opengl"
   159.7 -VERSION="3.0.2"
   159.8 -CATEGORY="development"
   159.9 -SHORT_DESC="Cross platform Python binding to OpenGL."
  159.10 -MAINTAINER="yuripourre@gmail.com"
  159.11 -LICENSE="BSD"
  159.12 -WEB_SITE="http://pyopengl.sf.net"
  159.13 -REPOLOGY="python:pyopengl"
  159.14 -
  159.15 -SOURCE="PyOpenGL"
  159.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  159.17 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
  159.18 -
  159.19 -DEPENDS="python python-numpy python-pil freeglut"
  159.20 -BUILD_DEPENDS="python python-dev freeglut-dev"
  159.21 -
  159.22 -# Rules to configure and make the package.
  159.23 -compile_rules()
  159.24 -{
  159.25 -	{
  159.26 -	python setup.py build &&
  159.27 -	python setup.py install --root=$DESTDIR
  159.28 -	} 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
  159.29 -}
  159.30 -
  159.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
  159.32 -genpkg_rules()
  159.33 -{
  159.34 -	cp -a $install/usr $fs
  159.35 -}
   160.1 --- a/python-openid/receipt	Fri Sep 14 11:37:28 2018 +0300
   160.2 +++ b/python-openid/receipt	Sat Sep 22 16:05:26 2018 +0300
   160.3 @@ -1,30 +1,37 @@
   160.4 -# SliTaz package receipt.
   160.5 +# SliTaz package receipt v2.
   160.6  
   160.7 +ORIGIN="python-openid" # and python3-openid
   160.8  PACKAGE="python-openid"
   160.9 -VERSION="2.2.4"
  160.10 -CATEGORY="development"
  160.11 -SHORT_DESC="OpenID libraries for Python."
  160.12 +VERSION="3.1.0"  # Python3 package python3-openid version
  160.13 +VERSION2="2.2.5" # Python2 package python-openid version
  160.14 +CATEGORY="python"
  160.15 +SHORT_DESC="OpenID support for servers and consumers"
  160.16  MAINTAINER="pascal.bellard@slitaz.org"
  160.17  LICENSE="Apache"
  160.18 -WEB_SITE="http://www.janrain.com/openid-enabled/"
  160.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  160.20 +HOST_ARCH="any"
  160.21  REPOLOGY="python:openid"
  160.22  
  160.23 -TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
  160.24 -WGET_URL="http://ftp.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
  160.25 +BUILD_DEPENDS="python python3 python3-defusedxml"
  160.26 +SPLIT="${PACKAGE/python/python3}:3"
  160.27  
  160.28 -DEPENDS="python"
  160.29 -BUILD_DEPENDS="python-dev python"
  160.30 -
  160.31 -# Rules to configure and make the package.
  160.32 -compile_rules()
  160.33 -{
  160.34 -	python setup.py build &&
  160.35 -	python setup.py install --root=$DESTDIR
  160.36 +compile_rules() {
  160.37 +	case $SET in
  160.38 +		'') VERSION="$VERSION2";;
  160.39 +	esac
  160.40 +	pip$SET install --no-compile --root=$install python$SET-openid==$VERSION
  160.41  }
  160.42  
  160.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
  160.44 -genpkg_rules()
  160.45 -{
  160.46 -	mkdir -p $fs
  160.47 -	cp -a $install/usr $fs
  160.48 +genpkg_rules() {
  160.49 +	copy @std
  160.50 +	py="${PACKAGE%%-*}" # python/python3
  160.51 +	case $PACKAGE in
  160.52 +		python-*)
  160.53 +			VERSION="$VERSION2"
  160.54 +			DEPENDS="$py"
  160.55 +			;;
  160.56 +		python3-*)
  160.57 +			DEPENDS="$py $py-defusedxml"
  160.58 +			;;
  160.59 +	esac
  160.60  }
   161.1 --- a/python-packaging/receipt	Fri Sep 14 11:37:28 2018 +0300
   161.2 +++ b/python-packaging/receipt	Sat Sep 22 16:05:26 2018 +0300
   161.3 @@ -1,22 +1,26 @@
   161.4  # SliTaz package receipt v2.
   161.5  
   161.6 +ORIGIN="packaging"
   161.7  PACKAGE="python-packaging"
   161.8 -VERSION="latest"
   161.9 +VERSION="17.1"
  161.10  CATEGORY="python"
  161.11  SHORT_DESC="Core utilities for Python packages"
  161.12  MAINTAINER="al.bobylev@gmail.com"
  161.13  LICENSE="BSD"
  161.14 -WEB_SITE="https://pypi.org/project/packaging/"
  161.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  161.16 +HOST_ARCH="any"
  161.17  REPOLOGY="python:packaging"
  161.18  
  161.19 -BUILD_DEPENDS="python-six python-pyparsing"
  161.20 +BUILD_DEPENDS="python python-pyparsing python-six \
  161.21 +python3 python3-pyparsing python3-six"
  161.22 +SPLIT="${PACKAGE/python/python3}:3"
  161.23  
  161.24  compile_rules() {
  161.25 -	pip install --no-compile --root=$DESTDIR packaging
  161.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  161.27  }
  161.28  
  161.29  genpkg_rules() {
  161.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*packaging-||p' $LOGS/$PACKAGE.log)
  161.31  	copy @std
  161.32 -	DEPENDS="python"
  161.33 +	py="${PACKAGE%%-*}" # python/python3
  161.34 +	DEPENDS="$py $py-pyparsing $py-six"
  161.35  }
   162.1 --- a/python-paramiko/receipt	Fri Sep 14 11:37:28 2018 +0300
   162.2 +++ b/python-paramiko/receipt	Sat Sep 22 16:05:26 2018 +0300
   162.3 @@ -1,25 +1,28 @@
   162.4  # SliTaz package receipt v2.
   162.5  
   162.6 +ORIGIN="paramiko"
   162.7  PACKAGE="python-paramiko"
   162.8 -VERSION="latest"
   162.9 -CATEGORY="development"
  162.10 +VERSION="2.4.2"
  162.11 +CATEGORY="python"
  162.12  SHORT_DESC="SSH2 protocol library"
  162.13  MAINTAINER="pascal.bellard@slitaz.org"
  162.14  LICENSE="LGPL2.1"
  162.15 -WEB_SITE="https://pypi.org/project/paramiko/"
  162.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  162.17 +HOST_ARCH="any"
  162.18  REPOLOGY="python:paramiko"
  162.19  
  162.20 -BUILD_DEPENDS="python python-pyasn1 python-bcrypt python-cryptography \
  162.21 -python-pynacl"
  162.22 +BUILD_DEPENDS="python python-bcrypt python-cryptography python-pyasn1 \
  162.23 +python-pynacl \
  162.24 +python3 python3-bcrypt python3-cryptography python3-pyasn1 python3-pynacl"
  162.25 +SPLIT="${PACKAGE/python/python3}:3"
  162.26  
  162.27  compile_rules() {
  162.28 -	pip install --no-compile --root=$DESTDIR paramiko
  162.29 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  162.30  }
  162.31  
  162.32  genpkg_rules() {
  162.33 -	VERSION=$(sed -n '/^Successfully installed/ s|.*paramiko-||p' $LOGS/$PACKAGE.log)
  162.34  	copy @std
  162.35 -	DEPENDS="python python-pyasn1 python-bcrypt python-cryptography \
  162.36 -	python-pynacl"
  162.37 +	py="${PACKAGE%%-*}" # python/python3
  162.38 +	DEPENDS="$py $py-bcrypt $py-cryptography $py-pyasn1 $py-pynacl"
  162.39  	TAGS="ssh"
  162.40  }
   163.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   163.2 +++ b/python-parso/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   163.3 @@ -0,0 +1,1 @@
   163.4 +../python/.icon.png
   163.5 \ No newline at end of file
   164.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   164.2 +++ b/python-parso/receipt	Sat Sep 22 16:05:26 2018 +0300
   164.3 @@ -0,0 +1,25 @@
   164.4 +# SliTaz package receipt v2.
   164.5 +
   164.6 +ORIGIN="parso"
   164.7 +PACKAGE="python-parso"
   164.8 +VERSION="0.3.1"
   164.9 +CATEGORY="python"
  164.10 +SHORT_DESC="A Python Parser"
  164.11 +MAINTAINER="al.bobylev@gmail.com"
  164.12 +LICENSE="MIT"
  164.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  164.14 +HOST_ARCH="any"
  164.15 +REPOLOGY="python:parso"
  164.16 +
  164.17 +BUILD_DEPENDS="python python3"
  164.18 +SPLIT="${PACKAGE/python/python3}:3"
  164.19 +
  164.20 +compile_rules() {
  164.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  164.22 +}
  164.23 +
  164.24 +genpkg_rules() {
  164.25 +	copy @std
  164.26 +	py=${PACKAGE%%-*} # python/python3
  164.27 +	DEPENDS="$py"
  164.28 +}
   165.1 --- a/python-passlib/receipt	Fri Sep 14 11:37:28 2018 +0300
   165.2 +++ b/python-passlib/receipt	Sat Sep 22 16:05:26 2018 +0300
   165.3 @@ -1,31 +1,25 @@
   165.4 -# SliTaz package receipt.
   165.5 +# SliTaz package receipt v2.
   165.6  
   165.7 +ORIGIN="passlib"
   165.8  PACKAGE="python-passlib"
   165.9 -VERSION="1.6.2"
  165.10 +VERSION="1.7.1"
  165.11  CATEGORY="misc"
  165.12 -SHORT_DESC="comprehensive password hashing framework supporting over 30 schemes."
  165.13 +SHORT_DESC="Comprehensive password hashing framework supporting over 30 schemes"
  165.14  MAINTAINER="pascal.bellard@slitaz.org"
  165.15  LICENSE="BSD"
  165.16 -WEB_SITE="https://pypi.org/project/passlib/"
  165.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  165.18 +HOST_ARCH="any"
  165.19  REPOLOGY="python:passlib"
  165.20  
  165.21 -SOURCE="passlib"
  165.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  165.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  165.24 +BUILD_DEPENDS="python python3"
  165.25 +SPLIT="${PACKAGE/python/python3}:3"
  165.26  
  165.27 -DEPENDS="python"
  165.28 -BUILD_DEPENDS="wget python"
  165.29 -
  165.30 -# Rules to configure and make the package.
  165.31 -compile_rules()
  165.32 -{
  165.33 -	python setup.py build &&
  165.34 -	python setup.py install --root=$DESTDIR
  165.35 +compile_rules() {
  165.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  165.37  }
  165.38  
  165.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  165.40 -genpkg_rules()
  165.41 -{
  165.42 -	cp -a $install/usr $fs/
  165.43 +genpkg_rules() {
  165.44 +	copy @std
  165.45 +	py=${PACKAGE%%-*} # python/python3
  165.46 +	DEPENDS="$py"
  165.47  }
  165.48 -
   166.1 --- a/python-paste/receipt	Fri Sep 14 11:37:28 2018 +0300
   166.2 +++ b/python-paste/receipt	Sat Sep 22 16:05:26 2018 +0300
   166.3 @@ -1,31 +1,25 @@
   166.4 -# SliTaz package receipt.
   166.5 +# SliTaz package receipt v2.
   166.6  
   166.7 +ORIGIN="Paste"
   166.8  PACKAGE="python-paste"
   166.9 -VERSION="1.7.2"
  166.10 -CATEGORY="development"
  166.11 -SHORT_DESC="Tools for using a Web Server Gateway Interface stack."
  166.12 +VERSION="2.0.3"
  166.13 +CATEGORY="python"
  166.14 +SHORT_DESC="Tools for using a Web Server Gateway Interface stack"
  166.15  MAINTAINER="pankso@slitaz.org"
  166.16  LICENSE="MIT"
  166.17 -WEB_SITE="http://pythonpaste.org/"
  166.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  166.19 +HOST_ARCH="any"
  166.20  REPOLOGY="python:paste"
  166.21  
  166.22 -SOURCE="Paste"
  166.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  166.24 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
  166.25 -TAGS="python"
  166.26 +BUILD_DEPENDS="python python-six  python3 python3-six"
  166.27 +SPLIT="${PACKAGE/python/python3}:3"
  166.28  
  166.29 -DEPENDS="python"
  166.30 -BUILD_DEPENDS="python python-dev"
  166.31 -
  166.32 -# Rules to configure and make the package.
  166.33 -compile_rules()
  166.34 -{
  166.35 -	python setup.py install --root=$DESTDIR
  166.36 +compile_rules() {
  166.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  166.38  }
  166.39  
  166.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  166.41 -genpkg_rules()
  166.42 -{
  166.43 -	cp -a $install/usr $fs
  166.44 +genpkg_rules() {
  166.45 +	copy @std
  166.46 +	py=${PACKAGE%%-*} # python/python3
  166.47 +	DEPENDS="$py $py-six"
  166.48  }
  166.49 -
   167.1 --- a/python-pastedeploy/receipt	Fri Sep 14 11:37:28 2018 +0300
   167.2 +++ b/python-pastedeploy/receipt	Sat Sep 22 16:05:26 2018 +0300
   167.3 @@ -1,30 +1,25 @@
   167.4 -# SliTaz package receipt.
   167.5 +# SliTaz package receipt v2.
   167.6  
   167.7 +ORIGIN="PasteDeploy"
   167.8  PACKAGE="python-pastedeploy"
   167.9 -VERSION="1.3.3"
  167.10 -CATEGORY="development"
  167.11 -SHORT_DESC="Load, configure, and compose WSGI applications and servers."
  167.12 +VERSION="1.5.2"
  167.13 +CATEGORY="python"
  167.14 +SHORT_DESC="Load, configure, and compose WSGI applications and servers"
  167.15  MAINTAINER="pankso@slitaz.org"
  167.16  LICENSE="MIT"
  167.17 -WEB_SITE="http://pythonpaste.org/"
  167.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  167.19 +HOST_ARCH="any"
  167.20  REPOLOGY="python:pastedeploy"
  167.21  
  167.22 -SOURCE="PasteDeploy"
  167.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  167.24 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
  167.25 -TAGS="python"
  167.26 +BUILD_DEPENDS="python python3"
  167.27 +SPLIT="${PACKAGE/python/python3}:3"
  167.28  
  167.29 -DEPENDS="python python-paste"
  167.30 -BUILD_DEPENDS="$DEPENDS python-dev"
  167.31 -
  167.32 -# Rules to configure and make the package.
  167.33 -compile_rules()
  167.34 -{
  167.35 -	python setup.py install --root=$DESTDIR
  167.36 +compile_rules() {
  167.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  167.38  }
  167.39  
  167.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  167.41 -genpkg_rules()
  167.42 -{
  167.43 -	cp -a $install/usr $fs
  167.44 +genpkg_rules() {
  167.45 +	copy @std
  167.46 +	py=${PACKAGE%%-*} # python/python3
  167.47 +	DEPENDS="$py"
  167.48  }
   168.1 --- a/python-pastescript/receipt	Fri Sep 14 11:37:28 2018 +0300
   168.2 +++ b/python-pastescript/receipt	Sat Sep 22 16:05:26 2018 +0300
   168.3 @@ -1,30 +1,27 @@
   168.4 -# SliTaz package receipt.
   168.5 +# SliTaz package receipt v2.
   168.6  
   168.7 +ORIGIN="PasteScript"
   168.8  PACKAGE="python-pastescript"
   168.9 -VERSION="1.7.3"
  168.10 -CATEGORY="development"
  168.11 -SHORT_DESC="A pluggable command-line frontend, including commands to setup package file layouts."
  168.12 +VERSION="2.0.2"
  168.13 +CATEGORY="python"
  168.14 +SHORT_DESC="A pluggable command-line frontend, including commands to setup \
  168.15 +package file layouts"
  168.16  MAINTAINER="pankso@slitaz.org"
  168.17  LICENSE="MIT"
  168.18 -WEB_SITE="http://pythonpaste.org/"
  168.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  168.20 +HOST_ARCH="any"
  168.21  REPOLOGY="python:pastescript"
  168.22  
  168.23 -SOURCE="PasteScript"
  168.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  168.25 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
  168.26 -TAGS="python"
  168.27 +BUILD_DEPENDS="python python-paste python-pastedeploy python-six \
  168.28 +python3 python3-paste python3-pastedeploy python3-six"
  168.29 +SPLIT="${PACKAGE/python/python3}:3"
  168.30  
  168.31 -DEPENDS="python python-paste python-pastedeploy"
  168.32 -BUILD_DEPENDS="python"
  168.33 -
  168.34 -# Rules to configure and make the package.
  168.35 -compile_rules()
  168.36 -{
  168.37 -	python setup.py install --root=$DESTDIR
  168.38 +compile_rules() {
  168.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  168.40  }
  168.41  
  168.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  168.43 -genpkg_rules()
  168.44 -{
  168.45 -	cp -a $install/usr $fs
  168.46 +genpkg_rules() {
  168.47 +	copy @std
  168.48 +	py=${PACKAGE%%-*} # python/python3
  168.49 +	DEPENDS="$py $py-paste $py-pastedeploy $py-six"
  168.50  }
   169.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   169.2 +++ b/python-pathlib2/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   169.3 @@ -0,0 +1,1 @@
   169.4 +../python/.icon.png
   169.5 \ No newline at end of file
   170.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   170.2 +++ b/python-pathlib2/receipt	Sat Sep 22 16:05:26 2018 +0300
   170.3 @@ -0,0 +1,29 @@
   170.4 +# SliTaz package receipt v2.
   170.5 +
   170.6 +ORIGIN="pathlib2"
   170.7 +PACKAGE="python-pathlib2"
   170.8 +VERSION="2.3.2"
   170.9 +CATEGORY="python"
  170.10 +SHORT_DESC="Object-oriented filesystem paths"
  170.11 +MAINTAINER="al.bobylev@gmail.com"
  170.12 +LICENSE="MIT"
  170.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  170.14 +HOST_ARCH="any"
  170.15 +REPOLOGY="python:pathlib2"
  170.16 +
  170.17 +BUILD_DEPENDS="python python-scandir python-six \
  170.18 +python3 python3-six"
  170.19 +SPLIT="${PACKAGE/python/python3}:3"
  170.20 +
  170.21 +compile_rules() {
  170.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  170.23 +}
  170.24 +
  170.25 +genpkg_rules() {
  170.26 +	copy @std
  170.27 +	py="${PACKAGE%%-*}" # python/python3
  170.28 +	case $PACKAGE in
  170.29 +		python-*)  DEPENDS="$py $py-scandir $py-six";;
  170.30 +		python3-*) DEPENDS="$py $py-six";;
  170.31 +	esac
  170.32 +}
   171.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   171.2 +++ b/python-pbr/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   171.3 @@ -0,0 +1,1 @@
   171.4 +../python/.icon.png
   171.5 \ No newline at end of file
   172.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   172.2 +++ b/python-pbr/receipt	Sat Sep 22 16:05:26 2018 +0300
   172.3 @@ -0,0 +1,25 @@
   172.4 +# SliTaz package receipt v2.
   172.5 +
   172.6 +ORIGIN="pbr"
   172.7 +PACKAGE="python-pbr"
   172.8 +VERSION="4.2.0"
   172.9 +CATEGORY="python"
  172.10 +SHORT_DESC="Python Build Reasonableness"
  172.11 +MAINTAINER="al.bobylev@gmail.com"
  172.12 +LICENSE="Apache"
  172.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  172.14 +HOST_ARCH="any"
  172.15 +REPOLOGY="python:pbr"
  172.16 +
  172.17 +BUILD_DEPENDS="python python3"
  172.18 +SPLIT="${PACKAGE/python/python3}:3"
  172.19 +
  172.20 +compile_rules() {
  172.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  172.22 +}
  172.23 +
  172.24 +genpkg_rules() {
  172.25 +	copy @std
  172.26 +	py=${PACKAGE%%-*} # python/python3
  172.27 +	DEPENDS="$py"
  172.28 +}
   173.1 --- a/python-peak-rules/receipt	Fri Sep 14 11:37:28 2018 +0300
   173.2 +++ b/python-peak-rules/receipt	Sat Sep 22 16:05:26 2018 +0300
   173.3 @@ -1,29 +1,29 @@
   173.4 -# SliTaz package receipt.
   173.5 +# SliTaz package receipt v2.
   173.6  
   173.7 +ORIGIN="PEAK-Rules"
   173.8  PACKAGE="python-peak-rules"
   173.9  VERSION="0.5a1.dev-r2713"
  173.10  CATEGORY="misc"
  173.11  SHORT_DESC="Generic functions and business rules support systems"
  173.12  MAINTAINER="al.bobylev@gmail.com"
  173.13  LICENSE="ZPL2.1"
  173.14 -WEB_SITE="https://pypi.org/project/PEAK-Rules"
  173.15 +WEB_SITE="https://pypi.org/project/$ORIGIN"
  173.16 +HOST_ARCH="any"
  173.17  REPOLOGY="python:peak-rules"
  173.18  
  173.19  TARBALL="$PACKAGE-$VERSION.tar.gz"
  173.20 -WGET_URL="http://peak.telecommunity.com/snapshots/PEAK-Rules-$VERSION.tar.gz"
  173.21 +WGET_URL="http://peak.telecommunity.com/snapshots/$ORIGIN-$VERSION.tar.gz"
  173.22  
  173.23 -DEPENDS="python"
  173.24  BUILD_DEPENDS="python"
  173.25  
  173.26 -# Rules to configure and make the package.
  173.27 -compile_rules()
  173.28 -{
  173.29 -	python setup.py build &&
  173.30 -	python setup.py install --root=$install
  173.31 +compile_rules() {
  173.32 +	# Python3 based compilation produce error
  173.33 +	python -B setup.py install --root=$install
  173.34 +
  173.35 +	find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
  173.36  }
  173.37  
  173.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  173.39 -genpkg_rules()
  173.40 -{
  173.41 -	cp -a $install/* $fs
  173.42 +genpkg_rules() {
  173.43 +	copy @std
  173.44 +	DEPENDS="python"
  173.45  }
   174.1 --- a/python-phonenumbers/receipt	Fri Sep 14 11:37:28 2018 +0300
   174.2 +++ b/python-phonenumbers/receipt	Sat Sep 22 16:05:26 2018 +0300
   174.3 @@ -1,32 +1,25 @@
   174.4 -# SliTaz package receipt.
   174.5 +# SliTaz package receipt v2.
   174.6  
   174.7 +ORIGIN="phonenumbers"
   174.8  PACKAGE="python-phonenumbers"
   174.9 -VERSION="5.4b1"
  174.10 -CATEGORY="development"
  174.11 -SHORT_DESC="common library for parsing, formatting, storing and validating international phone numbers."
  174.12 +VERSION="8.9.13"
  174.13 +CATEGORY="python"
  174.14 +SHORT_DESC="Parsing, formatting, storing and validating international phone numbers"
  174.15  MAINTAINER="pascal.bellard@slitaz.org"
  174.16  LICENSE="Apache"
  174.17 -WEB_SITE="https://github.com/daviddrysdale/python-phonenumbers"
  174.18 -#https://pypi.org/project/phonenumbers/
  174.19 +WEB_SITE="https://pypi.org/project/$ORIGIN"
  174.20 +HOST_ARCH="any"
  174.21  REPOLOGY="python:phonenumbers"
  174.22  
  174.23 -SOURCE="phonenumbers"
  174.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  174.25 -WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
  174.26 +BUILD_DEPENDS="python python3"
  174.27 +SPLIT="${PACKAGE/python/python3}:3"
  174.28  
  174.29 -DEPENDS="python"
  174.30 -BUILD_DEPENDS="python-dev python"
  174.31 -
  174.32 -# Rules to configure and make the package.
  174.33 -compile_rules()
  174.34 -{
  174.35 -	python setup.py build &&
  174.36 -	python setup.py install --root=$DESTDIR
  174.37 +compile_rules() {
  174.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  174.39  }
  174.40  
  174.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  174.42 -genpkg_rules()
  174.43 -{
  174.44 -	mkdir -p $fs
  174.45 -	cp -a $install/usr $fs
  174.46 +genpkg_rules() {
  174.47 +	copy @std
  174.48 +	py=${PACKAGE%%-*} # python/python3
  174.49 +	DEPENDS="$py"
  174.50  }
   175.1 --- a/python-picamera/receipt	Fri Sep 14 11:37:28 2018 +0300
   175.2 +++ b/python-picamera/receipt	Sat Sep 22 16:05:26 2018 +0300
   175.3 @@ -1,23 +1,25 @@
   175.4  # SliTaz package receipt v2.
   175.5  
   175.6 +ORIGIN="picamera"
   175.7  PACKAGE="picamera"
   175.8 -VERSION="latest"
   175.9 +VERSION="1.13"
  175.10  CATEGORY="multimedia"
  175.11  SHORT_DESC="A pure Python interface for the Raspberry Pi camera module"
  175.12  MAINTAINER="pankso@slitaz.org"
  175.13  LICENSE="BSD"
  175.14 -WEB_SITE="https://pypi.org/project/picamera/"
  175.15 +WEB_SITE="https://pypi.org/project/$ORIGIN"
  175.16  HOST_ARCH="arm"
  175.17  REPOLOGY="python:picamera"
  175.18  
  175.19 -BUILD_DEPENDS="python"
  175.20 +BUILD_DEPENDS="python python3"
  175.21 +SPLIT="${PACKAGE/python/python3}:3"
  175.22  
  175.23  compile_rules() {
  175.24 -	pip install --no-compile --root=$DESTDIR picamera
  175.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  175.26  }
  175.27  
  175.28  genpkg_rules() {
  175.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*picamera-||p' $LOGS/$PACKAGE.log)
  175.30  	copy @std
  175.31 -	DEPENDS="python"
  175.32 +	py=${PACKAGE%%-*} # python/python3
  175.33 +	DEPENDS="$py"
  175.34  }
   176.1 --- a/python-pil/receipt	Fri Sep 14 11:37:28 2018 +0300
   176.2 +++ b/python-pil/receipt	Sat Sep 22 16:05:26 2018 +0300
   176.3 @@ -1,38 +1,35 @@
   176.4 -# SliTaz package receipt.
   176.5 +# SliTaz package receipt v2.
   176.6  
   176.7 +ORIGIN="PIL"
   176.8  PACKAGE="python-pil"
   176.9 -VERSION="1.1.6"
  176.10 -CATEGORY="development"
  176.11 -SHORT_DESC="Python Imaging Library."
  176.12 +VERSION="1.1.7"
  176.13 +CATEGORY="python"
  176.14 +SHORT_DESC="Python Imaging Library"
  176.15  MAINTAINER="pascal.bellard@slitaz.org"
  176.16  LICENSE="MIT"
  176.17 -WEB_SITE="http://www.pythonware.com/products/pil/"
  176.18 -REPOLOGY="python:imaging"
  176.19 +WEB_SITE="https://pypi.org/project/$ORIGIN"
  176.20 +#HOST_ARCH
  176.21 +REPOLOGY="python:pil"
  176.22  
  176.23 -SOURCE="Imaging"
  176.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  176.25 +# pypi.org didn't provide downloads for such old project (2006) and we can't
  176.26 +# use pip to install it.
  176.27 +# Get sources from the project's homepage (also, updated from 1.1.6 to 1.1.7)
  176.28 +TARBALL="Imaging-$VERSION.tar.gz"
  176.29  WGET_URL="http://effbot.org/downloads/$TARBALL"
  176.30  
  176.31 -DEPENDS="python jpeg zlib freetype tk"
  176.32 -BUILD_DEPENDS="python python-dev jpeg-dev zlib-dev tk-dev tcl-dev"
  176.33 +BUILD_DEPENDS="python-dev tcl-dev tk-dev libjpeg-turbo-dev zlib-dev \
  176.34 +freetype-dev lcms-dev"
  176.35  
  176.36 -# Rules to configure and make the package.
  176.37 -compile_rules()
  176.38 -{
  176.39 -	python setup.py build &&
  176.40 -	python setup.py install --root=$DESTDIR
  176.41 +compile_rules() {
  176.42 +	# Python3 based compilation produce error
  176.43 +	python -B setup.py install --root=$install
  176.44 +
  176.45 +	# *** Warning: zlib 1.2.11 may contain a security vulnerability.
  176.46 +	# *** Consider upgrading to zlib 1.2.3 or newer.
  176.47 +	# :-D
  176.48  }
  176.49  
  176.50 -# Rules to gen a SliTaz package suitable for Tazpkg.
  176.51 -genpkg_rules()
  176.52 -{
  176.53 -	mkdir -p $fs
  176.54 -	cp -a $install/usr $fs
  176.55 +genpkg_rules() {
  176.56 +	copy @std
  176.57 +	DEPENDS="python freetype lcms libjpeg-turbo tcl tk zlib"
  176.58  }
  176.59 -
  176.60 -# Remove old package.
  176.61 -post_install()
  176.62 -{
  176.63 -	[ ! -d "$1/var/lib/tazpkg/installed/pil" ] ||
  176.64 -	rm -rf "$1/var/lib/tazpkg/installed/pil"
  176.65 -}
   177.1 --- a/python-pillow/receipt	Fri Sep 14 11:37:28 2018 +0300
   177.2 +++ b/python-pillow/receipt	Sat Sep 22 16:05:26 2018 +0300
   177.3 @@ -1,29 +1,25 @@
   177.4 -# SliTaz package receipt.
   177.5 +# SliTaz package receipt v2.
   177.6  
   177.7 +ORIGIN="Pillow"
   177.8  PACKAGE="python-pillow"
   177.9 -VERSION="2.3.0"
  177.10 -CATEGORY="development"
  177.11 -SHORT_DESC="Python Imaging Library (Fork)."
  177.12 +VERSION="5.2.0"
  177.13 +CATEGORY="python"
  177.14 +SHORT_DESC="Python Imaging Library (Fork)"
  177.15  MAINTAINER="pascal.bellard@slitaz.org"
  177.16  LICENSE="PSL"
  177.17 -WEB_SITE="https://pypi.org/project/Pillow/"
  177.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  177.19 +#HOST_ARCH
  177.20  REPOLOGY="python:pillow"
  177.21  
  177.22 -SOURCE="Pillow"
  177.23 -TARBALL="$SOURCE-$VERSION.zip"
  177.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  177.25 +BUILD_DEPENDS="python python3 tiff-dev"
  177.26 +SPLIT="${PACKAGE/python/python3}:3"
  177.27  
  177.28 -DEPENDS="python"
  177.29 -BUILD_DEPENDS="python-dev tiff-dev"
  177.30 -
  177.31 -# Rules to configure and make the package.
  177.32 -compile_rules()
  177.33 -{
  177.34 -	python setup.py install --root=$DESTDIR
  177.35 +compile_rules() {
  177.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  177.37  }
  177.38  
  177.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  177.40 -genpkg_rules()
  177.41 -{
  177.42 -	cp -a $install/usr $fs
  177.43 +genpkg_rules() {
  177.44 +	copy @std
  177.45 +	py=${PACKAGE%%-*} # python/python3
  177.46 +	DEPENDS="$py"
  177.47  }
   178.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   178.2 +++ b/python-pluggy/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   178.3 @@ -0,0 +1,1 @@
   178.4 +../python/.icon.png
   178.5 \ No newline at end of file
   179.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   179.2 +++ b/python-pluggy/receipt	Sat Sep 22 16:05:26 2018 +0300
   179.3 @@ -0,0 +1,25 @@
   179.4 +# SliTaz package receipt v2.
   179.5 +
   179.6 +ORIGIN="pluggy"
   179.7 +PACKAGE="python-pluggy"
   179.8 +VERSION="0.7.1"
   179.9 +CATEGORY="python"
  179.10 +SHORT_DESC="Plugin and hook calling mechanisms for Python"
  179.11 +MAINTAINER="al.bobylev@gmail.com"
  179.12 +LICENSE="MIT"
  179.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  179.14 +HOST_ARCH="any"
  179.15 +REPOLOGY="python:pluggy"
  179.16 +
  179.17 +BUILD_DEPENDS="python python3"
  179.18 +SPLIT="${PACKAGE/python/python3}:3"
  179.19 +
  179.20 +compile_rules() {
  179.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  179.22 +}
  179.23 +
  179.24 +genpkg_rules() {
  179.25 +	copy @std
  179.26 +	py="${PACKAGE%%-*}" # python/python3
  179.27 +	DEPENDS="$py"
  179.28 +}
   180.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   180.2 +++ b/python-portend/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   180.3 @@ -0,0 +1,1 @@
   180.4 +../python/.icon.png
   180.5 \ No newline at end of file
   181.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   181.2 +++ b/python-portend/receipt	Sat Sep 22 16:05:26 2018 +0300
   181.3 @@ -0,0 +1,26 @@
   181.4 +# SliTaz package receipt v2.
   181.5 +
   181.6 +ORIGIN="portend"
   181.7 +PACKAGE="python-portend"
   181.8 +VERSION="2.3"
   181.9 +CATEGORY="python"
  181.10 +SHORT_DESC="TCP port monitoring utilities"
  181.11 +MAINTAINER="al.bobylev@gmail.com"
  181.12 +LICENSE="MIT"
  181.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  181.14 +HOST_ARCH="any"
  181.15 +REPOLOGY="python:portend"
  181.16 +
  181.17 +BUILD_DEPENDS="python python-tempora \
  181.18 +python3 python3-tempora"
  181.19 +SPLIT="${PACKAGE/python/python3}:3"
  181.20 +
  181.21 +compile_rules() {
  181.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  181.23 +}
  181.24 +
  181.25 +genpkg_rules() {
  181.26 +	copy @std
  181.27 +	py="${PACKAGE%%-*}" # python/python3
  181.28 +	DEPENDS="$py $py-tempora"
  181.29 +}
   182.1 --- a/python-prettytable/receipt	Fri Sep 14 11:37:28 2018 +0300
   182.2 +++ b/python-prettytable/receipt	Sat Sep 22 16:05:26 2018 +0300
   182.3 @@ -1,31 +1,25 @@
   182.4 -# SliTaz package receipt.
   182.5 +# SliTaz package receipt v2.
   182.6  
   182.7 +ORIGIN="PrettyTable"
   182.8  PACKAGE="python-prettytable"
   182.9 -VERSION="0.6.1"
  182.10 +VERSION="0.7.2"
  182.11  CATEGORY="system-tools"
  182.12 -SHORT_DESC="Python library for easily displaying tabular data in ASCII."
  182.13 +SHORT_DESC="Python library for easily displaying tabular data in ASCII"
  182.14  MAINTAINER="pankso@slitaz.org"
  182.15  LICENSE="BSD"
  182.16 -WEB_SITE="https://pypi.org/projects/PrettyTable/"
  182.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  182.18 +HOST_ARCH="any"
  182.19  REPOLOGY="python:prettytable"
  182.20  
  182.21 -SOURCE="prettytable"
  182.22 -TARBALL="${SOURCE}-${VERSION}.tar.bz2"
  182.23 -WGET_URL="https://files.pythonhosted.org/packages/source/P/PrettyTable/$TARBALL"
  182.24 +BUILD_DEPENDS="python python3"
  182.25 +SPLIT="${PACKAGE/python/python3}:3"
  182.26  
  182.27 -DEPENDS="python"
  182.28 -BUILD_DEPENDS="python-dev python-distribute"
  182.29 -
  182.30 -# Rules to configure and make the package.
  182.31 -compile_rules()
  182.32 -{
  182.33 -	python setup.py install --root="$DESTDIR"
  182.34 +compile_rules() {
  182.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  182.36  }
  182.37  
  182.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  182.39 -genpkg_rules()
  182.40 -{
  182.41 -	mkdir -p $fs/usr
  182.42 -	cp -a $install/usr/lib $fs/usr
  182.43 +genpkg_rules() {
  182.44 +	copy @std
  182.45 +	py="${PACKAGE%%-*}" # python/python3
  182.46 +	DEPENDS="$py"
  182.47  }
  182.48 -
   183.1 --- a/python-prompt-toolkit/receipt	Fri Sep 14 11:37:28 2018 +0300
   183.2 +++ b/python-prompt-toolkit/receipt	Sat Sep 22 16:05:26 2018 +0300
   183.3 @@ -1,29 +1,25 @@
   183.4 -# SliTaz package receipt.
   183.5 +# SliTaz package receipt v2.
   183.6  
   183.7 +ORIGIN="prompt_toolkit"
   183.8  PACKAGE="python-prompt-toolkit"
   183.9 -VERSION="0.57"
  183.10 -CATEGORY="development"
  183.11 -SHORT_DESC="Library for building powerful interactive command lines in Python."
  183.12 +VERSION="2.0.4"
  183.13 +CATEGORY="python"
  183.14 +SHORT_DESC="Library for building powerful interactive command lines in Python"
  183.15  MAINTAINER="paul@slitaz.org"
  183.16 -WEB_SITE="https://github.com/jonathanslenders/python-prompt-toolkit"
  183.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  183.18 +HOST_ARCH="any"
  183.19  REPOLOGY="python:prompt-toolkit"
  183.20  
  183.21 -SOURCE="prompt_toolkit"
  183.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  183.23 -WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
  183.24 +BUILD_DEPENDS="python python-six python-wcwidth \
  183.25 +python3 python3-six python3-wcwidth"
  183.26 +SPLIT="${PACKAGE/python/python3}:3"
  183.27  
  183.28 -DEPENDS="python python-six python-pygments python-wcwidth"
  183.29 -BUILD_DEPENDS="python-dev python-six python-pygments python-wcwidth"
  183.30 -
  183.31 -# Rules to configure and make the package.
  183.32 -compile_rules()
  183.33 -{
  183.34 -	python setup.py install --root=$DESTDIR
  183.35 +compile_rules() {
  183.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  183.37  }
  183.38  
  183.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  183.40 -genpkg_rules()
  183.41 -{
  183.42 -	cp -a $install/usr $fs
  183.43 +genpkg_rules() {
  183.44 +	copy @std
  183.45 +	py="${PACKAGE%%-*}" # python/python3
  183.46 +	DEPENDS="$py $py-six $py-wcwidth"
  183.47  }
  183.48 -
   184.1 --- a/python-psutil/receipt	Fri Sep 14 11:37:28 2018 +0300
   184.2 +++ b/python-psutil/receipt	Sat Sep 22 16:05:26 2018 +0300
   184.3 @@ -1,41 +1,25 @@
   184.4 -# SliTaz package receipt.
   184.5 +# SliTaz package receipt v2.
   184.6  
   184.7 +ORIGIN="psutil"
   184.8  PACKAGE="python-psutil"
   184.9 -VERSION="0.6.1"
  184.10 -CATEGORY="development"
  184.11 -SHORT_DESC="A process and system utilities module for Python."
  184.12 +VERSION="5.4.7"
  184.13 +CATEGORY="python"
  184.14 +SHORT_DESC="Cross-platform lib for process and system monitoring in Python"
  184.15  MAINTAINER="paul@slitaz.org"
  184.16  LICENSE="BSD"
  184.17 -WEB_SITE="https://pypi.org/project/psutil/"
  184.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  184.19 +#HOST_ARCH
  184.20  REPOLOGY="python:psutil"
  184.21  
  184.22 -SOURCE="psutil"
  184.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  184.24 -WGET_URL="http://psutil.googlecode.com/files/$TARBALL" # FIXME
  184.25 +BUILD_DEPENDS="python-dev python3-dev"
  184.26 +SPLIT="${PACKAGE/python/python3}:3"
  184.27  
  184.28 -DEPENDS="python"
  184.29 -BUILD_DEPENDS="python-dev"
  184.30 -
  184.31 -# Rules to configure and make the package.
  184.32 -compile_rules()
  184.33 -{
  184.34 -	# Cross compilation hack
  184.35 -	case "$ARCH" in
  184.36 -		arm*)
  184.37 -			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
  184.38 -			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
  184.39 -				/usr/bin/i486-slitaz-linux-gcc ;;
  184.40 -	esac &&
  184.41 -	python setup.py install --root=$DESTDIR
  184.42 -	case "$ARCH" in
  184.43 -		arm*) 
  184.44 -			rm /usr/bin/i486-slitaz-linux-gcc &&
  184.45 -			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
  184.46 -	esac
  184.47 +compile_rules() {
  184.48 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  184.49  }
  184.50  
  184.51 -# Rules to gen a SliTaz package suitable for Tazpkg.
  184.52 -genpkg_rules()
  184.53 -{
  184.54 -	cp -a $install/usr $fs
  184.55 +genpkg_rules() {
  184.56 +	copy @std
  184.57 +	py="${PACKAGE%%-*}" # python/python3
  184.58 +	DEPENDS="$py"
  184.59  }
   185.1 --- a/python-psycopg2/receipt	Fri Sep 14 11:37:28 2018 +0300
   185.2 +++ b/python-psycopg2/receipt	Sat Sep 22 16:05:26 2018 +0300
   185.3 @@ -1,22 +1,25 @@
   185.4  # SliTaz package receipt v2.
   185.5  
   185.6 +ORIGIN="psycopg2"
   185.7  PACKAGE="python-psycopg2"
   185.8 -VERSION="latest"
   185.9 -CATEGORY="development"
  185.10 +VERSION="2.7.5"
  185.11 +CATEGORY="python"
  185.12  SHORT_DESC="PostgreSQL database adapter for the Python"
  185.13  MAINTAINER="pascal.bellard@slitaz.org"
  185.14  LICENSE="LGPL ZPL"
  185.15 -WEB_SITE="https://pypi.org/project/psycopg2/"
  185.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  185.17 +#HOST_ARCH
  185.18  REPOLOGY="python:psycopg2"
  185.19  
  185.20 -BUILD_DEPENDS="python-dev"
  185.21 +BUILD_DEPENDS="python python3"
  185.22 +SPLIT="${PACKAGE/python/python3}:3"
  185.23  
  185.24  compile_rules() {
  185.25 -	pip install --no-compile --root=$DESTDIR psycopg2
  185.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  185.27  }
  185.28  
  185.29  genpkg_rules() {
  185.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*psycopg2-||p' $LOGS/$PACKAGE.log)
  185.31  	copy @std
  185.32 -	DEPENDS="python"
  185.33 +	py="${PACKAGE%%-*}" # python/python3
  185.34 +	DEPENDS="$py"
  185.35  }
   186.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   186.2 +++ b/python-ptyprocess/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   186.3 @@ -0,0 +1,1 @@
   186.4 +../python/.icon.png
   186.5 \ No newline at end of file
   187.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   187.2 +++ b/python-ptyprocess/receipt	Sat Sep 22 16:05:26 2018 +0300
   187.3 @@ -0,0 +1,25 @@
   187.4 +# SliTaz package receipt v2.
   187.5 +
   187.6 +ORIGIN="ptyprocess"
   187.7 +PACKAGE="python-ptyprocess"
   187.8 +VERSION="0.6.0"
   187.9 +CATEGORY="python"
  187.10 +SHORT_DESC="Run a subprocess in a pseudo terminal"
  187.11 +MAINTAINER="al.bobylev@gmail.com"
  187.12 +LICENSE="ISCL"
  187.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  187.14 +HOST_ARCH="any"
  187.15 +REPOLOGY="python:ptyprocess"
  187.16 +
  187.17 +BUILD_DEPENDS="python python3"
  187.18 +SPLIT="${PACKAGE/python/python3}:3"
  187.19 +
  187.20 +compile_rules() {
  187.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  187.22 +}
  187.23 +
  187.24 +genpkg_rules() {
  187.25 +	copy @std
  187.26 +	py="${PACKAGE%%-*}" # python/python3
  187.27 +	DEPENDS="$py"
  187.28 +}
   188.1 --- a/python-punjab/receipt	Fri Sep 14 11:37:28 2018 +0300
   188.2 +++ b/python-punjab/receipt	Sat Sep 22 16:05:26 2018 +0300
   188.3 @@ -1,24 +1,26 @@
   188.4  # SliTaz package receipt v2.
   188.5  
   188.6 +ORIGIN="punjab"
   188.7  PACKAGE="python-punjab"
   188.8 -VERSION="latest"
   188.9 +VERSION="0.15"
  188.10  CATEGORY="network"
  188.11  SHORT_DESC="HTTP jabber proxy allowing persistent client connections"
  188.12  MAINTAINER="pascal.bellard@slitaz.org"
  188.13  LICENSE="GPL2"
  188.14 -WEB_SITE="https://pypi.org/project/punjab/"
  188.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  188.16  HOST_ARCH="any"
  188.17  REPOLOGY="python:punjab"
  188.18  
  188.19 -BUILD_DEPENDS="python"
  188.20 +BUILD_DEPENDS="python python3"
  188.21 +SPLIT="${PACKAGE/python/python3}:3"
  188.22  
  188.23  compile_rules() {
  188.24 -	pip install --no-compile --root=$DESTDIR punjab
  188.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  188.26  }
  188.27  
  188.28  genpkg_rules() {
  188.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*punjab-||p' $LOGS/$PACKAGE.log)
  188.30  	copy @std
  188.31 -	DEPENDS="python   twisted pyopenssl"
  188.32 +	py="${PACKAGE%%-*}" # python/python3
  188.33 +	DEPENDS="$python   twisted $py-pyopenssl"
  188.34  	CONFIG_FILES="/etc/punjab.tac"
  188.35  }
   189.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   189.2 +++ b/python-py-restclient/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   189.3 @@ -0,0 +1,1 @@
   189.4 +../python/.icon.png
   189.5 \ No newline at end of file
   190.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   190.2 +++ b/python-py-restclient/receipt	Sat Sep 22 16:05:26 2018 +0300
   190.3 @@ -0,0 +1,25 @@
   190.4 +# SliTaz package receipt v2.
   190.5 +
   190.6 +ORIGIN="py-restclient"
   190.7 +PACKAGE="python-py-restclient"
   190.8 +VERSION="1.3.3"
   190.9 +CATEGORY="python"
  190.10 +SHORT_DESC="Python REST client"
  190.11 +MAINTAINER="claudinei@slitaz.org"
  190.12 +LICENSE="MIT"
  190.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  190.14 +HOST_ARCH="any"
  190.15 +REPOLOGY="python:py-restclient"
  190.16 +
  190.17 +BUILD_DEPENDS="python python-httplib2  python3 python3-httplib2"
  190.18 +SPLIT="${PACKAGE/python/python3}:3"
  190.19 +
  190.20 +compile_rules() {
  190.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  190.22 +}
  190.23 +
  190.24 +genpkg_rules() {
  190.25 +	copy @std
  190.26 +	py="${PACKAGE%%-*}" # python/python3
  190.27 +	DEPENDS="$py $py-httplib2"
  190.28 +}
   191.1 --- a/python-py/receipt	Fri Sep 14 11:37:28 2018 +0300
   191.2 +++ b/python-py/receipt	Sat Sep 22 16:05:26 2018 +0300
   191.3 @@ -1,32 +1,25 @@
   191.4 -# SliTaz package receipt.
   191.5 +# SliTaz package receipt v2.
   191.6  
   191.7 +ORIGIN="py"
   191.8  PACKAGE="python-py"
   191.9 -VERSION="1.4.13"
  191.10 -CATEGORY="development"
  191.11 -SHORT_DESC="Library with cross-python path, ini-parsing, io, code, log facilities."
  191.12 +VERSION="1.6.0"
  191.13 +CATEGORY="python"
  191.14 +SHORT_DESC="Library with cross-python path, ini-parsing, io, code, log facilities"
  191.15  MAINTAINER="pascal.bellard@slitaz.org"
  191.16  LICENSE="MIT"
  191.17 -WEB_SITE="https://pypi.org/project/py/"
  191.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  191.19 +HOST_ARCH="any"
  191.20  REPOLOGY="python:py"
  191.21  
  191.22 -SOURCE="py"
  191.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  191.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  191.25 +BUILD_DEPENDS="python python3"
  191.26 +SPLIT="${PACKAGE/python/python3}:3"
  191.27  
  191.28 -DEPENDS="python"
  191.29 -BUILD_DEPENDS="python-dev"
  191.30 -
  191.31 -# Rules to configure and make the package.
  191.32 -compile_rules()
  191.33 -{
  191.34 -	python setup.py build
  191.35 -	python setup.py test
  191.36 -	python setup.py install --root=$DESTDIR
  191.37 +compile_rules() {
  191.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  191.39  }
  191.40  
  191.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  191.42 -genpkg_rules()
  191.43 -{
  191.44 -	mkdir -p $fs/usr
  191.45 -	cp -a $install/usr/lib $fs/usr
  191.46 +genpkg_rules() {
  191.47 +	copy @std
  191.48 +	py="${PACKAGE%%-*}" # python/python3
  191.49 +	DEPENDS="$py"
  191.50  }
   192.1 --- a/python-pyalsaaudio/receipt	Fri Sep 14 11:37:28 2018 +0300
   192.2 +++ b/python-pyalsaaudio/receipt	Sat Sep 22 16:05:26 2018 +0300
   192.3 @@ -1,31 +1,25 @@
   192.4 -# SliTaz package receipt.
   192.5 +# SliTaz package receipt v2.
   192.6  
   192.7 +ORIGIN="pyalsaaudio"
   192.8  PACKAGE="python-pyalsaaudio"
   192.9 -VERSION="0.5"
  192.10 +VERSION="0.8.4"
  192.11  CATEGORY="multimedia"
  192.12 -SHORT_DESC="ALSA wrapper for Python."
  192.13 +SHORT_DESC="ALSA bindings"
  192.14  MAINTAINER="pankso@slitaz.org"
  192.15  LICENSE="PSL"
  192.16 -WEB_SITE="https://sourceforge.net/projects/pyalsaaudio/"
  192.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  192.18 +#HOST_ARCH
  192.19  REPOLOGY="python:pyalsaaudio"
  192.20  
  192.21 -SOURCE="pyalsaaudio"
  192.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  192.23 -WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
  192.24 -TAGS="python"
  192.25 +BUILD_DEPENDS="python-dev python3-dev alsa-lib-dev"
  192.26 +SPLIT="${PACKAGE/python/python3}:3"
  192.27  
  192.28 -DEPENDS="alsa-lib python"
  192.29 -BUILD_DEPENDS="python python-dev alsa-lib-dev"
  192.30 -
  192.31 -# Rules to configure and make the package.
  192.32 -compile_rules()
  192.33 -{
  192.34 -	cd $src
  192.35 -	python setup.py install --root=$DESTDIR
  192.36 +compile_rules() {
  192.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  192.38  }
  192.39  
  192.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  192.41 -genpkg_rules()
  192.42 -{
  192.43 -	cp -a $install/usr $fs
  192.44 +genpkg_rules() {
  192.45 +	copy @std
  192.46 +	py="${PACKAGE%%-*}" # python/python3
  192.47 +	DEPENDS="$py alsa-lib"
  192.48  }
   193.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   193.2 +++ b/python-pyasn1-modules/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   193.3 @@ -0,0 +1,1 @@
   193.4 +../python/.icon.png
   193.5 \ No newline at end of file
   194.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   194.2 +++ b/python-pyasn1-modules/receipt	Sat Sep 22 16:05:26 2018 +0300
   194.3 @@ -0,0 +1,25 @@
   194.4 +# SliTaz package receipt v2.
   194.5 +
   194.6 +ORIGIN="pyasn1-modules"
   194.7 +PACKAGE="python-pyasn1-modules"
   194.8 +VERSION="0.2.2"
   194.9 +CATEGORY="python"
  194.10 +SHORT_DESC="A collection of ASN.1-based protocols modules"
  194.11 +MAINTAINER="al.bobylev@gmail.com"
  194.12 +LICENSE="BSD"
  194.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  194.14 +HOST_ARCH="any"
  194.15 +REPOLOGY="python:pyasn1-modules"
  194.16 +
  194.17 +BUILD_DEPENDS="python python-pyasn1  python3 python3-pyasn1"
  194.18 +SPLIT="${PACKAGE/python/python3}:3"
  194.19 +
  194.20 +compile_rules() {
  194.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  194.22 +}
  194.23 +
  194.24 +genpkg_rules() {
  194.25 +	copy @std
  194.26 +	py=${PACKAGE%%-*} # python/python3
  194.27 +	DEPENDS="$py $py-pyasn1"
  194.28 +}
   195.1 --- a/python-pyasn1/receipt	Fri Sep 14 11:37:28 2018 +0300
   195.2 +++ b/python-pyasn1/receipt	Sat Sep 22 16:05:26 2018 +0300
   195.3 @@ -1,23 +1,25 @@
   195.4  # SliTaz package receipt v2.
   195.5  
   195.6 +ORIGIN="pyasn1"
   195.7  PACKAGE="python-pyasn1"
   195.8 -VERSION="latest"
   195.9 -CATEGORY="development"
  195.10 +VERSION="0.4.4"
  195.11 +CATEGORY="python"
  195.12  SHORT_DESC="ASN.1 types and codecs"
  195.13  MAINTAINER="pascal.bellard@slitaz.org"
  195.14  LICENSE="BSD"
  195.15 -WEB_SITE="https://pypi.org/project/pyasn1/"
  195.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  195.17  HOST_ARCH="any"
  195.18  REPOLOGY="python:pyasn1"
  195.19  
  195.20 -BUILD_DEPENDS="python"
  195.21 +BUILD_DEPENDS="python python3"
  195.22 +SPLIT="${PACKAGE/python/python3}:3"
  195.23  
  195.24  compile_rules() {
  195.25 -	pip install --no-compile --root=$DESTDIR pyasn1
  195.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  195.27  }
  195.28  
  195.29  genpkg_rules() {
  195.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pyasn1-||p' $LOGS/$PACKAGE.log)
  195.31  	copy @std
  195.32 -	DEPENDS="python"
  195.33 +	py=${PACKAGE%%-*} # python/python3
  195.34 +	DEPENDS="$py"
  195.35  }
   196.1 --- a/python-pyaudio/receipt	Fri Sep 14 11:37:28 2018 +0300
   196.2 +++ b/python-pyaudio/receipt	Sat Sep 22 16:05:26 2018 +0300
   196.3 @@ -1,22 +1,26 @@
   196.4  # SliTaz package receipt v2.
   196.5  
   196.6 +ORIGIN="PyAudio"
   196.7  PACKAGE="python-pyaudio"
   196.8 -VERSION="latest"
   196.9 -CATEGORY="development"
  196.10 -SHORT_DESC="PyAudio provides Python bindings for PortAudio"
  196.11 +VERSION="0.2.11"
  196.12 +CATEGORY="python"
  196.13 +SHORT_DESC="Bindings for PortAudio v19, the cross-platform audio input/output \
  196.14 +stream library"
  196.15  MAINTAINER="paul@slitaz.org"
  196.16  LICENSE="unknown"
  196.17 -WEB_SITE="https://pypi.org/project/PyAudio/"
  196.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  196.19 +#HOST_ARCH
  196.20  REPOLOGY="python:pyaudio"
  196.21  
  196.22 -BUILD_DEPENDS="python-dev portaudio-dev"
  196.23 +BUILD_DEPENDS="python-dev python3-dev portaudio-dev"
  196.24 +SPLIT="${PACKAGE/python/python3}:3"
  196.25  
  196.26  compile_rules() {
  196.27 -	pip install --no-compile --root=$DESTDIR PyAudio
  196.28 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  196.29  }
  196.30  
  196.31  genpkg_rules() {
  196.32 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyAudio-||p' $LOGS/$PACKAGE.log)
  196.33  	copy @std
  196.34 -	DEPENDS="python portaudio"
  196.35 +	py=${PACKAGE%%-*} # python/python3
  196.36 +	DEPENDS="$py portaudio"
  196.37  }
   197.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   197.2 +++ b/python-pybarcode/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   197.3 @@ -0,0 +1,1 @@
   197.4 +../python/.icon.png
   197.5 \ No newline at end of file
   198.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   198.2 +++ b/python-pybarcode/receipt	Sat Sep 22 16:05:26 2018 +0300
   198.3 @@ -0,0 +1,25 @@
   198.4 +# SliTaz package receipt v2.
   198.5 +
   198.6 +ORIGIN="pyBarcode"
   198.7 +PACKAGE="python-pybarcode"
   198.8 +VERSION="0.7"
   198.9 +CATEGORY="development"
  198.10 +SHORT_DESC="Create standard barcodes"
  198.11 +MAINTAINER="pascal.bellard@slitaz.org"
  198.12 +LICENSE="MIT"
  198.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  198.14 +HOST_ARCH="any"
  198.15 +REPOLOGY="python:pybarcode"
  198.16 +
  198.17 +BUILD_DEPENDS="python python3"
  198.18 +SPLIT="${PACKAGE/python/python3}:3"
  198.19 +
  198.20 +compile_rules() {
  198.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  198.22 +}
  198.23 +
  198.24 +genpkg_rules() {
  198.25 +	copy @std
  198.26 +	py="${PACKAGE%%-*}" # python/python3
  198.27 +	DEPENDS="$py"
  198.28 +}
   199.1 --- a/python-pybluez/receipt	Fri Sep 14 11:37:28 2018 +0300
   199.2 +++ b/python-pybluez/receipt	Sat Sep 22 16:05:26 2018 +0300
   199.3 @@ -1,31 +1,25 @@
   199.4 -# SliTaz package receipt.
   199.5 +# SliTaz package receipt v2.
   199.6  
   199.7 +ORIGIN="PyBluez"
   199.8  PACKAGE="python-pybluez"
   199.9 -VERSION="0.18"
  199.10 -CATEGORY="development"
  199.11 -SHORT_DESC="Python wrappers around system Bluetooth."
  199.12 +VERSION="0.22"
  199.13 +CATEGORY="python"
  199.14 +SHORT_DESC="Python wrappers around system Bluetooth"
  199.15  MAINTAINER="pankso@slitaz.org"
  199.16  LICENSE="GPL"
  199.17 -WEB_SITE="https://pypi.org/project/PyBluez/"
  199.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  199.19 +#HOST_ARCH
  199.20  REPOLOGY="python:pybluez"
  199.21  
  199.22 -SOURCE="PyBluez"
  199.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  199.24 -WGET_URL="http://pybluez.googlecode.com/files/$TARBALL" # FIXME
  199.25 +BUILD_DEPENDS="python-dev python3-dev bluez-dev"
  199.26 +SPLIT="${PACKAGE/python/python3}:3"
  199.27  
  199.28 -DEPENDS="python bluez"
  199.29 -BUILD_DEPENDS="$DEPENDS python-dev bluez-dev"
  199.30 -
  199.31 -# Rules to configure and make the package.
  199.32 -compile_rules()
  199.33 -{
  199.34 -	python setup.py build &&
  199.35 -	python setup.py install --root=$DESTDIR
  199.36 +compile_rules() {
  199.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  199.38  }
  199.39  
  199.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  199.41 -genpkg_rules()
  199.42 -{
  199.43 -	mkdir -p $fs
  199.44 -	cp -a $install/usr $fs
  199.45 +genpkg_rules() {
  199.46 +	copy @std
  199.47 +	py="${PACKAGE%%-*}" # python/python3
  199.48 +	DEPENDS="$py bluez"
  199.49  }
   200.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   200.2 +++ b/python-pycairo/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   200.3 @@ -0,0 +1,1 @@
   200.4 +../python/.icon.png
   200.5 \ No newline at end of file
   201.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   201.2 +++ b/python-pycairo/receipt	Sat Sep 22 16:05:26 2018 +0300
   201.3 @@ -0,0 +1,33 @@
   201.4 +# SliTaz package receipt v2.
   201.5 +
   201.6 +ORIGIN="pycairo"
   201.7 +PACKAGE="python-pycairo"
   201.8 +VERSION="1.17.1"
   201.9 +CATEGORY="python"
  201.10 +SHORT_DESC="Python interface for cairo"
  201.11 +MAINTAINER="erjo@slitaz.org"
  201.12 +LICENSE="MPL LGPL2.1"
  201.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  201.14 +#HOST_ARCH
  201.15 +REPOLOGY="python:pycairo"
  201.16 +
  201.17 +BUILD_DEPENDS="python-dev python3-dev cairo-dev"
  201.18 +SPLIT="$PACKAGE-dev ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
  201.19 +
  201.20 +compile_rules() {
  201.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  201.22 +}
  201.23 +
  201.24 +genpkg_rules() {
  201.25 +	case $PACKAGE in
  201.26 +		*-dev)
  201.27 +			copy @dev
  201.28 +			DEPENDS="${PACKAGE%%-dev} cairo-dev"
  201.29 +			;;
  201.30 +		*)
  201.31 +			copy @std
  201.32 +			py="${PACKAGE%%-*}" # python/python3
  201.33 +			DEPENDS="$py cairo"
  201.34 +			;;
  201.35 +	esac
  201.36 +}
   202.1 --- a/python-pychart/receipt	Fri Sep 14 11:37:28 2018 +0300
   202.2 +++ b/python-pychart/receipt	Sat Sep 22 16:05:26 2018 +0300
   202.3 @@ -1,39 +1,26 @@
   202.4 -# SliTaz package receipt.
   202.5 +# SliTaz package receipt v2.
   202.6  
   202.7 +# pypi.org didn't provide downloads for PyChart, but we can use Python-Chart
   202.8 +ORIGIN="Python-Chart"
   202.9  PACKAGE="python-pychart"
  202.10  VERSION="1.39"
  202.11 -CATEGORY="development"
  202.12 -SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG."
  202.13 +CATEGORY="python"
  202.14 +SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG"
  202.15  MAINTAINER="pascal.bellard@slitaz.org"
  202.16 -LICENSE="GPL"
  202.17 -WEB_SITE="https://pypi.org/project/PyChart/"
  202.18 +LICENSE="GPL2"
  202.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  202.20 +HOST_ARCH="any"
  202.21  REPOLOGY="python:pychart"
  202.22  
  202.23 -SOURCE="PyChart"
  202.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  202.25 -WGET_URL="http://download.gna.org/pychart/$TARBALL" # FIXME
  202.26 +BUILD_DEPENDS="python python3"
  202.27 +SPLIT="${PACKAGE/python/python3}:3"
  202.28  
  202.29 -DEPENDS="python"
  202.30 -BUILD_DEPENDS="python"
  202.31 -
  202.32 -# Rules to configure and make the package.
  202.33 -compile_rules()
  202.34 -{
  202.35 -	python setup.py build
  202.36 -	python setup.py install --root=$DESTDIR
  202.37 +compile_rules() {
  202.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  202.39  }
  202.40  
  202.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  202.42 -genpkg_rules()
  202.43 -{
  202.44 -	mkdir -p $fs
  202.45 -	cp -a $install/usr $fs
  202.46 +genpkg_rules() {
  202.47 +	copy @std
  202.48 +	py="${PACKAGE%%-*}" # python/python3
  202.49 +	DEPENDS="$py"
  202.50  }
  202.51 -
  202.52 -# Remove old package.
  202.53 -post_install()
  202.54 -{
  202.55 -	[ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
  202.56 -	rm -rf "$1/var/lib/tazpkg/installed/pychart"
  202.57 -}
  202.58 -
   203.1 --- a/python-pycodestyle/receipt	Fri Sep 14 11:37:28 2018 +0300
   203.2 +++ b/python-pycodestyle/receipt	Sat Sep 22 16:05:26 2018 +0300
   203.3 @@ -1,23 +1,38 @@
   203.4  # SliTaz package receipt v2.
   203.5  
   203.6 +ORIGIN="pycodestyle"
   203.7  PACKAGE="python-pycodestyle"
   203.8 -VERSION="latest"
   203.9 -CATEGORY="development"
  203.10 +VERSION="2.4.0"
  203.11 +VERSION23="2.3.1" # python-flake8 requres 'pycodestyle<2.4.0,>=2.0.0'
  203.12 +CATEGORY="python"
  203.13  SHORT_DESC="Python style guide checker"
  203.14  MAINTAINER="al.bobylev@gmail.com"
  203.15  LICENSE="MIT"
  203.16 -WEB_SITE="https://pypi.org/project/pycodestyle/"
  203.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  203.18  HOST_ARCH="any"
  203.19  REPOLOGY="python:pycodestyle"
  203.20  
  203.21 -BUILD_DEPENDS="python"
  203.22 +BUILD_DEPENDS="python python3"
  203.23 +SPLIT="python3-pycodestyle:3 \
  203.24 +python-pycodestyle23:23 python3-pycodestyle23:233"
  203.25  
  203.26  compile_rules() {
  203.27 -	pip install --no-compile --root=$DESTDIR pycodestyle
  203.28 +	case $SET in
  203.29 +		'')  pip  install --no-compile --root=$install $ORIGIN==$VERSION;;
  203.30 +		3)   pip3 install --no-compile --root=$install $ORIGIN==$VERSION;;
  203.31 +		23)  pip  install --no-compile --root=$install $ORIGIN==$VERSION23;;
  203.32 +		233) pip3 install --no-compile --root=$install $ORIGIN==$VERSION23;;
  203.33 +	esac
  203.34  }
  203.35  
  203.36  genpkg_rules() {
  203.37 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pycodestyle-||p' $LOGS/$PACKAGE.log)
  203.38 +	case $PACKAGE in
  203.39 +		*-pycodestyle23)
  203.40 +			VERSION="$VERSION23"
  203.41 +			CAT="python|legacy version $VERSION23"
  203.42 +			;;
  203.43 +	esac
  203.44  	copy @std
  203.45 -	DEPENDS="python"
  203.46 +	py=${PACKAGE%%-*} # python/python3
  203.47 +	DEPENDS="$py"
  203.48  }
   204.1 --- a/python-pycodestyle23/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   204.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   204.3 @@ -1,1 +0,0 @@
   204.4 -../python/.icon.png
   204.5 \ No newline at end of file
   205.1 --- a/python-pycodestyle23/receipt	Fri Sep 14 11:37:28 2018 +0300
   205.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   205.3 @@ -1,25 +0,0 @@
   205.4 -# SliTaz package receipt v2.
   205.5 -
   205.6 -PACKAGE="python-pycodestyle23"
   205.7 -VERSION="latest2.3"
   205.8 -CATEGORY="development"
   205.9 -SHORT_DESC="Python style guide checker (for python-flake8)"
  205.10 -MAINTAINER="al.bobylev@gmail.com"
  205.11 -LICENSE="MIT"
  205.12 -WEB_SITE="https://pypi.org/project/pycodestyle/"
  205.13 -HOST_ARCH="any"
  205.14 -REPOLOGY="python:pycodestyle"
  205.15 -
  205.16 -BUILD_DEPENDS="python"
  205.17 -
  205.18 -LEGACY_OF="python-pycodestyle" # python-flake8 requres 'pycodestyle<2.4.0,>=2.0.0' while latest is 2.4.0
  205.19 -
  205.20 -compile_rules() {
  205.21 -	pip install --no-compile --root=$DESTDIR 'pycodestyle<2.4.0,>=2.0.0'
  205.22 -}
  205.23 -
  205.24 -genpkg_rules() {
  205.25 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pycodestyle-||p' $LOGS/$PACKAGE.log)
  205.26 -	copy @std
  205.27 -	DEPENDS="python"
  205.28 -}
   206.1 --- a/python-pycparser/receipt	Fri Sep 14 11:37:28 2018 +0300
   206.2 +++ b/python-pycparser/receipt	Sat Sep 22 16:05:26 2018 +0300
   206.3 @@ -1,23 +1,25 @@
   206.4  # SliTaz package receipt v2.
   206.5  
   206.6 +ORIGIN="pycparser"
   206.7  PACKAGE="python-pycparser"
   206.8 -VERSION="latest"
   206.9 +VERSION="2.18"
  206.10  CATEGORY="python"
  206.11  SHORT_DESC="C parser in Python"
  206.12  MAINTAINER="al.bobylev@gmail.com"
  206.13  LICENSE="MIT"
  206.14 -WEB_SITE="https://pypi.org/project/pycparser/"
  206.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  206.16  HOST_ARCH="any"
  206.17  REPOLOGY="python:pycparser"
  206.18  
  206.19 -BUILD_DEPENDS="python"
  206.20 +BUILD_DEPENDS="python python3"
  206.21 +SPLIT="${PACKAGE/python/python3}:3"
  206.22  
  206.23  compile_rules() {
  206.24 -	pip install --no-compile --root=$DESTDIR pycparser
  206.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  206.26  }
  206.27  
  206.28  genpkg_rules() {
  206.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pycparser-||p' $LOGS/$PACKAGE.log)
  206.30  	copy @std
  206.31 -	DEPENDS="python"
  206.32 +	py="${PACKAGE%%-*}" # python/python3
  206.33 +	DEPENDS="$py"
  206.34  }
   207.1 --- a/python-pycryptopp/receipt	Fri Sep 14 11:37:28 2018 +0300
   207.2 +++ b/python-pycryptopp/receipt	Sat Sep 22 16:05:26 2018 +0300
   207.3 @@ -1,31 +1,25 @@
   207.4 -# SliTaz package receipt.
   207.5 +# SliTaz package receipt v2.
   207.6  
   207.7 +ORIGIN="pycryptopp"
   207.8  PACKAGE="python-pycryptopp"
   207.9 -VERSION="0.6.0"
  207.10 -CATEGORY="development"
  207.11 -SHORT_DESC="Wrapper around a few algorithms from Crypto++ and python-Ed25519."
  207.12 +VERSION="0.7.1"
  207.13 +RANDOM_NUM="869544967005693312591928092448767568728501330214"
  207.14 +CATEGORY="python"
  207.15 +SHORT_DESC="Wrapper around a few algorithms from Crypto++ and python-Ed25519"
  207.16  MAINTAINER="pascal.bellard@slitaz.org"
  207.17  LICENSE="GPL"
  207.18 -WEB_SITE="https://pypi.org/project/pycryptopp/"
  207.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  207.20 +#HOST_ARCH
  207.21  REPOLOGY="python:pycryptopp"
  207.22  
  207.23 -SOURCE="pycryptopp"
  207.24 -TARBALL="$SOURCE-$VERSION.1206569328141510525648634803928199668821045408958.tar.gz"
  207.25 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  207.26 -
  207.27 -DEPENDS="python"
  207.28  BUILD_DEPENDS="python-dev"
  207.29  
  207.30 -# Rules to configure and make the package.
  207.31 -compile_rules()
  207.32 -{
  207.33 -	python setup.py build
  207.34 -	python setup.py install --root=$DESTDIR
  207.35 +compile_rules() {
  207.36 +	# Python3 based compilation produce error
  207.37 +	pip install --no-compile --root=$install $ORIGIN==$VERSION.$RANDOM_NUM
  207.38  }
  207.39  
  207.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  207.41 -genpkg_rules()
  207.42 -{
  207.43 -	mkdir -p $fs/usr
  207.44 -	cp -a $install/usr/lib $fs/usr
  207.45 +genpkg_rules() {
  207.46 +	copy @std
  207.47 +	DEPENDS="python"
  207.48  }
   208.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   208.2 +++ b/python-pycups/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   208.3 @@ -0,0 +1,1 @@
   208.4 +../python/.icon.png
   208.5 \ No newline at end of file
   209.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   209.2 +++ b/python-pycups/receipt	Sat Sep 22 16:05:26 2018 +0300
   209.3 @@ -0,0 +1,25 @@
   209.4 +# SliTaz package receipt v2.
   209.5 +
   209.6 +ORIGIN="pycups"
   209.7 +PACKAGE="python-pycups"
   209.8 +VERSION="1.9.73"
   209.9 +CATEGORY="python"
  209.10 +SHORT_DESC="Python bindings for libcups"
  209.11 +MAINTAINER="pascal.bellard@slitaz.org"
  209.12 +LICENSE="GPL2"
  209.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  209.14 +#HOST_ARCH
  209.15 +REPOLOGY="python:pycups"
  209.16 +
  209.17 +BUILD_DEPENDS="python-dev python3-dev cups-dev"
  209.18 +SPLIT="${PACKAGE/python/python3}:3"
  209.19 +
  209.20 +compile_rules() {
  209.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  209.22 +}
  209.23 +
  209.24 +genpkg_rules() {
  209.25 +	copy @std
  209.26 +	py="${PACKAGE%%-*}" # python/python3
  209.27 +	DEPENDS="$py libcups"
  209.28 +}
   210.1 --- a/python-pydot/receipt	Fri Sep 14 11:37:28 2018 +0300
   210.2 +++ b/python-pydot/receipt	Sat Sep 22 16:05:26 2018 +0300
   210.3 @@ -1,39 +1,25 @@
   210.4 -# SliTaz package receipt.
   210.5 +# SliTaz package receipt v2.
   210.6  
   210.7 +ORIGIN="pydot"
   210.8  PACKAGE="python-pydot"
   210.9 -VERSION="1.0.2"
  210.10 -CATEGORY="development"
  210.11 -SHORT_DESC="Python interface to Graphviz's dot language."
  210.12 +VERSION="1.2.4"
  210.13 +CATEGORY="python"
  210.14 +SHORT_DESC="Python interface to Graphviz's Dot"
  210.15  MAINTAINER="pascal.bellard@slitaz.org"
  210.16  LICENSE="MIT"
  210.17 -WEB_SITE="https://pypi.org/project/pydot/"
  210.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  210.19 +#HOST_ARCH
  210.20  REPOLOGY="python:pydot"
  210.21  
  210.22 -SOURCE="pydot"
  210.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  210.24 -WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL" # FIXME
  210.25 +BUILD_DEPENDS="python-dev python-pyparsing  python3-dev python3-pyparsing"
  210.26 +SPLIT="${PACKAGE/python/python3}:3"
  210.27  
  210.28 -DEPENDS="python python-pyparsing graphviz"
  210.29 -BUILD_DEPENDS="python"
  210.30 -
  210.31 -# Rules to configure and make the package.
  210.32 -compile_rules()
  210.33 -{
  210.34 -	python setup.py build
  210.35 -	python setup.py install --root=$DESTDIR
  210.36 +compile_rules() {
  210.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  210.38  }
  210.39  
  210.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  210.41 -genpkg_rules()
  210.42 -{
  210.43 -	mkdir -p $fs/usr
  210.44 -	cp -a $install/usr/lib $fs/usr
  210.45 +genpkg_rules() {
  210.46 +	copy @std
  210.47 +	py="${PACKAGE%%-*}" # python/python3
  210.48 +	DEPENDS="$py $py-pyparsing graphviz"
  210.49  }
  210.50 -
  210.51 -# Remove old package.
  210.52 -post_install()
  210.53 -{
  210.54 -	[ ! -d "$1/var/lib/tazpkg/installed/pydot" ] ||
  210.55 -	rm -rf "$1/var/lib/tazpkg/installed/pydot"
  210.56 -}
  210.57 -
   211.1 --- a/python-pyexiv2/receipt	Fri Sep 14 11:37:28 2018 +0300
   211.2 +++ b/python-pyexiv2/receipt	Sat Sep 22 16:05:26 2018 +0300
   211.3 @@ -1,30 +1,27 @@
   211.4 -# SliTaz package receipt.
   211.5 +# SliTaz package receipt v2.
   211.6  
   211.7  PACKAGE="python-pyexiv2"
   211.8  VERSION="0.3.2"
   211.9 -CATEGORY="development"
  211.10 -SHORT_DESC="Python binding for manipulation of EXIF, IPTC and XMP metadata."
  211.11 +CATEGORY="python"
  211.12 +SHORT_DESC="Python binding for manipulation of EXIF, IPTC and XMP metadata"
  211.13  MAINTAINER="pascal.bellard@slitaz.org"
  211.14  LICENSE="GPL2"
  211.15  WEB_SITE="https://web.archive.org/web/20170823035430/http://tilloy.net/dev/pyexiv2/"
  211.16 +WEB_SITE="https://launchpad.net/pyexiv2"
  211.17  REPOLOGY="pyexiv2" # python:pyexiv2
  211.18  
  211.19 -SOURCE="pyexiv2"
  211.20 -TARBALL="$SOURCE-$VERSION.tar.bz2"
  211.21 -WGET_URL="https://launchpad.net/$SOURCE/${VERSION%?}x/$VERSION/+download/$TARBALL"
  211.22 +TARBALL="pyexiv2-$VERSION.tar.bz2"
  211.23 +WGET_URL="https://launchpad.net/pyexiv2/${VERSION%?}x/$VERSION/+download/$TARBALL"
  211.24  
  211.25 -DEPENDS="python exiv2 boost-python"
  211.26 -BUILD_DEPENDS="python-dev wget scons exiv2-dev boost-dev boost-python"
  211.27 +BUILD_DEPENDS="python-dev scons exiv2-dev boost-dev boost-python"
  211.28  
  211.29 -# Rules to configure and make the package.
  211.30 -compile_rules()
  211.31 -{
  211.32 -	scons PREFIX=/usr
  211.33 +compile_rules() {
  211.34 +# broken
  211.35 +	scons PREFIX=/usr &&
  211.36  	scons -k DESTDIR=$DESTDIR install
  211.37  }
  211.38  
  211.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  211.40 -genpkg_rules()
  211.41 -{
  211.42 -	cp -a $install/usr $fs
  211.43 +genpkg_rules() {
  211.44 +	copy @std
  211.45 +	DEPENDS="python exiv2 boost-python"
  211.46  }
   212.1 --- a/python-pyflakes/receipt	Fri Sep 14 11:37:28 2018 +0300
   212.2 +++ b/python-pyflakes/receipt	Sat Sep 22 16:05:26 2018 +0300
   212.3 @@ -1,23 +1,38 @@
   212.4  # SliTaz package receipt v2.
   212.5  
   212.6 +ORIGIN="pyflakes"
   212.7  PACKAGE="python-pyflakes"
   212.8 -VERSION="latest"
   212.9 -CATEGORY="development"
  212.10 +VERSION="2.0.0"
  212.11 +VERSION16="1.6.0" # python-flake8 requres 'pyflakes<1.7.0,>=1.5.0'
  212.12 +CATEGORY="python"
  212.13  SHORT_DESC="A simple program which checks Python source files for errors"
  212.14  MAINTAINER="paul@slitaz.org"
  212.15  LICENSE="MIT"
  212.16 -WEB_SITE="https://pypi.org/project/pyflakes/"
  212.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  212.18  HOST_ARCH="any"
  212.19  REPOLOGY="python:pyflakes"
  212.20  
  212.21 -BUILD_DEPENDS="python-dev"
  212.22 +BUILD_DEPENDS="python python3"
  212.23 +SPLIT="python3-pyflakes:3 \
  212.24 +python-pyflakes16:16 python3-pyflakes16:163"
  212.25  
  212.26  compile_rules() {
  212.27 -	pip install --no-compile --root=$DESTDIR pyflakes
  212.28 +	case $SET in
  212.29 +		'')  pip  install --no-compile --root=$install $ORIGIN==$VERSION;;
  212.30 +		3)   pip3 install --no-compile --root=$install $ORIGIN==$VERSION;;
  212.31 +		16)  pip  install --no-compile --root=$install $ORIGIN==$VERSION16;;
  212.32 +		163) pip3 install --no-compile --root=$install $ORIGIN==$VERSION16;;
  212.33 +	esac
  212.34  }
  212.35  
  212.36  genpkg_rules() {
  212.37 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pyflakes-||p' $LOGS/$PACKAGE.log)
  212.38 +	case $PACKAGE in
  212.39 +		*-pyflakes16)
  212.40 +			VERSION="$VERSION16"
  212.41 +			CAT="python|legacy version $VERSION16"
  212.42 +			;;
  212.43 +	esac
  212.44  	copy @std
  212.45 -	DEPENDS="python"
  212.46 +	py=${PACKAGE%%-*} # python/python3
  212.47 +	DEPENDS="$py"
  212.48  }
   213.1 --- a/python-pyflakes16/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   213.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   213.3 @@ -1,1 +0,0 @@
   213.4 -../python/.icon.png
   213.5 \ No newline at end of file
   214.1 --- a/python-pyflakes16/receipt	Fri Sep 14 11:37:28 2018 +0300
   214.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   214.3 @@ -1,25 +0,0 @@
   214.4 -# SliTaz package receipt v2.
   214.5 -
   214.6 -PACKAGE="python-pyflakes16"
   214.7 -VERSION="latest1.6"
   214.8 -CATEGORY="development"
   214.9 -SHORT_DESC="Passive checker of Python programs (for python-flake8)"
  214.10 -MAINTAINER="al.bobylev@gmail.com"
  214.11 -LICENSE="MIT"
  214.12 -WEB_SITE="https://pypi.org/project/pyflakes/"
  214.13 -HOST_ARCH="any"
  214.14 -REPOLOGY="python:pyflakes"
  214.15 -
  214.16 -BUILD_DEPENDS="python-dev"
  214.17 -
  214.18 -LEGACY_OF="python-pyflakes" # python-flake8 requres 'pyflakes<1.7.0,>=1.5.0' while latest is 2.0.0
  214.19 -
  214.20 -compile_rules() {
  214.21 -	pip install --no-compile --root=$DESTDIR 'pyflakes<1.7.0,>=1.5.0'
  214.22 -}
  214.23 -
  214.24 -genpkg_rules() {
  214.25 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pyflakes-||p' $LOGS/$PACKAGE.log)
  214.26 -	copy @std
  214.27 -	DEPENDS="python"
  214.28 -}
   215.1 --- a/python-pygame/receipt	Fri Sep 14 11:37:28 2018 +0300
   215.2 +++ b/python-pygame/receipt	Sat Sep 22 16:05:26 2018 +0300
   215.3 @@ -1,54 +1,46 @@
   215.4  # SliTaz package receipt v2.
   215.5  
   215.6 +ORIGIN="Pygame"
   215.7  PACKAGE="python-pygame"
   215.8 -VERSION="1.9.1release"
   215.9 -CATEGORY="development"
  215.10 -SHORT_DESC="Python game library"
  215.11 +VERSION="1.9.4"
  215.12 +CATEGORY="python"
  215.13 +SHORT_DESC="Python Game Development"
  215.14  MAINTAINER="claudinei@slitaz.org"
  215.15  LICENSE="LGPL"
  215.16 -WEB_SITE="http://www.pygame.org/"
  215.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  215.18 +#HOST_ARCH
  215.19  REPOLOGY="python:pygame"
  215.20  
  215.21 -TARBALL="pygame-$VERSION.tar.gz"
  215.22 -WGET_URL="$WEB_SITE/ftp/$TARBALL"
  215.23 +# pip version include all the external dependencies (like png, sdl, ...)
  215.24 +# inside the package. Use native compilation with external dependencies
  215.25 +# to save some space:
  215.26 +TARBALL="$PACKAGE-$VERSION.tar.gz"
  215.27 +WGET_URL="https://github.com/pygame/pygame/archive/$VERSION.tar.gz"
  215.28  
  215.29 -BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \
  215.30 -libsdl-mixer-dev libsdl-ttf-dev v4l-utils-dev"
  215.31 -SPLIT="python-pygame-dev"
  215.32 +BUILD_DEPENDS="python-dev python3-dev \
  215.33 +libsdl-dev libsdl-ttf-dev libsdl-image-dev libsdl-mixer-dev libpng16-dev \
  215.34 +libjpeg-turbo-dev xorg-libX11-dev portmidi-dev freetype-dev"
  215.35 +SPLIT="$PACKAGE-dev $PACKAGE \
  215.36 +${PACKAGE/python/python3}-dev:3 ${PACKAGE/python/python3}:3"
  215.37  
  215.38  compile_rules() {
  215.39 -	sed -i "s|linux/videodev.h|libv4l1-videodev.h|" src/camera.h
  215.40 -	python config.py -auto &&
  215.41 -	python setup.py install --root=$DESTDIR
  215.42 +	PORTMIDI_INC_PORTTIME=True \
  215.43 +	python$SET -B setup.py install --root=$install
  215.44 +
  215.45 +	find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
  215.46  }
  215.47  
  215.48  genpkg_rules() {
  215.49 +	py="${PACKAGE%%-*}" # python/python3
  215.50  	case $PACKAGE in
  215.51 -		python-pygame)
  215.52 -			PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
  215.53 -			mkdir -p $fs/usr
  215.54 -			cp -a $install/usr/lib $fs/usr
  215.55 -			chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
  215.56 -			# examples and tests in python-pygame-dev
  215.57 -			rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples
  215.58 -			rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests
  215.59 -			DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf \
  215.60 -			python-numpy libsmpeg gcc-lib-base"
  215.61 +		*-dev)
  215.62 +			copy @dev pygame/examples/ pygame/tests/
  215.63 +			DEPENDS="${PACKAGE%%-dev}"
  215.64  			;;
  215.65 -		*-dev)
  215.66 -			PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
  215.67 -			mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/pygame
  215.68 -			cp -a $install/usr/include $fs/usr
  215.69 -			cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/examples \
  215.70 -				$fs/usr/lib/$PYTHON_LIB/site-packages/pygame
  215.71 -			cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/tests \
  215.72 -				$fs/usr/lib/$PYTHON_LIB/site-packages/pygame
  215.73 +		*)
  215.74 +			copy @std @rm
  215.75 +			DEPENDS="$py freetype libjpeg-turbo libpng16 libsdl libsdl-image \
  215.76 +			libsdl-mixer libsdl-ttf portmidi xorg-libX11"
  215.77  			;;
  215.78  	esac
  215.79  }
  215.80 -
  215.81 -# Remove old package.
  215.82 -post_install_python_pygame() {
  215.83 -	[ ! -d "$1/var/lib/tazpkg/installed/pygame/examples" ] ||
  215.84 -	rm -rf "$1/var/lib/tazpkg/installed/pygame/examples"
  215.85 -}
   216.1 --- a/python-pygame/stuff/patches/config.patch	Fri Sep 14 11:37:28 2018 +0300
   216.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   216.3 @@ -1,26 +0,0 @@
   216.4 -Index: config_unix.py
   216.5 -===================================================================
   216.6 ---- config_unix.py	(revision 2567)
   216.7 -+++ config_unix.py	(working copy)
   216.8 -@@ -174,7 +174,7 @@
   216.9 - 
  216.10 -     for d in DEPS[1:]:
  216.11 -         if not d.found:
  216.12 --            if not confirm("""
  216.13 -+            if "-auto" not in sys.argv and not confirm("""
  216.14 - Warning, some of the pygame dependencies were not found. Pygame can still
  216.15 - compile and install, but games that depend on those missing dependencies
  216.16 - will not run. Would you like to continue the configuration?"""):
  216.17 -Index: config_msys.py
  216.18 -===================================================================
  216.19 ---- config_msys.py	(revision 2567)
  216.20 -+++ config_msys.py	(working copy)
  216.21 -@@ -283,7 +283,7 @@
  216.22 -     
  216.23 -     for d in DEPS[1:]:
  216.24 -         if not d.found:
  216.25 --            if not confirm("""
  216.26 -+            if "-auto" not in sys.argv and not confirm("""
  216.27 - Warning, some of the pygame dependencies were not found. Pygame can still
  216.28 - compile and install, but games that depend on those missing dependencies
  216.29 - will not run. Would you like to continue the configuration?"""):
   217.1 --- a/python-pygame/stuff/patches/series	Fri Sep 14 11:37:28 2018 +0300
   217.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   217.3 @@ -1,1 +0,0 @@
   217.4 --Np0|config.patch
   218.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   218.2 +++ b/python-pyglow/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   218.3 @@ -0,0 +1,1 @@
   218.4 +../python/.icon.png
   218.5 \ No newline at end of file
   219.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   219.2 +++ b/python-pyglow/receipt	Sat Sep 22 16:05:26 2018 +0300
   219.3 @@ -0,0 +1,33 @@
   219.4 +# SliTaz package receipt v2.
   219.5 +
   219.6 +PACKAGE="python-pyglow"
   219.7 +VERSION="0.2"
   219.8 +CATEGORY="system-tools"
   219.9 +SHORT_DESC="Controlling the PiGlow from Python"
  219.10 +MAINTAINER="pankso@slitaz.org"
  219.11 +LICENSE="BSD"
  219.12 +WEB_SITE="https://github.com/benleb/PyGlow"
  219.13 +HOST_ARCH="any"
  219.14 +
  219.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
  219.16 +WGET_URL="https://github.com/benleb/PyGlow/archive/v$VERSION.tar.gz"
  219.17 +
  219.18 +BUILD_DEPENDS="python-dev python-rpi.gpio python3-dev python3-rpi.gpio git"
  219.19 +BUILD_DEPENDS="python-dev python3-dev"
  219.20 +SPLIT="${PACKAGE/python/python3}:3"
  219.21 +
  219.22 +compile_rules() {
  219.23 +	python$SET -B setup.py install --root=$install || return 1
  219.24 +
  219.25 +	mkdir -p $install/usr/share/
  219.26 +	cp -r $src/examples $install/usr/share/pyglow
  219.27 +	install -Dm755 $stuff/vortex.py $install/usr/share/pyglow/vortex.py
  219.28 +	install -Dm755 $stuff/pyglow    $install/usr/bin/pyglow
  219.29 +}
  219.30 +
  219.31 +genpkg_rules() {
  219.32 +	copy @std
  219.33 +	py="${PACKAGE%%-*}" # python/python3
  219.34 +	DEPENDS="$py $py-smbus $py-psutil $py-rpi.gpio"
  219.35 +	TAGS="raspberrypi rpi"
  219.36 +}
   220.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   220.2 +++ b/python-pyglow/stuff/pyglow	Sat Sep 22 16:05:26 2018 +0300
   220.3 @@ -0,0 +1,29 @@
   220.4 +#!/bin/sh
   220.5 +#
   220.6 +# Tiny wrapper to Python Pimorini (vortex.py) and Pyglow examples
   220.7 +#
   220.8 +
   220.9 +ex="/usr/share/pyglow"
  220.10 +
  220.11 +# Make sure we have i2c-* module loaded
  220.12 +if ! lsmod | grep -q 'i2c_dev'; then
  220.13 +	modprobe i2c-bcm2708
  220.14 +	modprobe i2c-dev
  220.15 +fi
  220.16 +
  220.17 +case "$1" in
  220.18 +	'test') 
  220.19 +		python ${ex}/test.py ;;
  220.20 +	cpu) 
  220.21 +		python ${ex}/cpu.py ;;
  220.22 +	clock) 
  220.23 +		python ${ex}/clock.py ;;
  220.24 +	set-leds) 
  220.25 +		python ${ex}/set_leds.py ;;
  220.26 +	vortex)
  220.27 +		python ${ex}/vortex.py ;;
  220.28 +	*) 
  220.29 +		echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
  220.30 +esac
  220.31 +
  220.32 +exit 0
   221.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   221.2 +++ b/python-pyglow/stuff/vortex.py	Sat Sep 22 16:05:26 2018 +0300
   221.3 @@ -0,0 +1,71 @@
   221.4 +# Sample script for PiGlow that creates a continuous whirly vortex animation
   221.5 +#
   221.6 +# Official Pimorini example modified by Christophe Lincoln for SliTaz ARM
   221.7 +# See our GitHub repository for more information: https://github.com/pimoroni/piglow
   221.8 +#
   221.9 +
  221.10 +import time
  221.11 +from smbus import SMBus
  221.12 +
  221.13 +# command register addresses for the SN3218 IC used in PiGlow
  221.14 +CMD_ENABLE_OUTPUT = 0x00
  221.15 +CMD_ENABLE_LEDS = 0x13
  221.16 +CMD_SET_PWM_VALUES = 0x01
  221.17 +CMD_UPDATE = 0x16
  221.18 +
  221.19 +class PiGlow:
  221.20 +	i2c_addr = 0x54 # fixed i2c address of SN3218 ic
  221.21 +	bus = None
  221.22 +
  221.23 +	def __init__(self, i2c_bus=1):
  221.24 +		self.bus = SMBus(i2c_bus)
  221.25 +
  221.26 +        # first we tell the SN3218 to enable output (turn on)
  221.27 +		self.write_i2c(CMD_ENABLE_OUTPUT, 0x01)
  221.28 +
  221.29 +        # then we ask it to enable each bank of LEDs (0-5, 6-11, and 12-17)
  221.30 +		self.write_i2c(CMD_ENABLE_LEDS, [0xFF, 0xFF, 0xFF])
  221.31 +
  221.32 +	def update_leds(self, values):
  221.33 +		self.write_i2c(CMD_SET_PWM_VALUES, values)
  221.34 +		self.write_i2c(CMD_UPDATE, 0xFF)
  221.35 +
  221.36 +	# a helper that writes the given value or list of values to the SN3218 IC
  221.37 +	# over the i2c protocol
  221.38 +	def write_i2c(self, reg_addr, value):
  221.39 +        # if a single value is provided then wrap it in a list so we can treat
  221.40 +        # all writes in teh same way
  221.41 +		if not isinstance(value, list):
  221.42 +			value = [value];
  221.43 +
  221.44 +        # write the data to the SN3218
  221.45 +		self.bus.write_i2c_block_data(self.i2c_addr, reg_addr, value)
  221.46 +
  221.47 +# a list of 18 values between 0 - 255 that represent each LED on the PiGlow.
  221.48 +# to change the LEDs we set the values in this array and then pass it to the
  221.49 +# update_leds() function to actually update the LDEs
  221.50 +values = [0x01,0x02,0x04,0x08,0x10,0x18,0x20,0x30,0x40,0x50,0x60,0x70,0x80,0x90,0xA0,0xC0,0xE0,0xFF]
  221.51 +
  221.52 +# create an instance of our PiGlow class and tell it that "1" is the I2C bus
  221.53 +# index (should be 0 for old old old Pis)
  221.54 +piglow = PiGlow(1)
  221.55 +
  221.56 +# loop forever, i mean why would we ever want to stop now the party has started?
  221.57 +# you can however use Ctrl+C to stop the script and reset the LEDs to off state
  221.58 +try:
  221.59 +	print "Use Ctrl-C to stop"
  221.60 +	while True:
  221.61 +		# pop the first value off then drop it back on again - this just cycles the values around
  221.62 +		values.append(values.pop(0))
  221.63 +
  221.64 +		# update the piglow with current values
  221.65 +		piglow.update_leds(values)
  221.66 +
  221.67 +		# sleep for a bit, don't go too fast!
  221.68 +		time.sleep(0.1)
  221.69 +                
  221.70 +except KeyboardInterrupt:
  221.71 +	# set all the LEDs to "off" when Ctrl+C is pressed before exiting
  221.72 +	values = [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]
  221.73 +	piglow.update_leds(values)
  221.74 +
   222.1 --- a/python-pygments/receipt	Fri Sep 14 11:37:28 2018 +0300
   222.2 +++ b/python-pygments/receipt	Sat Sep 22 16:05:26 2018 +0300
   222.3 @@ -1,22 +1,25 @@
   222.4  # SliTaz package receipt v2.
   222.5  
   222.6 +ORIGIN="Pygments"
   222.7  PACKAGE="python-pygments"
   222.8 -VERSION="latest"
   222.9 +VERSION="2.2.0"
  222.10  CATEGORY="development"
  222.11  SHORT_DESC="Generic syntax highlighter"
  222.12  MAINTAINER="claudinei@slitaz.org"
  222.13  LICENSE="BSD"
  222.14 -WEB_SITE="https://pypi.org/project/Pygments/"
  222.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  222.16 +HOST_ARCH="any"
  222.17  REPOLOGY="python:pygments"
  222.18  
  222.19 -BUILD_DEPENDS="python"
  222.20 +BUILD_DEPENDS="python python3"
  222.21 +SPLIT="${PACKAGE/python/python3}:3"
  222.22  
  222.23  compile_rules() {
  222.24 -	pip install --no-compile --root=$DESTDIR Pygments
  222.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  222.26  }
  222.27  
  222.28  genpkg_rules() {
  222.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*Pygments-||p' $LOGS/$PACKAGE.log)
  222.30  	copy @std
  222.31 -	DEPENDS="python"
  222.32 +	py="${PACKAGE%%-*}" # python/python3
  222.33 +	DEPENDS="$py"
  222.34  }
   223.1 --- a/python-pygobject/receipt	Fri Sep 14 11:37:28 2018 +0300
   223.2 +++ b/python-pygobject/receipt	Sat Sep 22 16:05:26 2018 +0300
   223.3 @@ -1,32 +1,35 @@
   223.4  # SliTaz package receipt v2.
   223.5  
   223.6 +ORIGIN="PyGObject"
   223.7  PACKAGE="python-pygobject"
   223.8 -VERSION="latest"
   223.9 -CATEGORY="development"
  223.10 +VERSION="3.30.1"
  223.11 +CATEGORY="python"
  223.12  SHORT_DESC="Python Bindings for GLib/GObject/GIO/GTK+"
  223.13  MAINTAINER="psychomaniak@xakep.ru"
  223.14  LICENSE="LGPL2.1"
  223.15 -WEB_SITE="https://pypi.org/project/PyGObject/"
  223.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  223.17 +#HOST_ARCH
  223.18  REPOLOGY="python:pygobject3"
  223.19  
  223.20 -BUILD_DEPENDS="python-dev pycairo-dev gobject-introspection-dev"
  223.21 -SPLIT="$PACKAGE-dev"
  223.22 +BUILD_DEPENDS="python-dev python-pycairo-dev  python3-dev python3-pycairo-dev \
  223.23 +glib-dev gobject-introspection-dev cairo-dev"
  223.24 +SPLIT="$PACKAGE-dev \
  223.25 +${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
  223.26  
  223.27  compile_rules() {
  223.28 -	pip install --no-compile --root=$DESTDIR PyGObject
  223.29 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  223.30  }
  223.31  
  223.32  genpkg_rules() {
  223.33 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyGObject-||p' $LOGS/${PACKAGE%-dev}.log)
  223.34  	case $PACKAGE in
  223.35 -		python-pygobject)
  223.36 -			copy @std
  223.37 -			DEPENDS="cairo glib gobject-introspection libffi python"
  223.38 -			PROVIDE="python-gi"
  223.39 -			;;
  223.40  		*-dev)
  223.41  			copy @dev
  223.42 -			DEPENDS="python-pygobject glib-dev libffi-dev"
  223.43 +			DEPENDS="${PACKAGE%%-dev} glib-dev libffi-dev"
  223.44 +			;;
  223.45 +		*)
  223.46 +			copy @std
  223.47 +			py="${PACKAGE%%-*}" # python/python3
  223.48 +			DEPENDS="$py cairo glib gobject-introspection libffi"
  223.49  			;;
  223.50  	esac
  223.51  }
   224.1 --- a/python-pygobject2/receipt	Fri Sep 14 11:37:28 2018 +0300
   224.2 +++ b/python-pygobject2/receipt	Sat Sep 22 16:05:26 2018 +0300
   224.3 @@ -1,39 +1,50 @@
   224.4  # SliTaz package receipt v2.
   224.5  
   224.6 +ORIGIN="PyGObject"
   224.7  PACKAGE="python-pygobject2"
   224.8  VERSION="2.28.7"
   224.9 -CATEGORY="development"
  224.10 -SHORT_DESC="Python bindings for the GObject library"
  224.11 +CATEGORY="python"
  224.12 +SHORT_DESC="Python Bindings for GLib/GObject/GIO/GTK+"
  224.13  MAINTAINER="erjo@slitaz.org"
  224.14  LICENSE="LGPL2.1"
  224.15 -WEB_SITE="http://www.pygtk.org/docs/pygobject/index.html"
  224.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  224.17 +#HOST_ARCH
  224.18  REPOLOGY="python:pygobject2"
  224.19  
  224.20 +# pip drops 2.x branch, get it from GNOME mirror:
  224.21  TARBALL="pygobject-$VERSION.tar.xz"
  224.22  WGET_URL="$GNOME_MIRROR/pygobject/${VERSION%.*}/$TARBALL"
  224.23  
  224.24 -BUILD_DEPENDS="python python-dev glib-dev pycairo-dev \
  224.25 -cairo-dev libffi-dev util-linux-mount-dev"
  224.26 -SPLIT="$PACKAGE-dev"
  224.27 +BUILD_DEPENDS="python-dev python-pycairo-dev  python3-dev python3-pycairo-dev \
  224.28 +glib-dev gobject-introspection-dev cairo-dev"
  224.29 +BUILD_DEPENDS="python-dev python3-dev glib-dev"
  224.30 +SPLIT="$PACKAGE-dev \
  224.31 +${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
  224.32  
  224.33  compile_rules() {
  224.34 +	export PYTHON=/usr/bin/python$SET
  224.35 +
  224.36 +	# enabling introspection leads to compiling errors
  224.37  	./configure \
  224.38  		--disable-introspection \
  224.39  		$CONFIGURE_ARGS &&
  224.40  	fix libtool &&
  224.41  	make &&
  224.42 -	make install
  224.43 +	make install || return 1
  224.44 +
  224.45 +	find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
  224.46  }
  224.47  
  224.48  genpkg_rules() {
  224.49  	case $PACKAGE in
  224.50 -		python-pygobject2)
  224.51 -			copy @std
  224.52 -			DEPENDS="python pycairo glib libffi"
  224.53 -			;;
  224.54  		*-dev)
  224.55  			copy @dev
  224.56 -			DEPENDS="python-pygobject2 libffi-dev"
  224.57 +			DEPENDS="${PACKAGE%%-dev} glib-dev libffi-dev"
  224.58 +			;;
  224.59 +		*)
  224.60 +			copy @std
  224.61 +			py="${PACKAGE%%-*}" # python/python3
  224.62 +			DEPENDS="$py glib libffi"
  224.63  			;;
  224.64  	esac
  224.65  }
   225.1 --- a/python-pygraphviz/receipt	Fri Sep 14 11:37:28 2018 +0300
   225.2 +++ b/python-pygraphviz/receipt	Sat Sep 22 16:05:26 2018 +0300
   225.3 @@ -1,31 +1,25 @@
   225.4 -# SliTaz package receipt.
   225.5 +# SliTaz package receipt v2.
   225.6  
   225.7 +ORIGIN="pygraphviz"
   225.8  PACKAGE="python-pygraphviz"
   225.9 -VERSION="0.99.1"
  225.10 -CATEGORY="development"
  225.11 -SHORT_DESC="A Python wrapper for the Graphviz Agraph data structure."
  225.12 +VERSION="1.5"
  225.13 +CATEGORY="python"
  225.14 +SHORT_DESC="Python interface to Graphviz"
  225.15  MAINTAINER="pascal.bellard@slitaz.org"
  225.16  LICENSE="BSD"
  225.17 -WEB_SITE="https://pypi.org/project/pygraphviz/"
  225.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  225.19 +#HOST_ARCH
  225.20  REPOLOGY="python:pygraphviz"
  225.21  
  225.22 -SOURCE="pygraphviz"
  225.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  225.24 -WGET_URL="http://networkx.lanl.gov/download/$SOURCE/$TARBALL"
  225.25 +BUILD_DEPENDS="python-dev python3-dev graphviz-dev"
  225.26 +SPLIT="${PACKAGE/python/python3}:3"
  225.27  
  225.28 -DEPENDS="graphviz python"
  225.29 -BUILD_DEPENDS="graphviz-dev python-dev"
  225.30 -
  225.31 -# Rules to configure and make the package.
  225.32 -compile_rules()
  225.33 -{
  225.34 -	python setup.py build
  225.35 -	python setup.py install --root=$DESTDIR
  225.36 +compile_rules() {
  225.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  225.38  }
  225.39  
  225.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  225.41 -genpkg_rules()
  225.42 -{
  225.43 -	mkdir -p $fs/usr
  225.44 -	cp -a $install/usr/lib $fs/usr
  225.45 +genpkg_rules() {
  225.46 +	copy @std
  225.47 +	py="${PACKAGE%%-*}" # python/python3
  225.48 +	DEPENDS="$py graphviz"
  225.49  }
   226.1 --- a/python-pygtk/receipt	Fri Sep 14 11:37:28 2018 +0300
   226.2 +++ b/python-pygtk/receipt	Sat Sep 22 16:05:26 2018 +0300
   226.3 @@ -1,19 +1,22 @@
   226.4  # SliTaz package receipt v2.
   226.5  
   226.6 +ORIGIN="PyGTK"
   226.7  PACKAGE="python-pygtk"
   226.8  VERSION="2.24.0"
   226.9 -CATEGORY="development"
  226.10 +CATEGORY="python"
  226.11  SHORT_DESC="GTK+ for Python"
  226.12  MAINTAINER="erjo@slitaz.org"
  226.13  LICENSE="LGPL2.1"
  226.14 -WEB_SITE="http://www.pygtk.org/"
  226.15 +WEB_SITE="https://pygobject.readthedocs.io/en/latest/"
  226.16 +#HOST_ARCH
  226.17  REPOLOGY="python:pygtk"
  226.18  
  226.19  TARBALL="pygtk-$VERSION.tar.bz2"
  226.20  WGET_URL="$GNOME_MIRROR/pygtk/${VERSION%.*}/$TARBALL"
  226.21  
  226.22 -BUILD_DEPENDS="python-dev pycairo-dev python-pygobject2-dev expat-dev gtk+-dev \
  226.23 -libglade-dev libxml2-dev libffi-dev python-numpy"
  226.24 +# using Python3 produce errors
  226.25 +BUILD_DEPENDS="python-dev python-pygobject2-dev python-pycairo-dev \
  226.26 +python-numpy glib-dev atk-dev pango-dev gtk+-dev libglade-dev"
  226.27  SPLIT="$PACKAGE-demos $PACKAGE $PACKAGE-dev"
  226.28  
  226.29  compile_rules() {
  226.30 @@ -22,23 +25,25 @@
  226.31  		$CONFIGURE_ARGS &&
  226.32  	fix libtool &&
  226.33  	make $MAKEFLAGS &&
  226.34 -	make install
  226.35 +	make install || return 1
  226.36 +
  226.37 +	find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
  226.38  }
  226.39  
  226.40  genpkg_rules() {
  226.41  	case $PACKAGE in
  226.42  		*-demos)
  226.43  			copy demos/ pygtk-demo pygtk-demo.py
  226.44 +			DEPENDS="python-pygtk"
  226.45  			CAT="development|demos"
  226.46  			;;
  226.47 -		python-pygtk)
  226.48 -			copy @std @rm
  226.49 -			rm -r $fs/usr/lib/pygtk/
  226.50 -			DEPENDS="atk cairo gdk-pixbuf glib gtk+ libglade pango python"
  226.51 -			;;
  226.52  		*-dev)
  226.53  			copy @dev
  226.54  			DEPENDS="python-pygtk gtk+-dev python-pygobject2-dev"
  226.55  			;;
  226.56 +		*)
  226.57 +			copy @std @rm
  226.58 +			DEPENDS="python atk cairo gdk-pixbuf glib gtk+ libglade pango"
  226.59 +			;;
  226.60  	esac
  226.61  }
   227.1 --- a/python-pygtk/stuff/patches/python27.patch	Fri Sep 14 11:37:28 2018 +0300
   227.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   227.3 @@ -1,52 +0,0 @@
   227.4 -https://bugzilla.gnome.org/show_bug.cgi?id=623965
   227.5 -
   227.6 -diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c
   227.7 -index c0e1493..aa8cf10 100644
   227.8 ---- a/gtk/gtkmodule.c
   227.9 -+++ b/gtk/gtkmodule.c
  227.10 -@@ -227,8 +227,12 @@ init_gtk(void)
  227.11 -     pygtk_add_stock_items(d);
  227.12 -     
  227.13 -     /* extension API */
  227.14 --    PyDict_SetItemString(d, "_PyGtk_API",
  227.15 --			 o=PyCObject_FromVoidPtr(&functions, NULL));
  227.16 -+#if PY_VERSION_HEX >= 0x02070000
  227.17 -+    o = PyCapsule_New(&functions, "gtk._gtk._PyGtk_API", NULL);
  227.18 -+#else
  227.19 -+    o = PyCObject_FromVoidPtr(&functions, NULL);
  227.20 -+#endif
  227.21 -+    PyDict_SetItemString(d, "_PyGtk_API", o);
  227.22 -     Py_DECREF(o);
  227.23 - 	
  227.24 -     PyGtkDeprecationWarning = PyErr_NewException("gtk.GtkDeprecationWarning",
  227.25 -diff --git a/gtk/pygtk.h b/gtk/pygtk.h
  227.26 -index 573c3b9..e4c680f 100644
  227.27 ---- a/gtk/pygtk.h
  227.28 -+++ b/gtk/pygtk.h
  227.29 -@@ -60,6 +60,18 @@ struct _PyGtk_FunctionStruct *_PyGtk_API;
  227.30 - 
  227.31 - 
  227.32 - /* a function to initialise the pygtk functions */
  227.33 -+
  227.34 -+/* Python 2.7 introduced the PyCapsule API and deprecated the CObject API */
  227.35 -+#if PY_VERSION_HEX >= 0x02070000
  227.36 -+#define init_pygtk() G_STMT_START { \
  227.37 -+    void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0); \
  227.38 -+    if (!capsule) { \
  227.39 -+        return; \
  227.40 -+    } \
  227.41 -+    _PyGtk_API = (struct _PyGtk_FunctionStruct*)capsule; \
  227.42 -+} G_STMT_END
  227.43 -+#else /* PY_VERSION_HEX */
  227.44 -+/* Python 2.6 and earlier use the CObject API */
  227.45 - #define init_pygtk() G_STMT_START { \
  227.46 -     PyObject *pygtk = PyImport_ImportModule("gtk"); \
  227.47 -     if (pygtk != NULL) { \
  227.48 -@@ -79,6 +91,7 @@ struct _PyGtk_FunctionStruct *_PyGtk_API;
  227.49 -         return; \
  227.50 -     } \
  227.51 - } G_STMT_END
  227.52 -+#endif /* PY_VERSION_HEX */
  227.53 - 
  227.54 - #endif
  227.55 - 
   228.1 --- a/python-pygtk/stuff/patches/series	Fri Sep 14 11:37:28 2018 +0300
   228.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   228.3 @@ -1,1 +0,0 @@
   228.4 -python27.patch
   229.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   229.2 +++ b/python-pyhamcrest/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   229.3 @@ -0,0 +1,1 @@
   229.4 +../python/.icon.png
   229.5 \ No newline at end of file
   230.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   230.2 +++ b/python-pyhamcrest/receipt	Sat Sep 22 16:05:26 2018 +0300
   230.3 @@ -0,0 +1,25 @@
   230.4 +# SliTaz package receipt v2.
   230.5 +
   230.6 +ORIGIN="PyHamcrest"
   230.7 +PACKAGE="python-pyhamcrest"
   230.8 +VERSION="1.9.0"
   230.9 +CATEGORY="python"
  230.10 +SHORT_DESC="Hamcrest framework for matcher objects"
  230.11 +MAINTAINER="al.bobylev@gmail.com"
  230.12 +LICENSE="BSD"
  230.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  230.14 +HOST_ARCH="any"
  230.15 +REPOLOGY="python:pyhamcrest"
  230.16 +
  230.17 +BUILD_DEPENDS="python python-six  python3 python3-six"
  230.18 +SPLIT="${PACKAGE/python/python3}:3"
  230.19 +
  230.20 +compile_rules() {
  230.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  230.22 +}
  230.23 +
  230.24 +genpkg_rules() {
  230.25 +	copy @std
  230.26 +	py=${PACKAGE%%-*} # python/python3
  230.27 +	DEPENDS="$py $py-six"
  230.28 +}
   231.1 --- a/python-pyliblzma/receipt	Fri Sep 14 11:37:28 2018 +0300
   231.2 +++ b/python-pyliblzma/receipt	Sat Sep 22 16:05:26 2018 +0300
   231.3 @@ -1,31 +1,24 @@
   231.4 -# SliTaz package receipt.
   231.5 +# SliTaz package receipt v2.
   231.6  
   231.7 +ORIGIN="pyliblzma"
   231.8  PACKAGE="python-pyliblzma"
   231.9  VERSION="0.5.3"
  231.10  CATEGORY="development"
  231.11  SHORT_DESC="A Python wrapper for the liblzma library"
  231.12  MAINTAINER="pascal.bellard@slitaz.org"
  231.13  LICENSE="LGPL3"
  231.14 -WEB_SITE="https://pypi.org/project/pyliblzma/"
  231.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  231.16 +#HOST_ARCH
  231.17  REPOLOGY="python:pyliblzma"
  231.18  
  231.19 -SOURCE="pyliblzma"
  231.20 -TARBALL="$SOURCE-$VERSION.tar.bz2"
  231.21 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  231.22 +BUILD_DEPENDS="python-dev xz-dev"
  231.23  
  231.24 -DEPENDS="liblzma python"
  231.25 -BUILD_DEPENDS="xz-dev python-dev"
  231.26 -
  231.27 -# Rules to configure and make the package.
  231.28 -compile_rules()
  231.29 -{
  231.30 -	python setup.py build
  231.31 -	python setup.py install --root=$DESTDIR
  231.32 +compile_rules() {
  231.33 +	# Python3 based compilation produce error
  231.34 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  231.35  }
  231.36  
  231.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
  231.38 -genpkg_rules()
  231.39 -{
  231.40 -	mkdir -p $fs/usr
  231.41 -	cp -a $install/usr/lib $fs/usr
  231.42 +genpkg_rules() {
  231.43 +	copy @std
  231.44 +	DEPENDS="python liblzma"
  231.45  }
   232.1 --- a/python-pylons/receipt	Fri Sep 14 11:37:28 2018 +0300
   232.2 +++ b/python-pylons/receipt	Sat Sep 22 16:05:26 2018 +0300
   232.3 @@ -1,30 +1,38 @@
   232.4 -# SliTaz package receipt.
   232.5 +# SliTaz package receipt v2.
   232.6  
   232.7 +ORIGIN="Pylons"
   232.8  PACKAGE="python-pylons"
   232.9 -VERSION="1.0"
  232.10 -CATEGORY="development"
  232.11 -SHORT_DESC="Lightweight web framework"
  232.12 +VERSION="1.0.3"
  232.13 +CATEGORY="python"
  232.14 +SHORT_DESC="Pylons Web Framework"
  232.15  MAINTAINER="taziden@slitaz.org"
  232.16  LICENSE="BSD"
  232.17 -WEB_SITE="http://pylonshq.com"
  232.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  232.19 +HOST_ARCH="any"
  232.20  REPOLOGY="python:pylons"
  232.21  
  232.22 -SOURCE="Pylons"
  232.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  232.24 -WGET_URL="http://cdn.pylonshq.com/download/$VERSION/$TARBALL"
  232.25 -TAGS="python"
  232.26 +BUILD_DEPENDS="python python-beaker python-decorator python-formencode \
  232.27 +python-mako python-markupsafe python-nose python-paste python-pastedeploy \
  232.28 +python-pastescript python-routes python-simplejson python-tempita \
  232.29 +python-weberror python-webhelpers python-webob python-webtest \
  232.30 +python3 python3-beaker python3-decorator python3-formencode python3-mako \
  232.31 +python3-markupsafe python3-nose python3-paste python3-pastedeploy \
  232.32 +python3-pastescript python3-routes python3-simplejson python3-tempita \
  232.33 +python3-weberror python3-webhelpers python3-webob python3-webtest"
  232.34 +SPLIT="${PACKAGE/python/python3}:3"
  232.35  
  232.36 -DEPENDS="python"
  232.37 -BUILD_DEPENDS="python python-dev"
  232.38 +compile_rules() {
  232.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  232.40  
  232.41 -# Rules to configure and make the package.
  232.42 -compile_rules()
  232.43 -{
  232.44 -	python setup.py install --root=$DESTDIR
  232.45 +	# '--no-compile' used, but these files still installed...
  232.46 +	find $install -type f -name '*.pyc' -delete
  232.47  }
  232.48  
  232.49 -# Rules to gen a SliTaz package suitable for Tazpkg.
  232.50 -genpkg_rules()
  232.51 -{
  232.52 -	cp -a $install/usr $fs
  232.53 +genpkg_rules() {
  232.54 +	copy @std
  232.55 +	py="${PACKAGE%%-*}" # python/python3
  232.56 +	DEPENDS="$py $py-beaker $py-decorator $py-formencode $py-mako \
  232.57 +	$py-markupsafe $py-nose $py-paste $py-pastedeploy $py-pastescript \
  232.58 +	$py-routes $py-simplejson $py-tempita $py-weberror $py-webhelpers \
  232.59 +	$py-webob $py-webtest"
  232.60  }
   233.1 --- a/python-pynacl/receipt	Fri Sep 14 11:37:28 2018 +0300
   233.2 +++ b/python-pynacl/receipt	Sat Sep 22 16:05:26 2018 +0300
   233.3 @@ -1,22 +1,26 @@
   233.4  # SliTaz package receipt v2.
   233.5  
   233.6 +ORIGIN="PyNaCl"
   233.7  PACKAGE="python-pynacl"
   233.8 -VERSION="latest"
   233.9 +VERSION="1.2.1"
  233.10  CATEGORY="python"
  233.11  SHORT_DESC="Python binding to the Networking and Cryptography library (NaCl)"
  233.12  MAINTAINER="al.bobylev@gmail.com"
  233.13  LICENSE="Apache2"
  233.14 -WEB_SITE="https://pypi.org/project/PyNaCl/"
  233.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  233.16 +#HOST_ARCH
  233.17  REPOLOGY="python:pynacl"
  233.18  
  233.19 -BUILD_DEPENDS="python python-cffi python-six"
  233.20 +BUILD_DEPENDS="python python-cffi python-six \
  233.21 +python3 python3-cffi python3-six"
  233.22 +SPLIT="${PACKAGE/python/python3}:3"
  233.23  
  233.24  compile_rules() {
  233.25 -	pip install --no-compile --root=$DESTDIR PyNaCl
  233.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  233.27  }
  233.28  
  233.29  genpkg_rules() {
  233.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyNaCl-||p' $LOGS/$PACKAGE.log)
  233.31  	copy @std
  233.32 -	DEPENDS="python python-cffi python-six"
  233.33 +	py="${PACKAGE%%-*}" # python/python3
  233.34 +	DEPENDS="$py $py-cffi $py-six"
  233.35  }
   234.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   234.2 +++ b/python-pyopengl-accelerate/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   234.3 @@ -0,0 +1,1 @@
   234.4 +../python/.icon.png
   234.5 \ No newline at end of file
   235.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   235.2 +++ b/python-pyopengl-accelerate/receipt	Sat Sep 22 16:05:26 2018 +0300
   235.3 @@ -0,0 +1,25 @@
   235.4 +# SliTaz package receipt v2.
   235.5 +
   235.6 +ORIGIN="PyOpenGL-accelerate"
   235.7 +PACKAGE="python-pyopengl-accelerate"
   235.8 +VERSION="3.1.0"
   235.9 +CATEGORY="python"
  235.10 +SHORT_DESC="Acceleration code for PyOpenGL"
  235.11 +MAINTAINER="yuripourre@gmail.com"
  235.12 +LICENSE="BSD"
  235.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  235.14 +#HOST_ARCH
  235.15 +REPOLOGY="python:opengl-accelerate"
  235.16 +
  235.17 +BUILD_DEPENDS="python-dev python3-dev"
  235.18 +SPLIT="${PACKAGE/python/python3}:3"
  235.19 +
  235.20 +compile_rules() {
  235.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  235.22 +}
  235.23 +
  235.24 +genpkg_rules() {
  235.25 +	copy @std
  235.26 +	py=${PACKAGE%%-*} # python/python3
  235.27 +	DEPENDS="$py   $py-pyopengl"
  235.28 +}
   236.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   236.2 +++ b/python-pyopengl/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   236.3 @@ -0,0 +1,1 @@
   236.4 +../python/.icon.png
   236.5 \ No newline at end of file
   237.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   237.2 +++ b/python-pyopengl/receipt	Sat Sep 22 16:05:26 2018 +0300
   237.3 @@ -0,0 +1,25 @@
   237.4 +# SliTaz package receipt v2.
   237.5 +
   237.6 +ORIGIN="PyOpenGL"
   237.7 +PACKAGE="python-pyopengl"
   237.8 +VERSION="3.1.0"
   237.9 +CATEGORY="python"
  237.10 +SHORT_DESC="Standard OpenGL bindings for Python"
  237.11 +MAINTAINER="yuripourre@gmail.com"
  237.12 +LICENSE="BSD"
  237.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  237.14 +HOST_ARCH="any"
  237.15 +REPOLOGY="python:pyopengl"
  237.16 +
  237.17 +BUILD_DEPENDS="python python3"
  237.18 +SPLIT="${PACKAGE/python/python3}:3"
  237.19 +
  237.20 +compile_rules() {
  237.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  237.22 +}
  237.23 +
  237.24 +genpkg_rules() {
  237.25 +	copy @std
  237.26 +	py=${PACKAGE%%-*} # python/python3
  237.27 +	DEPENDS="$py"
  237.28 +}
   238.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   238.2 +++ b/python-pyopenssl/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   238.3 @@ -0,0 +1,1 @@
   238.4 +../python/.icon.png
   238.5 \ No newline at end of file
   239.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   239.2 +++ b/python-pyopenssl/receipt	Sat Sep 22 16:05:26 2018 +0300
   239.3 @@ -0,0 +1,27 @@
   239.4 +# SliTaz package receipt v2.
   239.5 +
   239.6 +ORIGIN="pyOpenSSL"
   239.7 +PACKAGE="python-pyopenssl"
   239.8 +VERSION="18.0.0"
   239.9 +CATEGORY="python"
  239.10 +SHORT_DESC="OpenSSL library subset wrapper for Python"
  239.11 +MAINTAINER="pascal.bellard@slitaz.org"
  239.12 +LICENSE="Apache"
  239.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  239.14 +HOST_ARCH="any"
  239.15 +REPOLOGY="python:pyopenssl"
  239.16 +
  239.17 +BUILD_DEPENDS="python python-cryptography python-six \
  239.18 +python3 python3-cryptography python3-six \
  239.19 +openssl-dev"
  239.20 +SPLIT="${PACKAGE/python/python3}:3"
  239.21 +
  239.22 +compile_rules() {
  239.23 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  239.24 +}
  239.25 +
  239.26 +genpkg_rules() {
  239.27 +	copy @std
  239.28 +	py=${PACKAGE%%-*} # python/python3
  239.29 +	DEPENDS="$py $py-cryptography $py-six   openssl"
  239.30 +}
   240.1 --- a/python-pyparsing/receipt	Fri Sep 14 11:37:28 2018 +0300
   240.2 +++ b/python-pyparsing/receipt	Sat Sep 22 16:05:26 2018 +0300
   240.3 @@ -1,22 +1,25 @@
   240.4  # SliTaz package receipt v2.
   240.5  
   240.6 +ORIGIN="pyparsing"
   240.7  PACKAGE="python-pyparsing"
   240.8 -VERSION="latest"
   240.9 -CATEGORY="development"
  240.10 +VERSION="2.2.1"
  240.11 +CATEGORY="python"
  240.12  SHORT_DESC="Python parsing module"
  240.13  MAINTAINER="pascal.bellard@slitaz.org"
  240.14  LICENSE="MIT"
  240.15 -WEB_SITE="https://pypi.org/project/pyparsing/"
  240.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  240.17 +HOST_ARCH="any"
  240.18  REPOLOGY="python:pyparsing"
  240.19  
  240.20 -BUILD_DEPENDS="python"
  240.21 +BUILD_DEPENDS="python python3"
  240.22 +SPLIT="${PACKAGE/python/python3}:3"
  240.23  
  240.24  compile_rules() {
  240.25 -	pip install --no-compile --root=$DESTDIR pyparsing
  240.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  240.27  }
  240.28  
  240.29  genpkg_rules() {
  240.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pyparsing-||p' $LOGS/$PACKAGE.log)
  240.31  	copy @std
  240.32 -	DEPENDS="python"
  240.33 +	py="${PACKAGE%%-*}" # python/python3
  240.34 +	DEPENDS="$py"
  240.35  }
   241.1 --- a/python-pypdf/receipt	Fri Sep 14 11:37:28 2018 +0300
   241.2 +++ b/python-pypdf/receipt	Sat Sep 22 16:05:26 2018 +0300
   241.3 @@ -1,37 +1,25 @@
   241.4 -# SliTaz package receipt.
   241.5 +# SliTaz package receipt v2.
   241.6  
   241.7 +ORIGIN="pyPdf"
   241.8  PACKAGE="python-pypdf"
   241.9 -VERSION="1.12"
  241.10 -CATEGORY="development"
  241.11 -SHORT_DESC="A Pure-Python library built as a PDF tookit."
  241.12 +VERSION="1.13"
  241.13 +CATEGORY="python"
  241.14 +SHORT_DESC="PDF toolkit"
  241.15  MAINTAINER="claudinei@slitaz.org"
  241.16  LICENSE="BSD"
  241.17 -WEB_SITE="http://pybrary.net/pyPdf"
  241.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  241.19 +HOST_ARCH="any"
  241.20  REPOLOGY="python:pypdf"
  241.21  
  241.22 -SOURCE="pyPdf"
  241.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  241.24 -WGET_URL="$WEB_SITE/$TARBALL"
  241.25 +BUILD_DEPENDS="python-dev python3-dev"
  241.26 +SPLIT="${PACKAGE/python/python3}:3"
  241.27  
  241.28 -DEPENDS="python"
  241.29 -BUILD_DEPENDS="python python-dev"
  241.30 -
  241.31 -# Rules to configure and make the package.
  241.32 -compile_rules()
  241.33 -{
  241.34 -	python setup.py install --root=$DESTDIR
  241.35 +compile_rules() {
  241.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  241.37  }
  241.38  
  241.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  241.40 -genpkg_rules()
  241.41 -{
  241.42 -	mkdir -p $fs/usr
  241.43 -	cp -a $install/usr $fs
  241.44 +genpkg_rules() {
  241.45 +	copy @std
  241.46 +	py="${PACKAGE%%-*}" # python/python3
  241.47 +	DEPENDS="$py"
  241.48  }
  241.49 -
  241.50 -# Remove old package.
  241.51 -post_install()
  241.52 -{
  241.53 -	[ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] ||
  241.54 -	rm -rf "$1/var/lib/tazpkg/installed/pypdf"
  241.55 -}
   242.1 --- a/python-pyprotocols/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   242.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   242.3 @@ -1,1 +0,0 @@
   242.4 -../python/.icon.png
   242.5 \ No newline at end of file
   243.1 --- a/python-pyprotocols/receipt	Fri Sep 14 11:37:28 2018 +0300
   243.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   243.3 @@ -1,30 +0,0 @@
   243.4 -# SliTaz package receipt.
   243.5 -
   243.6 -PACKAGE="python-pyprotocols"
   243.7 -VERSION="0.9.3"
   243.8 -CATEGORY="development"
   243.9 -SHORT_DESC="PEP 246 and a whole lot more."
  243.10 -MAINTAINER="pankso@slitaz.org"
  243.11 -LICENSE="PSL"
  243.12 -WEB_SITE="http://peak.telecommunity.com/PyProtocols.html"
  243.13 -REPOLOGY="python:pyprotocols"
  243.14 -
  243.15 -SOURCE="PyProtocols"
  243.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  243.17 -WGET_URL="http://peak.telecommunity.com/dist/$TARBALL"
  243.18 -TAGS="python"
  243.19 -
  243.20 -DEPENDS="python"
  243.21 -BUILD_DEPENDS="python python-dev"
  243.22 -
  243.23 -# Rules to configure and make the package.
  243.24 -compile_rules()
  243.25 -{
  243.26 -	python setup.py install --root=$DESTDIR
  243.27 -}
  243.28 -
  243.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
  243.30 -genpkg_rules()
  243.31 -{
  243.32 -	cp -a $install/usr $fs
  243.33 -}
   244.1 --- a/python-pypubsub/receipt	Fri Sep 14 11:37:28 2018 +0300
   244.2 +++ b/python-pypubsub/receipt	Sat Sep 22 16:05:26 2018 +0300
   244.3 @@ -1,23 +1,28 @@
   244.4  # SliTaz package receipt v2.
   244.5  
   244.6 +ORIGIN="PyPubSub"
   244.7  PACKAGE="python-pypubsub"
   244.8 -VERSION="latest"
   244.9 +VERSION="4.0.0"
  244.10  CATEGORY="python"
  244.11  SHORT_DESC="Python Publish-Subscribe Package"
  244.12  MAINTAINER="al.bobylev@gmail.com"
  244.13  LICENSE="BSD"
  244.14 -WEB_SITE="https://pypi.org/project/PyPubSub/"
  244.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  244.16  HOST_ARCH="any"
  244.17  REPOLOGY="python:pypubsub"
  244.18  
  244.19 -BUILD_DEPENDS="python python-typing"
  244.20 +BUILD_DEPENDS="python-dev python-typing  python3-dev"
  244.21 +SPLIT="${PACKAGE/python/python3}:3"
  244.22  
  244.23  compile_rules() {
  244.24 -	pip install --no-compile --root=$DESTDIR PyPubSub
  244.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  244.26  }
  244.27  
  244.28  genpkg_rules() {
  244.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyPubSub-||p' $LOGS/$PACKAGE.log)
  244.30  	copy @std
  244.31 -	DEPENDS="python python-typing"
  244.32 +	py="${PACKAGE%%-*}" # python/python3
  244.33 +	case $PACKAGE in
  244.34 +		python-*)  DEPENDS="$py $py-typing";;
  244.35 +		python3-*) DEPENDS="$py";;
  244.36 +	esac
  244.37  }
   245.1 --- a/python-pyrex/receipt	Fri Sep 14 11:37:28 2018 +0300
   245.2 +++ b/python-pyrex/receipt	Sat Sep 22 16:05:26 2018 +0300
   245.3 @@ -2,29 +2,25 @@
   245.4  
   245.5  PACKAGE="python-pyrex"
   245.6  VERSION="0.9.9"
   245.7 -CATEGORY="development"
   245.8 -SHORT_DESC="Language for Writing Python Extension Modules."
   245.9 +CATEGORY="python"
  245.10 +SHORT_DESC="Language for Writing Python Extension Modules"
  245.11  MAINTAINER="pankso@slitaz.org"
  245.12  LICENSE="Apache"
  245.13  WEB_SITE="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/"
  245.14  REPOLOGY="python:pyrex"
  245.15  
  245.16 -SOURCE="Pyrex"
  245.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
  245.18 -WGET_URL="$WEB_SITE$TARBALL"
  245.19 -TAGS="python"
  245.20 +# pip didn't provide downloads for Pyrex
  245.21 +TARBALL="Pyrex-$VERSION.tar.gz"
  245.22 +WGET_URL="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/$TARBALL"
  245.23  
  245.24 -DEPENDS="python"
  245.25 -BUILD_DEPENDS="python python-dev"
  245.26 +BUILD_DEPENDS="python-dev"
  245.27  
  245.28 -# Rules to configure and make the package.
  245.29 -compile_rules()
  245.30 -{
  245.31 -	python setup.py install --root="$DESTDIR" --prefix=/usr
  245.32 +compile_rules() {
  245.33 +	# Python3 based compilation produce error
  245.34 +	python -B setup.py install --root=$install
  245.35  }
  245.36  
  245.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
  245.38 -genpkg_rules()
  245.39 -{
  245.40 -	cp -a $install/usr $fs
  245.41 +genpkg_rules() {
  245.42 +	copy @std
  245.43 +	DEPENDS="python"
  245.44  }
   246.1 --- a/python-pyserial/receipt	Fri Sep 14 11:37:28 2018 +0300
   246.2 +++ b/python-pyserial/receipt	Sat Sep 22 16:05:26 2018 +0300
   246.3 @@ -1,30 +1,28 @@
   246.4 -# SliTaz package receipt.
   246.5 +# SliTaz package receipt v2.
   246.6  
   246.7 +ORIGIN=pyserial
   246.8  PACKAGE="python-pyserial"
   246.9 -VERSION="2.7"
  246.10 -CATEGORY="development"
  246.11 -SHORT_DESC="Python Serial Port Extension."
  246.12 +VERSION="3.4"
  246.13 +CATEGORY="python"
  246.14 +SHORT_DESC="Python Serial Port Extension"
  246.15  MAINTAINER="pascal.bellard@slitaz.org"
  246.16  LICENSE="PSL"
  246.17 -WEB_SITE="https://pypi.org/project/pyserial/"
  246.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  246.19 +HOST_ARCH="any"
  246.20  REPOLOGY="python:pyserial"
  246.21  
  246.22 -SOURCE="pyserial"
  246.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  246.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  246.25 +BUILD_DEPENDS="python-dev python3-dev"
  246.26 +SPLIT="${PACKAGE/python/python3}:3"
  246.27  
  246.28 -DEPENDS="python"
  246.29 -BUILD_DEPENDS="python"
  246.30 +compile_rules() {
  246.31 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  246.32  
  246.33 -# Rules to configure and make the package.
  246.34 -compile_rules()
  246.35 -{
  246.36 -	python setup.py build &&
  246.37 -	python setup.py install --root=$DESTDIR
  246.38 +	# option '--no-compile' provided, but these files still exists
  246.39 +	find $install -type f -name '*.pyc' -delete
  246.40  }
  246.41  
  246.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  246.43 -genpkg_rules()
  246.44 -{
  246.45 -	cp -a $install/usr $fs
  246.46 +genpkg_rules() {
  246.47 +	copy @std
  246.48 +	py="${PACKAGE%%-*}" # python/python3
  246.49 +	DEPENDS="$py"
  246.50  }
   247.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   247.2 +++ b/python-pysocks/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   247.3 @@ -0,0 +1,1 @@
   247.4 +../python/.icon.png
   247.5 \ No newline at end of file
   248.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   248.2 +++ b/python-pysocks/receipt	Sat Sep 22 16:05:26 2018 +0300
   248.3 @@ -0,0 +1,25 @@
   248.4 +# SliTaz package receipt v2.
   248.5 +
   248.6 +ORIGIN="PySocks"
   248.7 +PACKAGE="python-pysocks"
   248.8 +VERSION="1.6.8"
   248.9 +CATEGORY="python"
  248.10 +SHORT_DESC="A Python SOCKS client module"
  248.11 +MAINTAINER="al.bobylev@gmail.com"
  248.12 +LICENSE="BSD"
  248.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  248.14 +HOST_ARCH="any"
  248.15 +REPOLOGY="python:pysocks"
  248.16 +
  248.17 +BUILD_DEPENDS="python python3"
  248.18 +SPLIT="${PACKAGE/python/python3}:3"
  248.19 +
  248.20 +compile_rules() {
  248.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  248.22 +}
  248.23 +
  248.24 +genpkg_rules() {
  248.25 +	copy @std
  248.26 +	py=${PACKAGE%%-*} # python/python3
  248.27 +	DEPENDS="$py"
  248.28 +}
   249.1 --- a/python-pysqlite/receipt	Fri Sep 14 11:37:28 2018 +0300
   249.2 +++ b/python-pysqlite/receipt	Sat Sep 22 16:05:26 2018 +0300
   249.3 @@ -1,31 +1,26 @@
   249.4 -# SliTaz package receipt.
   249.5 +# SliTaz package receipt v2.
   249.6  
   249.7 +ORIGIN="pysqlite"
   249.8  PACKAGE="python-pysqlite"
   249.9 -VERSION="2.6.0"
  249.10 -CATEGORY="development"
  249.11 -SHORT_DESC="Python interface for the SQLite database"
  249.12 +VERSION="2.8.3"
  249.13 +CATEGORY="python"
  249.14 +SHORT_DESC="DB-API 2.0 interface for SQLite 3.x"
  249.15  MAINTAINER="sygne@ombres.eu"
  249.16  LICENSE="zlib/libpng"
  249.17 -WEB_SITE="https://pypi.org/project/pysqlite/"
  249.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  249.19 +#HOST_ARCH
  249.20  REPOLOGY="python:pysqlite"
  249.21  
  249.22 -SOURCE="pysqlite"
  249.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  249.24 -WGET_URL="http://pysqlite.googlecode.com/files/$TARBALL" # FIXME
  249.25 +BUILD_DEPENDS="python-dev sqlite3-dev"
  249.26  
  249.27 -DEPENDS="sqlite3 python"
  249.28 -BUILD_DEPENDS="python python-dev sqlite3-dev"
  249.29 -
  249.30 -# Rules to configure and make the package.
  249.31 -compile_rules()
  249.32 -{
  249.33 -	cp $stuff/setup.cfg .
  249.34 -	python setup.py install --root=$DESTDIR
  249.35 +compile_rules() {
  249.36 +	# Python3 based compilation produce error:
  249.37 +	#   pysqlite is not supported on Python 3. When using Python 3, use the
  249.38 +	#   sqlite3 module from the standard library.
  249.39 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  249.40  }
  249.41  
  249.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  249.43 -genpkg_rules()
  249.44 -{
  249.45 -	mkdir -p $fs/usr
  249.46 -	cp -a $install/usr/lib $fs/usr
  249.47 +genpkg_rules() {
  249.48 +	copy @std
  249.49 +	DEPENDS="python libsqlite3"
  249.50  }
   250.1 --- a/python-pysqlite/stuff/setup.cfg	Fri Sep 14 11:37:28 2018 +0300
   250.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   250.3 @@ -1,5 +0,0 @@
   250.4 -[build_ext]
   250.5 -define=
   250.6 -include_dirs=/usr/include
   250.7 -library_dirs=/usr/lib
   250.8 -libraries=sqlite3
   251.1 --- a/python-pyte/receipt	Fri Sep 14 11:37:28 2018 +0300
   251.2 +++ b/python-pyte/receipt	Sat Sep 22 16:05:26 2018 +0300
   251.3 @@ -1,30 +1,25 @@
   251.4 -# SliTaz package receipt.
   251.5 +# SliTaz package receipt v2.
   251.6  
   251.7 +ORIGIN="pyte"
   251.8  PACKAGE="python-pyte"
   251.9 -VERSION="0.5.1"
  251.10 -CATEGORY="development"
  251.11 -SHORT_DESC="Simple VTXXX-compatible terminal emulator."
  251.12 +VERSION="0.8.0"
  251.13 +CATEGORY="python"
  251.14 +SHORT_DESC="Simple VTXXX-compatible terminal emulator"
  251.15  MAINTAINER="paul@slitaz.org"
  251.16  LICENSE="LGPL3"
  251.17 -WEB_SITE="http://pyte.readthedocs.org/en/latest/"
  251.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  251.19 +HOST_ARCH="any"
  251.20  REPOLOGY="python:pyte"
  251.21  
  251.22 -SOURCE="pyte"
  251.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  251.24 -WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
  251.25 +BUILD_DEPENDS="python python-wcwidth  python3 python3-wcwidth"
  251.26 +SPLIT="${PACKAGE/python/python3}:3"
  251.27  
  251.28 -DEPENDS="python python-wcwidth"
  251.29 -BUILD_DEPENDS="python-dev python-wcwidth"
  251.30 -
  251.31 -# Rules to configure and make the package.
  251.32 -compile_rules()
  251.33 -{
  251.34 -	python setup.py install --root=$DESTDIR
  251.35 +compile_rules() {
  251.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  251.37  }
  251.38  
  251.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  251.40 -genpkg_rules()
  251.41 -{
  251.42 -	cp -a $install/usr $fs
  251.43 +genpkg_rules() {
  251.44 +	copy @std
  251.45 +	py=${PACKAGE%%-*} # python/python3
  251.46 +	DEPENDS="$py $py-wcwidth"
  251.47  }
  251.48 -
   252.1 --- a/python-pytest/receipt	Fri Sep 14 11:37:28 2018 +0300
   252.2 +++ b/python-pytest/receipt	Sat Sep 22 16:05:26 2018 +0300
   252.3 @@ -1,31 +1,37 @@
   252.4 -# SliTaz package receipt.
   252.5 +# SliTaz package receipt v2.
   252.6  
   252.7 +ORIGIN="pytest"
   252.8  PACKAGE="python-pytest"
   252.9 -VERSION="2.3.4"
  252.10 -CATEGORY="development"
  252.11 +VERSION="3.8.0"
  252.12 +CATEGORY="python"
  252.13  SHORT_DESC="A simple powerful testing with Python"
  252.14  MAINTAINER="pascal.bellard@slitaz.org"
  252.15  LICENSE="MIT"
  252.16 -WEB_SITE="https://pypi.org/project/pytest/"
  252.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  252.18 +HOST_ARCH="any"
  252.19  REPOLOGY="python:pytest"
  252.20  
  252.21 -SOURCE="pytest"
  252.22 -TARBALL="$SOURCE-$VERSION.zip"
  252.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  252.24 +BUILD_DEPENDS="python python-atomicwrites python-attrs python-funcsigs \
  252.25 +python-more-itertools python-pathlib2 python-pluggy python-py python-six \
  252.26 +python3 python3-atomicwrites python3-attrs python3-more-itertools \
  252.27 +python3-pluggy python3-py python3-six"
  252.28 +SPLIT="${PACKAGE/python/python3}:3"
  252.29  
  252.30 -DEPENDS="python"
  252.31 -BUILD_DEPENDS="python-dev"
  252.32 -
  252.33 -# Rules to configure and make the package.
  252.34 -compile_rules()
  252.35 -{
  252.36 -	python setup.py build
  252.37 -	python setup.py install --root=$DESTDIR
  252.38 +compile_rules() {
  252.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  252.40  }
  252.41  
  252.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  252.43 -genpkg_rules()
  252.44 -{
  252.45 -	mkdir -p $fs/usr
  252.46 -	cp -a $install/usr/lib $fs/usr
  252.47 +genpkg_rules() {
  252.48 +	copy @std
  252.49 +	py=${PACKAGE%%-*} # python/python3
  252.50 +	case $PACKAGE in
  252.51 +		python-*)
  252.52 +			DEPENDS="$py $py-atomicwrites $py-attrs $py-funcsigs \
  252.53 +			$py-more-itertools $py-pathlib2 $py-pluggy $py-py $py-six"
  252.54 +			;;
  252.55 +		python3-*)
  252.56 +			DEPENDS="$py $py-atomicwrites $py-attrs $py-more-itertools \
  252.57 +			$py-pluggy $py-py $py-six"
  252.58 +			;;
  252.59 +	esac
  252.60  }
   253.1 --- a/python-pytz/receipt	Fri Sep 14 11:37:28 2018 +0300
   253.2 +++ b/python-pytz/receipt	Sat Sep 22 16:05:26 2018 +0300
   253.3 @@ -1,31 +1,25 @@
   253.4  # SliTaz package receipt v2.
   253.5  
   253.6 +ORIGIN="pytz"
   253.7  PACKAGE="python-pytz"
   253.8 -VERSION="latest"
   253.9 -CATEGORY="development"
  253.10 +VERSION="2018.5"
  253.11 +CATEGORY="python"
  253.12  SHORT_DESC="World Timezone Definitions for Python"
  253.13  MAINTAINER="al.bobylev@gmail.com"
  253.14  LICENSE="MIT"
  253.15 -WEB_SITE="https://pypi.org/project/pytz/"
  253.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  253.17 +HOST_ARCH="any"
  253.18  REPOLOGY="python:pytz"
  253.19  
  253.20  BUILD_DEPENDS="python python3"
  253.21 -SPLIT="python3-pytz:py3"
  253.22 +SPLIT="${PACKAGE/python/python3}:3"
  253.23  
  253.24  compile_rules() {
  253.25 -	case $SET in
  253.26 -		'')  pip='pip';;
  253.27 -		py3) pip='pip3';;
  253.28 -	esac
  253.29 -	$pip install --no-compile --root=$DESTDIR pytz
  253.30 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  253.31  }
  253.32  
  253.33  genpkg_rules() {
  253.34 -	VERSION=$(find $install -type d -name 'pytz-*.dist-info' -exec basename '{}' \; \
  253.35 -	| sed 's|pytz-\(.*\)\.dist-info|\1|')
  253.36  	copy @std
  253.37 -	case $PACKAGE in
  253.38 -		python-pytz)  DEPENDS="python";;
  253.39 -		python3-pytz) DEPENDS="python3";;
  253.40 -	esac
  253.41 +	py="${PACKAGE%%-*}" # python/python3
  253.42 +	DEPENDS="$py"
  253.43  }
   254.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   254.2 +++ b/python-pyusb/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   254.3 @@ -0,0 +1,1 @@
   254.4 +../python/.icon.png
   254.5 \ No newline at end of file
   255.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   255.2 +++ b/python-pyusb/receipt	Sat Sep 22 16:05:26 2018 +0300
   255.3 @@ -0,0 +1,25 @@
   255.4 +# SliTaz package receipt v2.
   255.5 +
   255.6 +ORIGIN="pyusb"
   255.7 +PACKAGE="python-pyusb"
   255.8 +VERSION="1.0.2"
   255.9 +CATEGORY="python"
  255.10 +SHORT_DESC="Python USB access module"
  255.11 +MAINTAINER="pascal.bellard@slitaz.org"
  255.12 +LICENSE="BSD"
  255.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  255.14 +HOST_ARCH="any"
  255.15 +REPOLOGY="python:pyusb"
  255.16 +
  255.17 +BUILD_DEPENDS="python python3"
  255.18 +SPLIT="${PACKAGE/python/python3}:3"
  255.19 +
  255.20 +compile_rules() {
  255.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  255.22 +}
  255.23 +
  255.24 +genpkg_rules() {
  255.25 +	copy @std
  255.26 +	py="${PACKAGE%%-*}" # python/python3
  255.27 +	DEPENDS="$py"
  255.28 +}
   256.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   256.2 +++ b/python-pyutil/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   256.3 @@ -0,0 +1,1 @@
   256.4 +../python/.icon.png
   256.5 \ No newline at end of file
   257.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   257.2 +++ b/python-pyutil/receipt	Sat Sep 22 16:05:26 2018 +0300
   257.3 @@ -0,0 +1,25 @@
   257.4 +# SliTaz package receipt v2.
   257.5 +
   257.6 +ORIGIN="pyutil"
   257.7 +PACKAGE="python-pyutil"
   257.8 +VERSION="3.1.0"
   257.9 +CATEGORY="python"
  257.10 +SHORT_DESC="A collection of utilities for Python programmers"
  257.11 +MAINTAINER="al.bobylev@gmail.com"
  257.12 +LICENSE="GPL"
  257.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  257.14 +HOST_ARCH="any"
  257.15 +REPOLOGY="python:pyutil"
  257.16 +
  257.17 +BUILD_DEPENDS="python python3"
  257.18 +SPLIT="${PACKAGE/python/python3}:3"
  257.19 +
  257.20 +compile_rules() {
  257.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  257.22 +}
  257.23 +
  257.24 +genpkg_rules() {
  257.25 +	copy @std
  257.26 +	py="${PACKAGE%%-*}" # python/python3
  257.27 +	DEPENDS="$py"
  257.28 +}
   258.1 --- a/python-pyweb/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   258.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   258.3 @@ -1,1 +0,0 @@
   258.4 -../python/.icon.png
   258.5 \ No newline at end of file
   259.1 --- a/python-pyweb/receipt	Fri Sep 14 11:37:28 2018 +0300
   259.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   259.3 @@ -1,31 +0,0 @@
   259.4 -# SliTaz package receipt.
   259.5 -
   259.6 -PACKAGE="python-pyweb"
   259.7 -VERSION="0.37"
   259.8 -CATEGORY="development"
   259.9 -SHORT_DESC="A web framework for Python."
  259.10 -MAINTAINER="pascal.bellard@slitaz.org"
  259.11 -LICENSE="PublicDomain"
  259.12 -WEB_SITE="http://webpy.org/"
  259.13 -REPOLOGY="python:web.py" # python:webpy
  259.14 -
  259.15 -SOURCE="web.py"
  259.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  259.17 -WGET_URL="${WEB_SITE}static/$TARBALL"
  259.18 -
  259.19 -DEPENDS="python"
  259.20 -BUILD_DEPENDS="python"
  259.21 -
  259.22 -# Rules to configure and make the package.
  259.23 -compile_rules()
  259.24 -{
  259.25 -	python setup.py build
  259.26 -	python setup.py install --root=$DESTDIR
  259.27 -}
  259.28 -
  259.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
  259.30 -genpkg_rules()
  259.31 -{
  259.32 -	mkdir -p $fs/usr
  259.33 -	cp -a $install/usr/lib $fs/usr
  259.34 -}
   260.1 --- a/python-pywebdav/receipt	Fri Sep 14 11:37:28 2018 +0300
   260.2 +++ b/python-pywebdav/receipt	Sat Sep 22 16:05:26 2018 +0300
   260.3 @@ -1,32 +1,27 @@
   260.4 -# SliTaz package receipt.
   260.5 +# SliTaz package receipt v2.
   260.6  
   260.7 +ORIGIN="PyWebDAV"
   260.8  PACKAGE="python-pywebdav"
   260.9  VERSION="0.9.8"
  260.10 -CATEGORY="development"
  260.11 -SHORT_DESC="A WebDAV client library for Python."
  260.12 +CATEGORY="python"
  260.13 +SHORT_DESC="WebDAV library including a standalone server for Python"
  260.14  MAINTAINER="pascal.bellard@slitaz.org"
  260.15  LICENSE="GPL2"
  260.16 -WEB_SITE="https://pypi.org/project/PyWebDAV/"
  260.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  260.18 +HOST_ARCH="any"
  260.19  REPOLOGY="python:pywebdav"
  260.20  
  260.21 -SOURCE="PyWebDAV"
  260.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  260.23 -WGET_URL="http://pywebdav.googlecode.com/files/$TARBALL" # FIXME
  260.24 +BUILD_DEPENDS="python python3"
  260.25 +SPLIT="${PACKAGE/python/python3}:3"
  260.26  
  260.27 -DEPENDS="python"
  260.28 -BUILD_DEPENDS="python-dev python"
  260.29 +compile_rules() {
  260.30 +	fix utf-8; export LC_ALL=en_US.UTF-8
  260.31  
  260.32 -# Rules to configure and make the package.
  260.33 -compile_rules()
  260.34 -{
  260.35 -	python setup.py develop &&
  260.36 -	python setup.py install --root=$DESTDIR
  260.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  260.38  }
  260.39  
  260.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  260.41 -genpkg_rules()
  260.42 -{
  260.43 -	mkdir -p $fs
  260.44 -	cp -a $install/usr $fs
  260.45 +genpkg_rules() {
  260.46 +	copy @std
  260.47 +	py="${PACKAGE%%-*}" # python/python3
  260.48 +	DEPENDS="$py"
  260.49  }
  260.50 -
   261.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   261.2 +++ b/python-pyxdg/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   261.3 @@ -0,0 +1,1 @@
   261.4 +../python/.icon.png
   261.5 \ No newline at end of file
   262.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   262.2 +++ b/python-pyxdg/receipt	Sat Sep 22 16:05:26 2018 +0300
   262.3 @@ -0,0 +1,25 @@
   262.4 +# SliTaz package receipt v2.
   262.5 +
   262.6 +ORIGIN="pyxdg"
   262.7 +PACKAGE="python-pyxdg"
   262.8 +VERSION="0.26"
   262.9 +CATEGORY="python"
  262.10 +SHORT_DESC="Implementations of freedesktop.org standards"
  262.11 +MAINTAINER="paul@slitaz.org"
  262.12 +LICENSE="LGPL2"
  262.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  262.14 +HOST_ARCH="any"
  262.15 +REPOLOGY="python:pyxdg"
  262.16 +
  262.17 +BUILD_DEPENDS="python python3"
  262.18 +SPLIT="${PACKAGE/python/python3}:3"
  262.19 +
  262.20 +compile_rules() {
  262.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  262.22 +}
  262.23 +
  262.24 +genpkg_rules() {
  262.25 +	copy @std
  262.26 +	py="${PACKAGE%%-*}" # python/python3
  262.27 +	DEPENDS="$py"
  262.28 +}
   263.1 --- a/python-pyxml/receipt	Fri Sep 14 11:37:28 2018 +0300
   263.2 +++ b/python-pyxml/receipt	Sat Sep 22 16:05:26 2018 +0300
   263.3 @@ -1,37 +1,27 @@
   263.4 -# SliTaz package receipt.
   263.5 +# SliTaz package receipt v2.
   263.6  
   263.7 +ORIGIN="PyXML"
   263.8  PACKAGE="python-pyxml"
   263.9 -VERSION="0.8.4"
  263.10 -CATEGORY="development"
  263.11 -SHORT_DESC="Pythonic binding for xml..."
  263.12 +VERSION="0.8.4"			# no longer maintained since 2004
  263.13 +CATEGORY="python"
  263.14 +SHORT_DESC="Pythonic binding for xml"
  263.15  MAINTAINER="pascal.bellard@slitaz.org"
  263.16  LICENSE="BSD"
  263.17  WEB_SITE="http://pyxml.sourceforge.net/"
  263.18 +#HOST_ARCH
  263.19  REPOLOGY="python:pyxml"
  263.20  
  263.21 -SOURCE="PyXML"
  263.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  263.23 +TARBALL="$ORIGIN-$VERSION.tar.gz"
  263.24  WGET_URL="$SF_MIRROR/pyxml/$TARBALL"
  263.25  
  263.26 -DEPENDS="python"
  263.27 -BUILD_DEPENDS="python python-dev"
  263.28 +BUILD_DEPENDS="python-dev"
  263.29  
  263.30 -# Rules to configure and make the package.
  263.31 -compile_rules()
  263.32 -{
  263.33 -	python setup.py build --with-xslt
  263.34 -	python setup.py install --root=$DESTDIR
  263.35 +compile_rules() {
  263.36 +	python setup.py build --with-xslt &&
  263.37 +	python -B setup.py install --root=$install
  263.38  }
  263.39  
  263.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  263.41 -genpkg_rules()
  263.42 -{
  263.43 -	cp -a $install/usr $fs
  263.44 +genpkg_rules() {
  263.45 +	copy @std
  263.46 +	DEPENDS="python"
  263.47  }
  263.48 -
  263.49 -# Remove old package.
  263.50 -post_install()
  263.51 -{
  263.52 -	[ ! -d "$1/var/lib/tazpkg/installed/pyxml" ] ||
  263.53 -	rm -rf "$1/var/lib/tazpkg/installed/pyxml"
  263.54 -}
   264.1 --- a/python-pyxml/stuff/patches/fix-python2.6.patch	Fri Sep 14 11:37:28 2018 +0300
   264.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   264.3 @@ -1,28 +0,0 @@
   264.4 -diff -ur a/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
   264.5 ---- a/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py	2003-03-11 15:01:34.000000000 +0100
   264.6 -+++ b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py	2009-05-25 16:32:26.000000000 +0200
   264.7 -@@ -24,8 +24,8 @@
   264.8 -         self._rel = rel
   264.9 -         nt = ParsedNodeTest.ParsedNodeTest('node', '')
  264.10 -         ppl = ParsedPredicateList.ParsedPredicateList([])
  264.11 --        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
  264.12 --        self._step = ParsedStep.ParsedStep(as, nt, ppl)
  264.13 -+        asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
  264.14 -+        self._step = ParsedStep.ParsedStep(asp, nt, ppl)
  264.15 -         return
  264.16 - 
  264.17 -     def evaluate(self, context):
  264.18 -diff -ur a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
  264.19 ---- a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py	2003-03-11 15:01:34.000000000 +0100
  264.20 -+++ b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py	2009-05-25 16:27:55.000000000 +0200
  264.21 -@@ -28,8 +28,8 @@
  264.22 -         self._right = right
  264.23 -         nt = ParsedNodeTest.ParsedNodeTest('node','')
  264.24 -         ppl = ParsedPredicateList.ParsedPredicateList([])
  264.25 --        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
  264.26 --        self._middle = ParsedStep.ParsedStep(as, nt, ppl)
  264.27 -+        asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
  264.28 -+        self._middle = ParsedStep.ParsedStep(asp, nt, ppl)
  264.29 - 
  264.30 -     def evaluate(self, context):
  264.31 -         res = []
   265.1 --- a/python-pyxml/stuff/patches/series	Fri Sep 14 11:37:28 2018 +0300
   265.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   265.3 @@ -1,1 +0,0 @@
   265.4 -fix-python2.6.patch
   266.1 --- a/python-pyyaml/receipt	Fri Sep 14 11:37:28 2018 +0300
   266.2 +++ b/python-pyyaml/receipt	Sat Sep 22 16:05:26 2018 +0300
   266.3 @@ -1,30 +1,25 @@
   266.4 -# SliTaz package receipt.
   266.5 +# SliTaz package receipt v2.
   266.6  
   266.7 +ORIGIN="PyYAML"
   266.8  PACKAGE="python-pyyaml"
   266.9 -VERSION="3.08"
  266.10 -CATEGORY="development"
  266.11 -SHORT_DESC="YAML parser and emitter for the Python programming language."
  266.12 +VERSION="3.13"
  266.13 +CATEGORY="python"
  266.14 +SHORT_DESC="YAML parser and emitter for Python"
  266.15  MAINTAINER="rocky@slitaz.org"
  266.16  LICENSE="MIT"
  266.17 -WEB_SITE="https://pyyaml.org/wiki/PyYAML/"
  266.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  266.19 +#HOST_ARCH
  266.20  REPOLOGY="python:pyyaml"
  266.21  
  266.22 -SOURCE="PyYAML"
  266.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  266.24 -WGET_URL="http://pyyaml.org/download/pyyaml/$TARBALL"
  266.25 +BUILD_DEPENDS="python-dev python3-dev yaml-dev"
  266.26 +SPLIT="${PACKAGE/python/python3}:3"
  266.27  
  266.28 -DEPENDS="python"
  266.29 -BUILD_DEPENDS="python python-dev yaml-dev"
  266.30 -
  266.31 -# Rules to configure and make the package.
  266.32 -compile_rules()
  266.33 -{
  266.34 -	python setup.py install --root=$DESTDIR
  266.35 +compile_rules() {
  266.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  266.37  }
  266.38  
  266.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  266.40 -genpkg_rules()
  266.41 -{
  266.42 -	mkdir -p $fs/usr
  266.43 -	cp -a $install/usr $fs
  266.44 +genpkg_rules() {
  266.45 +	copy @std
  266.46 +	py="${PACKAGE%%-*}" # python/python3
  266.47 +	DEPENDS="$py yaml"
  266.48  }
   267.1 --- a/python-qrcode/receipt	Fri Sep 14 11:37:28 2018 +0300
   267.2 +++ b/python-qrcode/receipt	Sat Sep 22 16:05:26 2018 +0300
   267.3 @@ -1,30 +1,25 @@
   267.4 -# SliTaz package receipt.
   267.5 +# SliTaz package receipt v2.
   267.6  
   267.7 +ORIGIN="qrcode"
   267.8  PACKAGE="python-qrcode"
   267.9 -VERSION="4.0.4"
  267.10 -CATEGORY="development"
  267.11 -SHORT_DESC="Python QR Code image generator."
  267.12 +VERSION="6.0"
  267.13 +CATEGORY="python"
  267.14 +SHORT_DESC="QR Code image generator"
  267.15  MAINTAINER="pascal.bellard@slitaz.org"
  267.16 -LICENSE="PSL"
  267.17 -WEB_SITE="https://pypi.org/project/qrcode/"
  267.18 +LICENSE="BSD"
  267.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  267.20 +HOST_ARCH="any"
  267.21  REPOLOGY="python:qrcode"
  267.22  
  267.23 -SOURCE="qrcode"
  267.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  267.25 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  267.26 +BUILD_DEPENDS="python-dev python-six  python3-dev python3-six"
  267.27 +SPLIT="${PACKAGE/python/python3}:3"
  267.28  
  267.29 -DEPENDS="python python-pil python-six"
  267.30 -BUILD_DEPENDS="python-dev python"
  267.31 -
  267.32 -# Rules to configure and make the package.
  267.33 -compile_rules()
  267.34 -{
  267.35 -	python setup.py build &&
  267.36 -	python setup.py install --root=$DESTDIR
  267.37 +compile_rules() {
  267.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  267.39  }
  267.40  
  267.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  267.42 -genpkg_rules()
  267.43 -{
  267.44 -	cp -a $install/usr $fs
  267.45 +genpkg_rules() {
  267.46 +	copy @std
  267.47 +	py="${PACKAGE%%-*}" # python/python3
  267.48 +	DEPENDS="$py $py-six"
  267.49  }
   268.1 --- a/python-reportlab/receipt	Fri Sep 14 11:37:28 2018 +0300
   268.2 +++ b/python-reportlab/receipt	Sat Sep 22 16:05:26 2018 +0300
   268.3 @@ -1,45 +1,25 @@
   268.4 -# SliTaz package receipt.
   268.5 +# SliTaz package receipt v2.
   268.6  
   268.7 +ORIGIN="reportlab"
   268.8  PACKAGE="python-reportlab"
   268.9 -VERSION="2_3"
  268.10 -CATEGORY="development"
  268.11 -SHORT_DESC="PDF generation solution."
  268.12 +VERSION="3.5.6"
  268.13 +CATEGORY="python"
  268.14 +SHORT_DESC="The Reportlab Toolkit"
  268.15  MAINTAINER="pascal.bellard@slitaz.org"
  268.16  LICENSE="BSD"
  268.17 -WEB_SITE="https://pypi.org/project/reportlab/"
  268.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  268.19 +#HOST_ARCH
  268.20  REPOLOGY="python:reportlab"
  268.21  
  268.22 -SOURCE="ReportLab"
  268.23 -TARBALL="${SOURCE}_$VERSION.tar.gz"
  268.24 -WGET_URL="${WEB_SITE}ftp/$TARBALL" # FIXME
  268.25 +BUILD_DEPENDS="python python-pillow  python3 python3-pillow"
  268.26 +SPLIT="${PACKAGE/python/python3}:3"
  268.27  
  268.28 -DEPENDS="python freetype"
  268.29 -BUILD_DEPENDS="python python-dev"
  268.30 -
  268.31 -# Rules to configure and make the package.
  268.32 -compile_rules()
  268.33 -{
  268.34 -	ln -s ${SOURCE}_$VERSION $src
  268.35 -	cd $src
  268.36 -	python setup.py build &&
  268.37 -	python setup.py install --root=$DESTDIR
  268.38 +compile_rules() {
  268.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  268.40  }
  268.41  
  268.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  268.43 -genpkg_rules()
  268.44 -{
  268.45 -	cp -a $install/usr $fs
  268.46 +genpkg_rules() {
  268.47 +	copy @std
  268.48 +	py="${PACKAGE%%-*}" # python/python3
  268.49 +	DEPENDS="$py $py-pillow"
  268.50  }
  268.51 -
  268.52 -clean_wok()
  268.53 -{
  268.54 -	rm -rf ${PACKAGE}_$VERSION
  268.55 -}
  268.56 -
  268.57 -# Remove old package.
  268.58 -post_install()
  268.59 -{
  268.60 -	[ ! -d "$1/var/lib/tazpkg/installed/reportlab" ] ||
  268.61 -	rm -rf "$1/var/lib/tazpkg/installed/reportlab"
  268.62 -}
  268.63 -
   269.1 --- a/python-repoze.lru/receipt	Fri Sep 14 11:37:28 2018 +0300
   269.2 +++ b/python-repoze.lru/receipt	Sat Sep 22 16:05:26 2018 +0300
   269.3 @@ -1,22 +1,25 @@
   269.4  # SliTaz package receipt v2.
   269.5  
   269.6 +ORIGIN="repoze.lru"
   269.7  PACKAGE="python-repoze.lru"
   269.8 -VERSION="latest"
   269.9 -CATEGORY="development"
  269.10 +VERSION="0.7"
  269.11 +CATEGORY="python"
  269.12  SHORT_DESC="A tiny LRU cache implementation and decorator"
  269.13  MAINTAINER="al.bobylev@gmail.com"
  269.14  LICENSE="BSD"
  269.15 -WEB_SITE="https://pypi.org/project/repoze.lru/"
  269.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  269.17 +HOST_ARCH="any"
  269.18  REPOLOGY="python:repoze.lru"
  269.19  
  269.20 -BUILD_DEPENDS="python"
  269.21 +BUILD_DEPENDS="python python3"
  269.22 +SPLIT="${PACKAGE/python/python3}:3"
  269.23  
  269.24  compile_rules() {
  269.25 -	pip install --no-compile --root=$DESTDIR repoze.lru
  269.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  269.27  }
  269.28  
  269.29  genpkg_rules() {
  269.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*repoze.lru-||p' $LOGS/$PACKAGE.log)
  269.31  	copy @std
  269.32 -	DEPENDS="python"
  269.33 +	py="${PACKAGE%%-*}" # python/python3
  269.34 +	DEPENDS="$py"
  269.35  }
   270.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   270.2 +++ b/python-requests-oauthlib/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   270.3 @@ -0,0 +1,1 @@
   270.4 +../python/.icon.png
   270.5 \ No newline at end of file
   271.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   271.2 +++ b/python-requests-oauthlib/receipt	Sat Sep 22 16:05:26 2018 +0300
   271.3 @@ -0,0 +1,26 @@
   271.4 +# SliTaz package receipt v2.
   271.5 +
   271.6 +ORIGIN="requests-oauthlib"
   271.7 +PACKAGE="python-requests-oauthlib"
   271.8 +VERSION="1.0.0"
   271.9 +CATEGORY="python"
  271.10 +SHORT_DESC="OAuthlib authentication support for Requests"
  271.11 +MAINTAINER="al.bobylev@gmail.com"
  271.12 +LICENSE="BSD"
  271.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  271.14 +HOST_ARCH="any"
  271.15 +REPOLOGY="python:requests-oauthlib"
  271.16 +
  271.17 +BUILD_DEPENDS="python python-oauthlib python-requests \
  271.18 +python3 python3-oauthlib python3-requests"
  271.19 +SPLIT="${PACKAGE/python/python3}:3"
  271.20 +
  271.21 +compile_rules() {
  271.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  271.23 +}
  271.24 +
  271.25 +genpkg_rules() {
  271.26 +	copy @std
  271.27 +	py=${PACKAGE%%-*} # python/python3
  271.28 +	DEPENDS="$py $py-oauthlib $py-requests"
  271.29 +}
   272.1 --- a/python-requests/receipt	Fri Sep 14 11:37:28 2018 +0300
   272.2 +++ b/python-requests/receipt	Sat Sep 22 16:05:26 2018 +0300
   272.3 @@ -1,22 +1,26 @@
   272.4  # SliTaz package receipt v2.
   272.5  
   272.6 +ORIGIN="requests"
   272.7  PACKAGE="python-requests"
   272.8 -VERSION="latest"
   272.9 +VERSION="2.19.1"
  272.10  CATEGORY="network"
  272.11  SHORT_DESC="Python HTTP Requests for Humans"
  272.12  MAINTAINER="al.bobylev@gmail.com"
  272.13  LICENSE="Apache"
  272.14 -WEB_SITE="https://pypi.org/project/requests/"
  272.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  272.16 +HOST_ARCH="any"
  272.17  REPOLOGY="python:requests"
  272.18  
  272.19 -BUILD_DEPENDS="python-urllib3 python-idna python-certifi python-chardet"
  272.20 +BUILD_DEPENDS="python python-urllib3 python-idna python-certifi python-chardet \
  272.21 +python3 python3-urllib3 python3-idna python3-certifi python3-chardet"
  272.22 +SPLIT="${PACKAGE/python/python3}:3"
  272.23  
  272.24  compile_rules() {
  272.25 -	pip install --no-compile --root=$DESTDIR requests
  272.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  272.27  }
  272.28  
  272.29  genpkg_rules() {
  272.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*requests-||p' $LOGS/$PACKAGE.log)
  272.31  	copy @std
  272.32 -	DEPENDS="$BUILD_DEPENDS"
  272.33 +	py=${PACKAGE%%-*} # python/python3
  272.34 +	DEPENDS="$py $py-urllib3 $py-idna $py-certifi $py-chardet"
  272.35  }
   273.1 --- a/python-restclient/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   273.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   273.3 @@ -1,1 +0,0 @@
   273.4 -../python/.icon.png
   273.5 \ No newline at end of file
   274.1 --- a/python-restclient/receipt	Fri Sep 14 11:37:28 2018 +0300
   274.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   274.3 @@ -1,33 +0,0 @@
   274.4 -# SliTaz package receipt.
   274.5 -
   274.6 -PACKAGE="python-restclient"
   274.7 -VERSION="1.3.2"
   274.8 -CATEGORY="development"
   274.9 -SHORT_DESC="A simple REST client for python"
  274.10 -MAINTAINER="claudinei@slitaz.org"
  274.11 -LICENSE="MIT"
  274.12 -WEB_SITE="https://bitbucket.org/benoitc/py-restclient"
  274.13 -REPOLOGY="python:py-restclient"
  274.14 -
  274.15 -SOURCE="py-restclient"
  274.16 -TARBALL="$PACKAGE-$VERSION.tgz"
  274.17 -WGET_URL="$WEB_SITE/get/$VERSION.gz"
  274.18 -
  274.19 -DEPENDS="python python-httplib2"
  274.20 -BUILD_DEPENDS="python python-dev"
  274.21 -
  274.22 -# Rules to configure and make the package.
  274.23 -compile_rules()
  274.24 -{
  274.25 -	python setup.py install --root=$DESTDIR
  274.26 -}
  274.27 -
  274.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
  274.29 -genpkg_rules()
  274.30 -{
  274.31 -	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
  274.32 -	mkdir -p $fs/usr
  274.33 -	rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/*
  274.34 -	rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests
  274.35 -	cp -a $install/usr $fs
  274.36 -}
   275.1 --- a/python-restkit/receipt	Fri Sep 14 11:37:28 2018 +0300
   275.2 +++ b/python-restkit/receipt	Sat Sep 22 16:05:26 2018 +0300
   275.3 @@ -1,31 +1,28 @@
   275.4 -# SliTaz package receipt.
   275.5 +# SliTaz package receipt v2.
   275.6  
   275.7 +ORIGIN="restkit"
   275.8  PACKAGE="python-restkit"
   275.9 -VERSION="4.2.1"
  275.10 -CATEGORY="development"
  275.11 -SHORT_DESC="An HTTP resource kit for Python"
  275.12 +VERSION="4.2.2"
  275.13 +CATEGORY="python"
  275.14 +SHORT_DESC="Python REST kit"
  275.15  MAINTAINER="claudinei@slitaz.org"
  275.16  LICENSE="MIT"
  275.17 -WEB_SITE="http://restkit.readthedocs.org"
  275.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  275.19 +HOST_ARCH="any"
  275.20  REPOLOGY="python:restkit"
  275.21  
  275.22 -SOURCE="restkit"
  275.23 -TARBALL="$SOURCE-$VERSION.zip"
  275.24 -WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
  275.25 +BUILD_DEPENDS="python-dev python-http-parser python-socketpool \
  275.26 +python3-dev python3-http-parser python3-socketpool"
  275.27 +SPLIT="${PACKAGE/python/python3}:3"
  275.28  
  275.29 -DEPENDS="python python-http-parser python-socketpool"
  275.30 -BUILD_DEPENDS="python-dev"
  275.31 +compile_rules() {
  275.32 +	fix utf-8; export LC_ALL=en_US.UTF-8
  275.33  
  275.34 -# Rules to configure and make the package.
  275.35 -compile_rules()
  275.36 -{
  275.37 -	python setup.py install --root=$DESTDIR
  275.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  275.39  }
  275.40  
  275.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  275.42 -genpkg_rules()
  275.43 -{
  275.44 -	mkdir -p $fs/usr
  275.45 -	rm -rf $install/usr/restkit
  275.46 -	cp -a $install/usr $fs
  275.47 +genpkg_rules() {
  275.48 +	copy @std
  275.49 +	py="${PACKAGE%%-*}" # python/python3
  275.50 +	DEPENDS="$py $py-http-parser $py-socketpool"
  275.51  }
   276.1 --- a/python-routes/receipt	Fri Sep 14 11:37:28 2018 +0300
   276.2 +++ b/python-routes/receipt	Sat Sep 22 16:05:26 2018 +0300
   276.3 @@ -1,31 +1,26 @@
   276.4 -# SliTaz package receipt.
   276.5 +# SliTaz package receipt v2.
   276.6  
   276.7 +ORIGIN="Routes"
   276.8  PACKAGE="python-routes"
   276.9 -VERSION="1.12.3"
  276.10 -CATEGORY="development"
  276.11 +VERSION="2.4.1"
  276.12 +CATEGORY="python"
  276.13  SHORT_DESC="Routing Recognition and Generation Tools"
  276.14  MAINTAINER="taziden@slitaz.org"
  276.15  LICENSE="BSD"
  276.16 -WEB_SITE="http://pylonshq.com"
  276.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  276.18 +HOST_ARCH="any"
  276.19  REPOLOGY="python:routes"
  276.20  
  276.21 -SOURCE="Routes"
  276.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  276.23 -WGET_URL="http://cdn.pylonshq.com/download/1.0/$TARBALL"
  276.24 -TAGS="python"
  276.25 +BUILD_DEPENDS="python python-repoze.lru python-six \
  276.26 +python3 python3-repoze.lru python3-six"
  276.27 +SPLIT="${PACKAGE/python/python3}:3"
  276.28  
  276.29 -DEPENDS="python"
  276.30 -BUILD_DEPENDS="python python-dev"
  276.31 -
  276.32 -# Rules to configure and make the package.
  276.33 -compile_rules()
  276.34 -{
  276.35 -	python setup.py install --root=$DESTDIR
  276.36 +compile_rules() {
  276.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  276.38  }
  276.39  
  276.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  276.41 -genpkg_rules()
  276.42 -{
  276.43 -	cp -a $install/usr $fs
  276.44 +genpkg_rules() {
  276.45 +	copy @std
  276.46 +	py="${PACKAGE%%-*}" # python/python3
  276.47 +	DEPENDS="$py $py-repoze.lru $py-six"
  276.48  }
  276.49 -
   277.1 --- a/python-rpi-adafruit/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   277.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   277.3 @@ -1,1 +0,0 @@
   277.4 -../python/.icon.png
   277.5 \ No newline at end of file
   278.1 --- a/python-rpi-adafruit/receipt	Fri Sep 14 11:37:28 2018 +0300
   278.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   278.3 @@ -1,32 +0,0 @@
   278.4 -# SliTaz package receipt.
   278.5 -
   278.6 -PACKAGE="python-rpi-adafruit"
   278.7 -GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0"
   278.8 -VERSION=${GITHASH:0:6}
   278.9 -CATEGORY="system-tools"
  278.10 -SHORT_DESC="Adafruit Industries Python code for the RPi"
  278.11 -MAINTAINER="pankso@slitaz.org"
  278.12 -LICENSE="BSD"
  278.13 -WEB_SITE="https://www.adafruit.com/"
  278.14 -HOST_ARCH="arm"
  278.15 -
  278.16 -SOURCE="python-adafruit-code"
  278.17 -TARBALL="$PACKAGE-$VERSION.tar.zip"
  278.18 -WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH"
  278.19 -
  278.20 -# Leds support for now
  278.21 -DEPENDS="python python-smbus i2c-tools slitaz-arm-rpi"
  278.22 -
  278.23 -# Rules to gen a SliTaz package suitable for Tazpkg.
  278.24 -genpkg_rules()
  278.25 -{
  278.26 -	python="$fs/usr/lib/python2.7"
  278.27 -	mkdir -p ${python} ${fs}/usr/share/adafruit
  278.28 -	cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack
  278.29 -	# Can be imported to write custom code
  278.30 -	cp ${src}/Adafruit_I2C/* ${python}
  278.31 -	mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python}
  278.32 -	mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python}
  278.33 -	mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python}
  278.34 -	rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py
  278.35 -}
   279.1 --- a/python-rpi-gpio/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   279.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   279.3 @@ -1,1 +0,0 @@
   279.4 -../python/.icon.png
   279.5 \ No newline at end of file
   280.1 --- a/python-rpi-gpio/receipt	Fri Sep 14 11:37:28 2018 +0300
   280.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   280.3 @@ -1,43 +0,0 @@
   280.4 -# SliTaz package receipt.
   280.5 -
   280.6 -PACKAGE="python-rpi-gpio"
   280.7 -VERSION="0.5.5"
   280.8 -CATEGORY="system-tools"
   280.9 -SHORT_DESC="Python class to control the GPIO on a Raspberry Pi."
  280.10 -MAINTAINER="pankso@slitaz.org"
  280.11 -LICENSE="BSD"
  280.12 -WEB_SITE="https://pypi.org/project/RPi.GPIO/"
  280.13 -REPOLOGY="python:rpi-gpio"
  280.14 -HOST_ARCH="arm"
  280.15 -
  280.16 -SOURCE="RPi.GPIO"
  280.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
  280.18 -WGET_URL="https://files.pythonhosted.org/packages/source/R/$SOURCE/$TARBALL"
  280.19 -TAGS="raspberrypi rpi"
  280.20 -
  280.21 -DEPENDS="python python-smbus"
  280.22 -BUILD_DEPENDS="python-dev"
  280.23 -
  280.24 -# Rules to configure and make the package.
  280.25 -compile_rules()
  280.26 -{
  280.27 -	# Cross compilation hack
  280.28 -	case "$ARCH" in
  280.29 -		arm*)
  280.30 -			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
  280.31 -			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
  280.32 -				/usr/bin/i486-slitaz-linux-gcc ;;
  280.33 -	esac &&
  280.34 -	python setup.py install --root=$DESTDIR
  280.35 -	case "$ARCH" in
  280.36 -		arm*) 
  280.37 -			rm /usr/bin/i486-slitaz-linux-gcc &&
  280.38 -			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
  280.39 -	esac
  280.40 -}
  280.41 -
  280.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  280.43 -genpkg_rules()
  280.44 -{
  280.45 -	cp -a $install/usr $fs
  280.46 -}
   281.1 --- a/python-rpi-pyglow/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   281.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   281.3 @@ -1,1 +0,0 @@
   281.4 -../python/.icon.png
   281.5 \ No newline at end of file
   282.1 --- a/python-rpi-pyglow/receipt	Fri Sep 14 11:37:28 2018 +0300
   282.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   282.3 @@ -1,27 +0,0 @@
   282.4 -# SliTaz package receipt.
   282.5 -
   282.6 -PACKAGE="python-rpi-pyglow"
   282.7 -VERSION="git-1"
   282.8 -CATEGORY="system-tools"
   282.9 -SHORT_DESC="Controlling the PiGlow from Python."
  282.10 -MAINTAINER="pankso@slitaz.org"
  282.11 -LICENSE="BSD"
  282.12 -WEB_SITE="https://github.com/benleb/PyGlow"
  282.13 -HOST_ARCH="arm"
  282.14 -
  282.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
  282.16 -WGET_URL="git|git://github.com/benleb/PyGlow.git"
  282.17 -TAGS="raspberrypi rpi"
  282.18 -
  282.19 -DEPENDS="python python-smbus python-psutil python-rpi-gpio"
  282.20 -
  282.21 -# Rules to gen a SliTaz package suitable for Tazpkg.
  282.22 -genpkg_rules()
  282.23 -{
  282.24 -	pylibs="/usr/lib/python2.7"
  282.25 -	mkdir -p $fs/${pylibs} $fs/usr/share $fs/usr/bin
  282.26 -	cp -a ${src}/pyglow.py $fs/${pylibs}
  282.27 -	cp -a ${src}/examples $fs/usr/share/pyglow
  282.28 -	cp ${stuff}/vortex.py $fs/usr/share/pyglow
  282.29 -	cp ${stuff}/pyglow $fs/usr/bin
  282.30 -}
   283.1 --- a/python-rpi-pyglow/stuff/pyglow	Fri Sep 14 11:37:28 2018 +0300
   283.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   283.3 @@ -1,29 +0,0 @@
   283.4 -#!/bin/sh
   283.5 -#
   283.6 -# Tiny wrapper to Python Pimorini (vortex.py) and Pyglow examples
   283.7 -#
   283.8 -
   283.9 -ex="/usr/share/pyglow"
  283.10 -
  283.11 -# Make sure we have i2c-* module loaded
  283.12 -if ! lsmod | grep -q 'i2c_dev'; then
  283.13 -	modprobe i2c-bcm2708
  283.14 -	modprobe i2c-dev
  283.15 -fi
  283.16 -
  283.17 -case "$1" in
  283.18 -	'test') 
  283.19 -		python ${ex}/test.py ;;
  283.20 -	cpu) 
  283.21 -		python ${ex}/cpu.py ;;
  283.22 -	clock) 
  283.23 -		python ${ex}/clock.py ;;
  283.24 -	set-leds) 
  283.25 -		python ${ex}/set_leds.py ;;
  283.26 -	vortex)
  283.27 -		python ${ex}/vortex.py ;;
  283.28 -	*) 
  283.29 -		echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
  283.30 -esac
  283.31 -
  283.32 -exit 0
   284.1 --- a/python-rpi-pyglow/stuff/vortex.py	Fri Sep 14 11:37:28 2018 +0300
   284.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   284.3 @@ -1,71 +0,0 @@
   284.4 -# Sample script for PiGlow that creates a continuous whirly vortex animation
   284.5 -#
   284.6 -# Official Pimorini example modified by Christophe Lincoln for SliTaz ARM
   284.7 -# See our GitHub repository for more information: https://github.com/pimoroni/piglow
   284.8 -#
   284.9 -
  284.10 -import time
  284.11 -from smbus import SMBus
  284.12 -
  284.13 -# command register addresses for the SN3218 IC used in PiGlow
  284.14 -CMD_ENABLE_OUTPUT = 0x00
  284.15 -CMD_ENABLE_LEDS = 0x13
  284.16 -CMD_SET_PWM_VALUES = 0x01
  284.17 -CMD_UPDATE = 0x16
  284.18 -
  284.19 -class PiGlow:
  284.20 -	i2c_addr = 0x54 # fixed i2c address of SN3218 ic
  284.21 -	bus = None
  284.22 -
  284.23 -	def __init__(self, i2c_bus=1):
  284.24 -		self.bus = SMBus(i2c_bus)
  284.25 -
  284.26 -        # first we tell the SN3218 to enable output (turn on)
  284.27 -		self.write_i2c(CMD_ENABLE_OUTPUT, 0x01)
  284.28 -
  284.29 -        # then we ask it to enable each bank of LEDs (0-5, 6-11, and 12-17)
  284.30 -		self.write_i2c(CMD_ENABLE_LEDS, [0xFF, 0xFF, 0xFF])
  284.31 -
  284.32 -	def update_leds(self, values):
  284.33 -		self.write_i2c(CMD_SET_PWM_VALUES, values)
  284.34 -		self.write_i2c(CMD_UPDATE, 0xFF)
  284.35 -
  284.36 -	# a helper that writes the given value or list of values to the SN3218 IC
  284.37 -	# over the i2c protocol
  284.38 -	def write_i2c(self, reg_addr, value):
  284.39 -        # if a single value is provided then wrap it in a list so we can treat
  284.40 -        # all writes in teh same way
  284.41 -		if not isinstance(value, list):
  284.42 -			value = [value];
  284.43 -
  284.44 -        # write the data to the SN3218
  284.45 -		self.bus.write_i2c_block_data(self.i2c_addr, reg_addr, value)
  284.46 -
  284.47 -# a list of 18 values between 0 - 255 that represent each LED on the PiGlow.
  284.48 -# to change the LEDs we set the values in this array and then pass it to the
  284.49 -# update_leds() function to actually update the LDEs
  284.50 -values = [0x01,0x02,0x04,0x08,0x10,0x18,0x20,0x30,0x40,0x50,0x60,0x70,0x80,0x90,0xA0,0xC0,0xE0,0xFF]
  284.51 -
  284.52 -# create an instance of our PiGlow class and tell it that "1" is the I2C bus
  284.53 -# index (should be 0 for old old old Pis)
  284.54 -piglow = PiGlow(1)
  284.55 -
  284.56 -# loop forever, i mean why would we ever want to stop now the party has started?
  284.57 -# you can however use Ctrl+C to stop the script and reset the LEDs to off state
  284.58 -try:
  284.59 -	print "Use Ctrl-C to stop"
  284.60 -	while True:
  284.61 -		# pop the first value off then drop it back on again - this just cycles the values around
  284.62 -		values.append(values.pop(0))
  284.63 -
  284.64 -		# update the piglow with current values
  284.65 -		piglow.update_leds(values)
  284.66 -
  284.67 -		# sleep for a bit, don't go too fast!
  284.68 -		time.sleep(0.1)
  284.69 -                
  284.70 -except KeyboardInterrupt:
  284.71 -	# set all the LEDs to "off" when Ctrl+C is pressed before exiting
  284.72 -	values = [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]
  284.73 -	piglow.update_leds(values)
  284.74 -
   285.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   285.2 +++ b/python-rpi.gpio/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   285.3 @@ -0,0 +1,1 @@
   285.4 +../python/.icon.png
   285.5 \ No newline at end of file
   286.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   286.2 +++ b/python-rpi.gpio/receipt	Sat Sep 22 16:05:26 2018 +0300
   286.3 @@ -0,0 +1,26 @@
   286.4 +# SliTaz package receipt v2.
   286.5 +
   286.6 +ORIGIN="RPi.GPIO"
   286.7 +PACKAGE="python-rpi.gpio"
   286.8 +VERSION="0.6.3"
   286.9 +CATEGORY="system-tools"
  286.10 +SHORT_DESC="A module to control Raspberry Pi GPIO channels"
  286.11 +MAINTAINER="pankso@slitaz.org"
  286.12 +LICENSE="BSD"
  286.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  286.14 +#HOST_ARCH
  286.15 +REPOLOGY="python:rpi-gpio"
  286.16 +
  286.17 +BUILD_DEPENDS="python-dev python3-dev"
  286.18 +SPLIT="${PACKAGE/python/python3}:3"
  286.19 +
  286.20 +compile_rules() {
  286.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  286.22 +}
  286.23 +
  286.24 +genpkg_rules() {
  286.25 +	copy @std
  286.26 +	py="${PACKAGE%%-*}" # python/python3
  286.27 +	DEPENDS="$py"
  286.28 +	TAGS="raspberrypi rpi"
  286.29 +}
   287.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   287.2 +++ b/python-scandir/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   287.3 @@ -0,0 +1,1 @@
   287.4 +../python/.icon.png
   287.5 \ No newline at end of file
   288.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   288.2 +++ b/python-scandir/receipt	Sat Sep 22 16:05:26 2018 +0300
   288.3 @@ -0,0 +1,25 @@
   288.4 +# SliTaz package receipt v2.
   288.5 +
   288.6 +ORIGIN="scandir"
   288.7 +PACKAGE="python-scandir"
   288.8 +VERSION="1.9.0"
   288.9 +CATEGORY="python"
  288.10 +SHORT_DESC="A better directory iterator and faster os.walk()"
  288.11 +MAINTAINER="al.bobylev@gmail.com"
  288.12 +LICENSE="BSD"
  288.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  288.14 +HOST_ARCH="any"
  288.15 +REPOLOGY="python:scandir"
  288.16 +
  288.17 +BUILD_DEPENDS="python python3"
  288.18 +SPLIT="${PACKAGE/python/python3}:3"
  288.19 +
  288.20 +compile_rules() {
  288.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  288.22 +}
  288.23 +
  288.24 +genpkg_rules() {
  288.25 +	copy @std
  288.26 +	py="${PACKAGE%%-*}" # python/python3
  288.27 +	DEPENDS="$py"
  288.28 +}
   289.1 --- a/python-serial/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   289.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   289.3 @@ -1,1 +0,0 @@
   289.4 -../python/.icon.png
   289.5 \ No newline at end of file
   290.1 --- a/python-serial/receipt	Fri Sep 14 11:37:28 2018 +0300
   290.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   290.3 @@ -1,35 +0,0 @@
   290.4 -# SliTaz package receipt.
   290.5 -
   290.6 -PACKAGE="python-serial" # this == python-pyserial, to remove
   290.7 -VERSION="2.7"
   290.8 -CATEGORY="development"
   290.9 -SHORT_DESC="Multiplataform serial port module for python"
  290.10 -MAINTAINER="claudinei@slitaz.org"
  290.11 -LICENSE="BSD"
  290.12 -WEB_SITE="http://pyserial.sourceforge.net"
  290.13 -REPOLOGY="python:pyserial"
  290.14 -
  290.15 -SOURCE="pyserial"
  290.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  290.17 -WGET_URL="https://files.pythonhosted.org/packages/source/p/pyserial/$TARBALL"
  290.18 -
  290.19 -DEPENDS="python"
  290.20 -BUILD_DEPENDS="python-dev"
  290.21 -
  290.22 -# Rules to configure and make the package.
  290.23 -compile_rules()
  290.24 -{
  290.25 -	python setup.py install --root=$DESTDIR
  290.26 -}
  290.27 -
  290.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
  290.29 -genpkg_rules()
  290.30 -{
  290.31 -	for file in `find $install | grep 'pyc$'`; do
  290.32 -		rm $file
  290.33 -	done
  290.34 -	mkdir -p $fs/usr
  290.35 -	cp -a $install/usr/bin $fs/usr
  290.36 -	cp -a $install/usr/lib $fs/usr
  290.37 -}
  290.38 -
   291.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   291.2 +++ b/python-service_identity/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   291.3 @@ -0,0 +1,1 @@
   291.4 +../python/.icon.png
   291.5 \ No newline at end of file
   292.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   292.2 +++ b/python-service_identity/receipt	Sat Sep 22 16:05:26 2018 +0300
   292.3 @@ -0,0 +1,27 @@
   292.4 +# SliTaz package receipt v2.
   292.5 +
   292.6 +ORIGIN="service_identity"
   292.7 +PACKAGE="python-service_identity"
   292.8 +VERSION="17.0.0"
   292.9 +CATEGORY="python"
  292.10 +SHORT_DESC="Service identity verification for pyOpenSSL"
  292.11 +MAINTAINER="al.bobylev@gmail.com"
  292.12 +LICENSE="MIT"
  292.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  292.14 +HOST_ARCH="any"
  292.15 +REPOLOGY="python:service-identity"
  292.16 +
  292.17 +BUILD_DEPENDS="python python-attrs python-pyasn1 python-pyasn1-modules \
  292.18 +python-pyopenssl \
  292.19 +python3 python3-attrs python3-pyasn1 python3-pyasn1-modules python3-pyopenssl"
  292.20 +SPLIT="${PACKAGE/python/python3}:3"
  292.21 +
  292.22 +compile_rules() {
  292.23 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  292.24 +}
  292.25 +
  292.26 +genpkg_rules() {
  292.27 +	copy @std
  292.28 +	py=${PACKAGE%%-*} # python/python3
  292.29 +	DEPENDS="$py $py-attrs $py-pyasn1 $py-pyasn1-modules $py-pyopenssl"
  292.30 +}
   293.1 --- a/python-shapely/receipt	Fri Sep 14 11:37:28 2018 +0300
   293.2 +++ b/python-shapely/receipt	Sat Sep 22 16:05:26 2018 +0300
   293.3 @@ -1,30 +1,25 @@
   293.4 -# SliTaz package receipt.
   293.5 +# SliTaz package receipt v2.
   293.6  
   293.7 +ORIGIN="Shapely"
   293.8  PACKAGE="python-shapely"
   293.9 -VERSION="1.3.2"
  293.10 -CATEGORY="development"
  293.11 -SHORT_DESC="Manipulation and analysis of geometric objects in the Cartesian plane."
  293.12 +VERSION="1.6.4.post2"
  293.13 +CATEGORY="python"
  293.14 +SHORT_DESC="Geometric objects, predicates, and operations"
  293.15  MAINTAINER="pascal.bellard@slitaz.org"
  293.16  LICENSE="BSD"
  293.17 -WEB_SITE="https://pypi.org/project/Shapely/"
  293.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  293.19 +#HOST_ARCH
  293.20  REPOLOGY="python:shapely"
  293.21  
  293.22 -SOURCE="Shapely"
  293.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  293.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  293.25 +BUILD_DEPENDS="python python3"
  293.26 +SPLIT="${PACKAGE/python/python3}:3"
  293.27  
  293.28 -DEPENDS="python geos"
  293.29 -BUILD_DEPENDS="python-dev wget geos-dev"
  293.30 -
  293.31 -# Rules to configure and make the package.
  293.32 -compile_rules()
  293.33 -{
  293.34 -	python setup.py install --root=$DESTDIR
  293.35 +compile_rules() {
  293.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  293.37  }
  293.38  
  293.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  293.40 -genpkg_rules()
  293.41 -{
  293.42 -	cp -a $install/usr $fs
  293.43 +genpkg_rules() {
  293.44 +	copy @std
  293.45 +	py="${PACKAGE%%-*}" # python/python3
  293.46 +	DEPENDS="$py"
  293.47  }
  293.48 -
   294.1 --- a/python-simplejson/receipt	Fri Sep 14 11:37:28 2018 +0300
   294.2 +++ b/python-simplejson/receipt	Sat Sep 22 16:05:26 2018 +0300
   294.3 @@ -1,51 +1,25 @@
   294.4 -# SliTaz package receipt.
   294.5 +# SliTaz package receipt v2.
   294.6  
   294.7 +ORIGIN="simplejson"
   294.8  PACKAGE="python-simplejson"
   294.9 -VERSION="2.1.1"
  294.10 -CATEGORY="development"
  294.11 -SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python."
  294.12 +VERSION="3.16.0"
  294.13 +CATEGORY="python"
  294.14 +SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for Python"
  294.15  MAINTAINER="claudinei@slitaz.org"
  294.16  LICENSE="MIT"
  294.17 -WEB_SITE="https://pypi.org/project/simplejson/"
  294.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  294.19 +HOST_ARCH="any"
  294.20  REPOLOGY="python:simplejson"
  294.21  
  294.22 -SOURCE="simplejson"
  294.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  294.24 -WGET_URL="https://files.pythonhosted.org/packages/source/s/$SOURCE/$TARBALL"
  294.25 +BUILD_DEPENDS="python python3"
  294.26 +SPLIT="${PACKAGE/python/python3}:3"
  294.27  
  294.28 -DEPENDS="python"
  294.29 -BUILD_DEPENDS="python-dev"
  294.30 -
  294.31 -# Rules to configure and make the package.
  294.32 -compile_rules()
  294.33 -{
  294.34 -	# Cross compilation hack to avoid using compiler wich build python 
  294.35 -	# itself.
  294.36 -	case "$ARCH" in
  294.37 -		arm*)
  294.38 -			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
  294.39 -			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
  294.40 -				/usr/bin/i486-slitaz-linux-gcc ;;
  294.41 -	esac &&
  294.42 -	python setup.py build  &&
  294.43 -	python setup.py install --root=$DESTDIR &&
  294.44 -	case "$ARCH" in
  294.45 -		arm*)
  294.46 -			rm /usr/bin/i486-slitaz-linux-gcc &&
  294.47 -			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
  294.48 -	esac
  294.49 +compile_rules() {
  294.50 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  294.51  }
  294.52  
  294.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
  294.54 -genpkg_rules()
  294.55 -{
  294.56 -	mkdir -p $fs/usr
  294.57 -	cp -a $install/usr/lib $fs/usr
  294.58 +genpkg_rules() {
  294.59 +	copy @std
  294.60 +	py="${PACKAGE%%-*}" # python/python3
  294.61 +	DEPENDS="$py"
  294.62  }
  294.63 -
  294.64 -# Remove old package.
  294.65 -post_install()
  294.66 -{
  294.67 -	[ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
  294.68 -	rm -rf "$1/var/lib/tazpkg/installed/simplejson"
  294.69 -}
   295.1 --- a/python-singledispatch/receipt	Fri Sep 14 11:37:28 2018 +0300
   295.2 +++ b/python-singledispatch/receipt	Sat Sep 22 16:05:26 2018 +0300
   295.3 @@ -1,23 +1,25 @@
   295.4  # SliTaz package receipt v2.
   295.5  
   295.6 +ORIGIN="singledispatch"
   295.7  PACKAGE="python-singledispatch"
   295.8 -ORIGIN="singledispatch"
   295.9 -VERSION="latest"
  295.10 +VERSION="3.4.0.3"
  295.11  CATEGORY="python"
  295.12  SHORT_DESC="Brings functools.singledispatch from Python 3.4 to Python 2.6-3.3"
  295.13  MAINTAINER="al.bobylev@gmail.com"
  295.14  LICENSE="MIT"
  295.15  WEB_SITE="https://pypi.org/project/$ORIGIN/"
  295.16 -REPOLOGY="${PACKAGE/-/:}"
  295.17 +HOST_ARCH="any"
  295.18 +REPOLOGY="python:singledispatch"
  295.19  
  295.20 -BUILD_DEPENDS="python python-six"
  295.21 +BUILD_DEPENDS="python python-six  python3 python3-six"
  295.22 +SPLIT="${PACKAGE/python/python3}:3"
  295.23  
  295.24  compile_rules() {
  295.25 -	pip install --no-compile --root=$DESTDIR $ORIGIN
  295.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  295.27  }
  295.28  
  295.29  genpkg_rules() {
  295.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
  295.31  	copy @std
  295.32 -	DEPENDS="python python-six"
  295.33 +	py="${PACKAGE%%-*}" # python/python3
  295.34 +	DEPENDS="$py $py-six"
  295.35  }
   296.1 --- a/python-six/receipt	Fri Sep 14 11:37:28 2018 +0300
   296.2 +++ b/python-six/receipt	Sat Sep 22 16:05:26 2018 +0300
   296.3 @@ -1,22 +1,25 @@
   296.4  # SliTaz package receipt v2.
   296.5  
   296.6 +ORIGIN="six"
   296.7  PACKAGE="python-six"
   296.8 -VERSION="latest"
   296.9 +VERSION="1.11.0"
  296.10  CATEGORY="python"
  296.11  SHORT_DESC="Six is a Python 2 and 3 compatibility library"
  296.12  MAINTAINER="claudinei@slitaz.org"
  296.13  LICENSE="MIT"
  296.14 -WEB_SITE="https://pypi.org/project/six/"
  296.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  296.16 +HOST_ARCH="any"
  296.17  REPOLOGY="python:six"
  296.18  
  296.19 -BUILD_DEPENDS="python"
  296.20 +BUILD_DEPENDS="python python3"
  296.21 +SPLIT="${PACKAGE/python/python3}:3"
  296.22  
  296.23  compile_rules() {
  296.24 -	pip install --no-compile --root=$DESTDIR six
  296.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  296.26  }
  296.27  
  296.28  genpkg_rules() {
  296.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*six-||p' $LOGS/$PACKAGE.log)
  296.30  	copy @std
  296.31 -	DEPENDS="python"
  296.32 +	py="${PACKAGE%%-*}" # python/python3
  296.33 +	DEPENDS="$py"
  296.34  }
   297.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   297.2 +++ b/python-smbus2/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   297.3 @@ -0,0 +1,1 @@
   297.4 +../python/.icon.png
   297.5 \ No newline at end of file
   298.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   298.2 +++ b/python-smbus2/receipt	Sat Sep 22 16:05:26 2018 +0300
   298.3 @@ -0,0 +1,25 @@
   298.4 +# SliTaz package receipt v2.
   298.5 +
   298.6 +ORIGIN="smbus2"
   298.7 +PACKAGE="python-smbus2"
   298.8 +VERSION="0.2.1"
   298.9 +CATEGORY="system-tools"
  298.10 +SHORT_DESC="Drop-in replacement for smbus-cffi/smbus-python in pure Python"
  298.11 +MAINTAINER="al.bobylev@gmail.com"
  298.12 +LICENSE="MIT"
  298.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  298.14 +HOST_ARCH="any"
  298.15 +REPOLOGY="python:smbus2"
  298.16 +
  298.17 +BUILD_DEPENDS="python python3"
  298.18 +SPLIT="${PACKAGE/python/python3}:3"
  298.19 +
  298.20 +compile_rules() {
  298.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  298.22 +}
  298.23 +
  298.24 +genpkg_rules() {
  298.25 +	copy @std
  298.26 +	py="${PACKAGE%%-*}" # python/python3
  298.27 +	DEPENDS="$py"
  298.28 +}
   299.1 --- a/python-smspdu/receipt	Fri Sep 14 11:37:28 2018 +0300
   299.2 +++ b/python-smspdu/receipt	Sat Sep 22 16:05:26 2018 +0300
   299.3 @@ -1,22 +1,24 @@
   299.4  # SliTaz package receipt v2.
   299.5  
   299.6 +ORIGIN="smspdu"
   299.7  PACKAGE="python-smspdu"
   299.8 -ORIGIN="smspdu"
   299.9 -VERSION="latest"
  299.10 -CATEGORY="development"
  299.11 +VERSION="1.0"
  299.12 +CATEGORY="python"
  299.13  SHORT_DESC="SMS PDU encoding and decoding, including GSM-0338 character set"
  299.14  MAINTAINER="pascal.bellard@slitaz.org"
  299.15  LICENSE="BSD"
  299.16 -WEB_SITE="https://pypi.org/project/$SOURCE/"
  299.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  299.18 +HOST_ARCH="any"
  299.19 +REPOLOGY="python:smspdu"
  299.20  
  299.21  BUILD_DEPENDS="python"
  299.22  
  299.23  compile_rules() {
  299.24 -	pip install --no-compile --root=$DESTDIR $ORIGIN
  299.25 +	# Python3 based compilation produce error
  299.26 +	pip install --no-compile --root=$install $ORIGIN==$VERSION
  299.27  }
  299.28  
  299.29  genpkg_rules() {
  299.30 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGINd-||p" $LOGS/$PACKAGE.log)
  299.31  	copy @std
  299.32  	DEPENDS="python"
  299.33  }
   300.1 --- a/python-snowballstemmer/receipt	Fri Sep 14 11:37:28 2018 +0300
   300.2 +++ b/python-snowballstemmer/receipt	Sat Sep 22 16:05:26 2018 +0300
   300.3 @@ -1,22 +1,25 @@
   300.4  # SliTaz package receipt v2.
   300.5  
   300.6 +ORIGIN="snowballstemmer"
   300.7  PACKAGE="python-snowballstemmer"
   300.8 -VERSION="latest"
   300.9 +VERSION="1.2.1"
  300.10  CATEGORY="python"
  300.11  SHORT_DESC="16 stemmer algorithms generated from Snowball algorithms"
  300.12  MAINTAINER="al.bobylev@gmail.com"
  300.13  LICENSE="BSD"
  300.14 -WEB_SITE="https://pypi.org/project/snowballstemmer/"
  300.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  300.16 +HOST_ARCH="any"
  300.17  REPOLOGY="python:snowballstemmer"
  300.18  
  300.19 -BUILD_DEPENDS="python"
  300.20 +BUILD_DEPENDS="python python3"
  300.21 +SPLIT="${PACKAGE/python/python3}:3"
  300.22  
  300.23  compile_rules() {
  300.24 -	pip install --no-compile --root=$DESTDIR snowballstemmer
  300.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  300.26  }
  300.27  
  300.28  genpkg_rules() {
  300.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*snowballstemmer-||p' $LOGS/$PACKAGE.log)
  300.30  	copy @std
  300.31 -	DEPENDS="python"
  300.32 +	py="${PACKAGE%%-*}" # python/python3
  300.33 +	DEPENDS="$py"
  300.34  }
   301.1 --- a/python-soappy/receipt	Fri Sep 14 11:37:28 2018 +0300
   301.2 +++ b/python-soappy/receipt	Sat Sep 22 16:05:26 2018 +0300
   301.3 @@ -1,29 +1,28 @@
   301.4 -# SliTaz package receipt.
   301.5 +# SliTaz package receipt v2.
   301.6  
   301.7 +ORIGIN="SOAPpy"
   301.8  PACKAGE="python-soappy"
   301.9  VERSION="0.12.22"
  301.10 -CATEGORY="development"
  301.11 -SHORT_DESC="SOAP services for python."
  301.12 +CATEGORY="python"
  301.13 +SHORT_DESC="SOAP services for Python"
  301.14  MAINTAINER="pascal.bellard@slitaz.org"
  301.15  LICENSE="BSD"
  301.16 -WEB_SITE="https://pypi.org/project/SOAPpy/"
  301.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  301.18 +HOST_ARCH="any"
  301.19  REPOLOGY="python:soappy"
  301.20  
  301.21 -SOURCE="SOAPpy"
  301.22 -TARBALL="$SOURCE-$VERSION.zip"
  301.23 -WGET_URL="https://files.pythonhosted.org/packages/source/S/SOAPpy/$TARBALL"
  301.24 +BUILD_DEPENDS="python python-defusedxml python-wstools \
  301.25 +python3 python3-defusedxml python3-wstools"
  301.26 +SPLIT="${PACKAGE/python/python3}:3"
  301.27  
  301.28 -DEPENDS="python"
  301.29 -BUILD_DEPENDS="python-dev"
  301.30 +compile_rules() {
  301.31 +	fix utf-8; export LC_ALL=en_US.UTF-8
  301.32  
  301.33 -# Rules to configure and make the package.
  301.34 -compile_rules()
  301.35 -{
  301.36 -	python setup.py install --prefix=/usr --root=$DESTDIR
  301.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  301.38  }
  301.39  
  301.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  301.41 -genpkg_rules()
  301.42 -{
  301.43 -	cp -a $install/usr/ $fs/
  301.44 +genpkg_rules() {
  301.45 +	copy @std
  301.46 +	py="${PACKAGE%%-*}" # python/python3
  301.47 +	DEPENDS="$py $py-defusedxml $py-wstools"
  301.48  }
   302.1 --- a/python-socketpool/receipt	Fri Sep 14 11:37:28 2018 +0300
   302.2 +++ b/python-socketpool/receipt	Sat Sep 22 16:05:26 2018 +0300
   302.3 @@ -1,31 +1,27 @@
   302.4 -# SliTaz package receipt.
   302.5 +# SliTaz package receipt v2.
   302.6  
   302.7 +ORIGIN="socketpool"
   302.8  PACKAGE="python-socketpool"
   302.9 -VERSION="0.5.2"
  302.10 -CATEGORY="development"
  302.11 -SHORT_DESC="A simple python socket pool."
  302.12 +VERSION="0.5.3"
  302.13 +CATEGORY="python"
  302.14 +SHORT_DESC="Python socket pool"
  302.15  MAINTAINER="claudinei@slitaz.org"
  302.16  LICENSE="MIT"
  302.17 -WEB_SITE="https://github.com/benoitc/socketpool/"
  302.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  302.19 +#HOST_ARCH
  302.20  REPOLOGY="python:socketpool"
  302.21  
  302.22 -SOURCE="socketpool"
  302.23 -TARBALL="$SOURCE-$VERSION.zip"
  302.24 -WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
  302.25 +BUILD_DEPENDS="python python3"
  302.26 +SPLIT="${PACKAGE/python/python3}:3"
  302.27  
  302.28 -DEPENDS="python"
  302.29 -BUILD_DEPENDS="python-dev"
  302.30 +compile_rules() {
  302.31 +	fix utf-8; export LC_ALL=en_US.UTF-8
  302.32  
  302.33 -# Rules to configure and make the package.
  302.34 -compile_rules()
  302.35 -{
  302.36 -	python setup.py install --root=$DESTDIR
  302.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  302.38  }
  302.39  
  302.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  302.41 -genpkg_rules()
  302.42 -{
  302.43 -	mkdir -p $fs/usr
  302.44 -	rm -rf $install/usr/socketpool
  302.45 -	cp -a $install/usr $fs
  302.46 +genpkg_rules() {
  302.47 +	copy @std
  302.48 +	py="${PACKAGE%%-*}" # python/python3
  302.49 +	DEPENDS="$py"
  302.50  }
   303.1 --- a/python-sphinx/receipt	Fri Sep 14 11:37:28 2018 +0300
   303.2 +++ b/python-sphinx/receipt	Sat Sep 22 16:05:26 2018 +0300
   303.3 @@ -1,27 +1,44 @@
   303.4  # SliTaz package receipt v2.
   303.5  
   303.6 +ORIGIN="Sphinx"
   303.7  PACKAGE="python-sphinx"
   303.8 -VERSION="latest"
   303.9 +VERSION="1.8.0"
  303.10  CATEGORY="python"
  303.11 -SHORT_DESC="Documentation Tool"
  303.12 +SHORT_DESC="Python documentation generator"
  303.13  MAINTAINER="claudinei@slitaz.org"
  303.14  LICENSE="BSD"
  303.15 -WEB_SITE="http://sphinx.pocoo.org"
  303.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  303.17 +HOST_ARCH="any"
  303.18  REPOLOGY="python:sphinx"
  303.19  
  303.20 -BUILD_DEPENDS="python-docutils python-jinja2 python-packaging python-imagesize \
  303.21 -python-six python-alabaster python-snowballstemmer python-pygments \
  303.22 -python-sphinxcontrib-websupport python-typing python-babel python-requests \
  303.23 -python-markupsafe python-pyparsing python-pytz python-idna python-urllib3 \
  303.24 -python-certifi python-chardet"
  303.25 +BUILD_DEPENDS="python python-alabaster python-babel python-docutils \
  303.26 +python-imagesize python-jinja2 python-packaging python-pygments \
  303.27 +python-requests python-six python-snowballstemmer \
  303.28 +python-sphinxcontrib-websupport python-typing \
  303.29 +python3 python3-alabaster python3-babel python3-docutils python3-imagesize \
  303.30 +python3-jinja2 python3-packaging python3-pygments python3-requests python3-six \
  303.31 +python3-snowballstemmer python3-sphinxcontrib-websupport"
  303.32 +SPLIT="${PACKAGE/python/python3}:3"
  303.33 +
  303.34  COOKOPTS="!pngquant" # error: Wrote palette index exceeding num_palette (libpng failed)
  303.35  
  303.36  compile_rules() {
  303.37 -	pip install --no-compile --root=$DESTDIR Sphinx
  303.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  303.39  }
  303.40  
  303.41  genpkg_rules() {
  303.42 -	VERSION=$(sed -n '/^Successfully installed/ s|.*Sphinx-||p' $LOGS/$PACKAGE.log)
  303.43 -	copy @std @dev
  303.44 -	DEPENDS="$BUILD_DEPENDS"
  303.45 +	copy @std
  303.46 +	py="${PACKAGE%%-*}" # python/python3
  303.47 +	case $PACKAGE in
  303.48 +		python-*)
  303.49 +			DEPENDS="$py $py-alabaster $py-babel $py-docutils $py-imagesize \
  303.50 +			$py-jinja2 $py-packaging $py-pygments $py-requests $py-six \
  303.51 +			$py-snowballstemmer $py-sphinxcontrib-websupport $py-typing"
  303.52 +			;;
  303.53 +		python3-*)
  303.54 +			DEPENDS="$py $py-alabaster $py-babel $py-docutils $py-imagesize \
  303.55 +			$py-jinja2 $py-packaging $py-pygments $py-requests $py-six \
  303.56 +			$py-snowballstemmer $py-sphinxcontrib-websupport"
  303.57 +			;;
  303.58 +	esac
  303.59  }
   304.1 --- a/python-sphinxcontrib-websupport/receipt	Fri Sep 14 11:37:28 2018 +0300
   304.2 +++ b/python-sphinxcontrib-websupport/receipt	Sat Sep 22 16:05:26 2018 +0300
   304.3 @@ -1,22 +1,25 @@
   304.4  # SliTaz package receipt v2.
   304.5  
   304.6 +ORIGIN="sphinxcontrib-websupport"
   304.7  PACKAGE="python-sphinxcontrib-websupport"
   304.8 -VERSION="latest"
   304.9 +VERSION="1.1.0"
  304.10  CATEGORY="python"
  304.11  SHORT_DESC="Sphinx API for Web Apps"
  304.12  MAINTAINER="al.bobylev@gmail.com"
  304.13  LICENSE="BSD"
  304.14 -WEB_SITE="https://pypi.org/project/sphinxcontrib-websupport/"
  304.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  304.16 +HOST_ARCH="any"
  304.17  REPOLOGY="python:sphinxcontrib-websupport"
  304.18  
  304.19 -BUILD_DEPENDS="python"
  304.20 +BUILD_DEPENDS="python python3"
  304.21 +SPLIT="${PACKAGE/python/python3}:3"
  304.22  
  304.23  compile_rules() {
  304.24 -	pip install --no-compile --root=$DESTDIR sphinxcontrib-websupport
  304.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  304.26  }
  304.27  
  304.28  genpkg_rules() {
  304.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*sphinxcontrib-websupport-||p' $LOGS/$PACKAGE.log)
  304.30  	copy @std
  304.31 -	DEPENDS="python"
  304.32 +	py="${PACKAGE%%-*}" # python/python3
  304.33 +	DEPENDS="$py"
  304.34  }
   305.1 --- a/python-sqlalchemy/receipt	Fri Sep 14 11:37:28 2018 +0300
   305.2 +++ b/python-sqlalchemy/receipt	Sat Sep 22 16:05:26 2018 +0300
   305.3 @@ -1,30 +1,26 @@
   305.4 -# SliTaz package receipt.
   305.5 +# SliTaz package receipt v2.
   305.6  
   305.7 +ORIGIN="SQLAlchemy"
   305.8  PACKAGE="python-sqlalchemy"
   305.9 -VERSION="0.7.10"
  305.10 -CATEGORY="development"
  305.11 +VERSION="1.2.11"
  305.12 +CATEGORY="python"
  305.13  SHORT_DESC="The Python SQL toolkit and Object Relational Mapper"
  305.14  MAINTAINER="claudinei@slitaz.org"
  305.15  LICENSE="MIT"
  305.16 -WEB_SITE="http://www.sqlalchemy.org"
  305.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  305.18 +HOST_ARCH="any"
  305.19  REPOLOGY="python:sqlalchemy"
  305.20  
  305.21 -SOURCE="SQLAlchemy"
  305.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  305.23 -WGET_URL="https://files.pythonhosted.org/packages/source/S/$SOURCE/$TARBALL"
  305.24 +BUILD_DEPENDS="python python3"
  305.25 +SPLIT="${PACKAGE/python/python3}:3"
  305.26  
  305.27 -DEPENDS="python"
  305.28 -SUGGESTED="python-pysqlite"
  305.29 -BUILD_DEPENDS="python-dev"
  305.30 -
  305.31 -# Rules to configure and make the package.
  305.32 -compile_rules()
  305.33 -{
  305.34 -	python setup.py install --root=$DESTDIR
  305.35 +compile_rules() {
  305.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  305.37  }
  305.38  
  305.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  305.40 -genpkg_rules()
  305.41 -{
  305.42 -	cp -a $install/usr $fs
  305.43 +genpkg_rules() {
  305.44 +	copy @std
  305.45 +	py=${PACKAGE%%-*} # python/python3
  305.46 +	DEPENDS="$py"
  305.47 +	SUGGESTED="$py-pysqlite"
  305.48  }
   306.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   306.2 +++ b/python-stdnum/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   306.3 @@ -0,0 +1,1 @@
   306.4 +../python/.icon.png
   306.5 \ No newline at end of file
   307.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   307.2 +++ b/python-stdnum/receipt	Sat Sep 22 16:05:26 2018 +0300
   307.3 @@ -0,0 +1,25 @@
   307.4 +# SliTaz package receipt v2.
   307.5 +
   307.6 +ORIGIN="python-stdnum"
   307.7 +PACKAGE="python-stdnum"
   307.8 +VERSION="1.9"
   307.9 +CATEGORY="python"
  307.10 +SHORT_DESC="Python module to handle standardized numbers and codes"
  307.11 +MAINTAINER="al.bobylev@gmail.com"
  307.12 +LICENSE="LGPL2"
  307.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  307.14 +HOST_ARCH="any"
  307.15 +REPOLOGY="python:python-stdnum"
  307.16 +
  307.17 +BUILD_DEPENDS="python python3"
  307.18 +SPLIT="${PACKAGE/python/python3}:3"
  307.19 +
  307.20 +compile_rules() {
  307.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  307.22 +}
  307.23 +
  307.24 +genpkg_rules() {
  307.25 +	copy @std
  307.26 +	py="${PACKAGE%%-*}" # python/python3
  307.27 +	DEPENDS="$py"
  307.28 +}
   308.1 --- a/python-tempita/receipt	Fri Sep 14 11:37:28 2018 +0300
   308.2 +++ b/python-tempita/receipt	Sat Sep 22 16:05:26 2018 +0300
   308.3 @@ -1,30 +1,25 @@
   308.4 -# SliTaz package receipt.
   308.5 +# SliTaz package receipt v2.
   308.6  
   308.7 +ORIGIN="Tempita"
   308.8  PACKAGE="python-tempita"
   308.9 -VERSION="0.5dev"
  308.10 -CATEGORY="development"
  308.11 +VERSION="0.5.2"
  308.12 +CATEGORY="python"
  308.13  SHORT_DESC="Small text templating language"
  308.14  MAINTAINER="taziden@slitaz.org"
  308.15  LICENSE="MIT"
  308.16 -WEB_SITE="https://pypi.org/project/Tempita/"
  308.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  308.18 +HOST_ARCH="any"
  308.19  REPOLOGY="python:tempita"
  308.20  
  308.21 -SOURCE="Tempita"
  308.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  308.23 -WGET_URL="https://files.pythonhosted.org/packages/source/T/$SOURCE/$TARBALL"
  308.24 -TAGS="python"
  308.25 +BUILD_DEPENDS="python python3"
  308.26 +SPLIT="${PACKAGE/python/python3}:3"
  308.27  
  308.28 -DEPENDS="python"
  308.29 -BUILD_DEPENDS="python python-dev"
  308.30 -
  308.31 -# Rules to configure and make the package.
  308.32 -compile_rules()
  308.33 -{
  308.34 -	python setup.py install --root=$DESTDIR
  308.35 +compile_rules() {
  308.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  308.37  }
  308.38  
  308.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  308.40 -genpkg_rules()
  308.41 -{
  308.42 -	cp -a $install/usr $fs
  308.43 +genpkg_rules() {
  308.44 +	copy @std
  308.45 +	py=${PACKAGE%%-*} # python/python3
  308.46 +	DEPENDS="$py"
  308.47  }
   309.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   309.2 +++ b/python-tempora/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   309.3 @@ -0,0 +1,1 @@
   309.4 +../python/.icon.png
   309.5 \ No newline at end of file
   310.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   310.2 +++ b/python-tempora/receipt	Sat Sep 22 16:05:26 2018 +0300
   310.3 @@ -0,0 +1,26 @@
   310.4 +# SliTaz package receipt v2.
   310.5 +
   310.6 +ORIGIN="tempora"
   310.7 +PACKAGE="python-tempora"
   310.8 +VERSION="1.13"
   310.9 +CATEGORY="python"
  310.10 +SHORT_DESC="Objects and routines pertaining to date and time"
  310.11 +MAINTAINER="al.bobylev@gmail.com"
  310.12 +LICENSE="MIT"
  310.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  310.14 +HOST_ARCH="any"
  310.15 +REPOLOGY="python:portend"
  310.16 +
  310.17 +BUILD_DEPENDS="python python-jaraco.functools python-pytz python-six \
  310.18 +python3 python3-jaraco.functools python3-pytz python3-six"
  310.19 +SPLIT="${PACKAGE/python/python3}:3"
  310.20 +
  310.21 +compile_rules() {
  310.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  310.23 +}
  310.24 +
  310.25 +genpkg_rules() {
  310.26 +	copy @std
  310.27 +	py="${PACKAGE%%-*}" # python/python3
  310.28 +	DEPENDS="$py $py-jaraco.functools $py-pytz $py-six"
  310.29 +}
   311.1 --- a/python-terminado/receipt	Fri Sep 14 11:37:28 2018 +0300
   311.2 +++ b/python-terminado/receipt	Sat Sep 22 16:05:26 2018 +0300
   311.3 @@ -1,23 +1,26 @@
   311.4  # SliTaz package receipt v2.
   311.5  
   311.6 +ORIGIN="terminado"
   311.7  PACKAGE="python-terminado"
   311.8 -ORIGIN="terminado"
   311.9 -VERSION="latest"
  311.10 -CATEGORY="development"
  311.11 +VERSION="0.8.1"
  311.12 +CATEGORY="python"
  311.13  SHORT_DESC="Terminals served to xterm.js using Tornado websockets"
  311.14  MAINTAINER="pascal.bellard@slitaz.org"
  311.15  LICENSE="BSD"
  311.16 -WEB_SITE="https://pypi.org/project/terminado/"
  311.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  311.18 +HOST_ARCH="any"
  311.19  REPOLOGY="python:terminado"
  311.20  
  311.21 -BUILD_DEPENDS="python python-tornado"
  311.22 +BUILD_DEPENDS="python python-ptyprocess python-tornado \
  311.23 +python3 python3-ptyprocess python3-tornado"
  311.24 +SPLIT="${PACKAGE/python/python3}:3"
  311.25  
  311.26  compile_rules() {
  311.27 -	pip install --no-compile --root=$DESTDIR $ORIGIN
  311.28 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  311.29  }
  311.30  
  311.31  genpkg_rules() {
  311.32 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
  311.33  	copy @std
  311.34 -	DEPENDS="python-tornado"
  311.35 +	py=${PACKAGE%%-*} # python/python3
  311.36 +	DEPENDS="$py $py-ptyprocess $py-tornado"
  311.37  }
   312.1 --- a/python-tornado/receipt	Fri Sep 14 11:37:28 2018 +0300
   312.2 +++ b/python-tornado/receipt	Sat Sep 22 16:05:26 2018 +0300
   312.3 @@ -1,25 +1,34 @@
   312.4  # SliTaz package receipt v2.
   312.5  
   312.6 +ORIGIN="tornado"
   312.7  PACKAGE="python-tornado"
   312.8 -ORIGIN="tornado"
   312.9 -VERSION="latest"
  312.10 -CATEGORY="development"
  312.11 +VERSION="5.1.1"
  312.12 +CATEGORY="python"
  312.13  SHORT_DESC="A web framework and asynchronous networking library"
  312.14  MAINTAINER="pascal.bellard@slitaz.org"
  312.15  LICENSE="Apache"
  312.16 -WEB_SITE="http://www.tornadoweb.org/"
  312.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  312.18 +HOST_ARCH="any"
  312.19  REPOLOGY="python:tornado"
  312.20  
  312.21 -BUILD_DEPENDS="python python-futures python-six python-singledispatch \
  312.22 -python-backports_abc"
  312.23 +BUILD_DEPENDS="python python-backports_abc python-futures \
  312.24 +python-singledispatch \
  312.25 +python3"
  312.26 +SPLIT="${PACKAGE/python/python3}:3"
  312.27  
  312.28  compile_rules() {
  312.29 -	pip install --no-compile --root=$DESTDIR $ORIGIN
  312.30 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  312.31  }
  312.32  
  312.33  genpkg_rules() {
  312.34 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
  312.35  	copy @std
  312.36 -	DEPENDS="python python-futures python-six python-singledispatch \
  312.37 -	python-backports_abc"
  312.38 +	py=${PACKAGE%%-*} # python/python3
  312.39 +	case $PACKAGE in
  312.40 +		python-*)
  312.41 +			DEPENDS="$py $py-backports_abc $py-futures $py-singledispatch"
  312.42 +			;;
  312.43 +		python3-*)
  312.44 +			DEPENDS="$py"
  312.45 +			;;
  312.46 +	esac
  312.47  }
   313.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   313.2 +++ b/python-traceback2/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   313.3 @@ -0,0 +1,1 @@
   313.4 +../python/.icon.png
   313.5 \ No newline at end of file
   314.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   314.2 +++ b/python-traceback2/receipt	Sat Sep 22 16:05:26 2018 +0300
   314.3 @@ -0,0 +1,25 @@
   314.4 +# SliTaz package receipt v2.
   314.5 +
   314.6 +ORIGIN="traceback2"
   314.7 +PACKAGE="python-traceback2"
   314.8 +VERSION="1.4.0"
   314.9 +CATEGORY="python"
  314.10 +SHORT_DESC="Backports of the traceback module"
  314.11 +MAINTAINER="al.bobylev@gmail.com"
  314.12 +LICENSE="PSFL"
  314.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  314.14 +HOST_ARCH="any"
  314.15 +REPOLOGY="python:traceback2"
  314.16 +
  314.17 +BUILD_DEPENDS="python python-linecache2  python3 python3-linecache2"
  314.18 +SPLIT="${PACKAGE/python/python3}:3"
  314.19 +
  314.20 +compile_rules() {
  314.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  314.22 +}
  314.23 +
  314.24 +genpkg_rules() {
  314.25 +	copy @std
  314.26 +	py="${PACKAGE%%-*}" # python/python3
  314.27 +	DEPENDS="$py $py-linecache2"
  314.28 +}
   315.1 --- a/python-turbogears/receipt	Fri Sep 14 11:37:28 2018 +0300
   315.2 +++ b/python-turbogears/receipt	Sat Sep 22 16:05:26 2018 +0300
   315.3 @@ -1,24 +1,27 @@
   315.4  # SliTaz package receipt v2.
   315.5  
   315.6 +ORIGIN="TurboGears2"
   315.7  PACKAGE="python-turbogears"
   315.8 -VERSION="latest"
   315.9 +VERSION="2.3.12"
  315.10  CATEGORY="network"
  315.11  SHORT_DESC="Python web application framework"
  315.12  MAINTAINER="pankso@slitaz.org"
  315.13  LICENSE="MIT"
  315.14 -WEB_SITE="https://pypi.org/project/TurboGears2/"
  315.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  315.16 +HOST_ARCH="any"
  315.17  REPOLOGY="python:turbogears2"
  315.18  
  315.19 -BUILD_DEPENDS="python python-webob python-crank python-repoze.lru \
  315.20 -python-markupsafe"
  315.21 +BUILD_DEPENDS="python python-crank python-markupsafe python-repoze.lru \
  315.22 +python-webob17 \
  315.23 +python3 python3-crank python3-markupsafe python3-repoze.lru python3-webob17"
  315.24 +SPLIT="${PACKAGE/python/python3}:3"
  315.25  
  315.26  compile_rules() {
  315.27 -	pip install --no-compile --root=$DESTDIR TurboGears2
  315.28 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  315.29  }
  315.30  
  315.31  genpkg_rules() {
  315.32 -	VERSION=$(sed -n '/^Successfully installed/ s|.*TurboGears2-||p' $LOGS/$PACKAGE.log)
  315.33  	copy @std
  315.34 -	DEPENDS="python python-webob python-crank python-repoze.lru \
  315.35 -	python-markupsafe"
  315.36 +	py=${PACKAGE%%-*} # python/python3
  315.37 +	DEPENDS="$py $py-crank $py-markupsafe $py-repoze.lru $py-webob17"
  315.38  }
   316.1 --- a/python-tweepy/receipt	Fri Sep 14 11:37:28 2018 +0300
   316.2 +++ b/python-tweepy/receipt	Sat Sep 22 16:05:26 2018 +0300
   316.3 @@ -1,30 +1,27 @@
   316.4 -# SliTaz package receipt.
   316.5 +# SliTaz package receipt v2.
   316.6  
   316.7 +ORIGIN="tweepy"
   316.8  PACKAGE="python-tweepy"
   316.9 -VERSION="1.10"
  316.10 -CATEGORY="development"
  316.11 -SHORT_DESC="Twitter library for python."
  316.12 +VERSION="3.6.0"
  316.13 +CATEGORY="python"
  316.14 +SHORT_DESC="Twitter library for Python"
  316.15  MAINTAINER="paul@slitaz.org"
  316.16  LICENSE="MIT"
  316.17 -WEB_SITE="https://github.com/tweepy/tweepy"
  316.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  316.19 +HOST_ARCH="any"
  316.20  REPOLOGY="python:tweepy"
  316.21  
  316.22 -SOURCE="tweepy"
  316.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  316.24 -WGET_URL="https://files.pythonhosted.org/packages/source/t/$SOURCE/$TARBALL"
  316.25 -TAGS="python"
  316.26 +BUILD_DEPENDS="python python-pysocks python-requests python-requests-oauthlib \
  316.27 +python-six \
  316.28 +python3 python3-pysocks python3-requests python3-requests-oauthlib python3-six"
  316.29 +SPLIT="${PACKAGE/python/python3}:3"
  316.30  
  316.31 -DEPENDS="python"
  316.32 -BUILD_DEPENDS="python python-dev"
  316.33 -
  316.34 -# Rules to configure and make the package.
  316.35 -compile_rules()
  316.36 -{
  316.37 -	python setup.py install --root=$DESTDIR
  316.38 +compile_rules() {
  316.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  316.40  }
  316.41  
  316.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  316.43 -genpkg_rules()
  316.44 -{
  316.45 -	cp -a $install/usr $fs
  316.46 +genpkg_rules() {
  316.47 +	copy @std
  316.48 +	py="${PACKAGE%%-*}" # python/python3
  316.49 +	DEPENDS="$py $py-pysocks $py-requests $py-requests-oauthlib $py-six"
  316.50  }
   317.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   317.2 +++ b/python-twisted/receipt	Sat Sep 22 16:05:26 2018 +0300
   317.3 @@ -0,0 +1,30 @@
   317.4 +# SliTaz package receipt v2.
   317.5 +
   317.6 +ORIGIN="Twisted"
   317.7 +PACKAGE="python-twisted"
   317.8 +VERSION="18.7.0"
   317.9 +CATEGORY="network"
  317.10 +SHORT_DESC="Event-driven networking for internet applications"
  317.11 +MAINTAINER="pascal.bellard@slitaz.org"
  317.12 +LICENSE="GPL2"
  317.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  317.14 +#HOST_ARCH
  317.15 +REPOLOGY="python:twisted"
  317.16 +
  317.17 +BUILD_DEPENDS="python-dev python-attrs python-automat python-constantly \
  317.18 +python-hyperlink python-incremental python-pyhamcrest python-zope.interface \
  317.19 +python3-dev python3-attrs python3-automat python3-constantly python3-hyperlink \
  317.20 +python3-incremental python3-pyhamcrest python3-zope.interface"
  317.21 +SPLIT="${PACKAGE/python/python3}:3"
  317.22 +
  317.23 +compile_rules() {
  317.24 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  317.25 +}
  317.26 +
  317.27 +genpkg_rules() {
  317.28 +	copy @std
  317.29 +	py="${PACKAGE%%-*}" # python/python3
  317.30 +	DEPENDS="$py $py-attrs $py-automat $py-constantly $py-hyperlink \
  317.31 +	$py-incremental $py-pyhamcrest $py-zope.interface"
  317.32 +	SUGGESTED="$py-service_identity"
  317.33 +}
   318.1 --- a/python-twodict/receipt	Fri Sep 14 11:37:28 2018 +0300
   318.2 +++ b/python-twodict/receipt	Sat Sep 22 16:05:26 2018 +0300
   318.3 @@ -1,23 +1,25 @@
   318.4  # SliTaz package receipt v2.
   318.5  
   318.6 +ORIGIN="twodict"
   318.7  PACKAGE="python-twodict"
   318.8 -VERSION="latest"
   318.9 +VERSION="1.2"
  318.10  CATEGORY="python"
  318.11  SHORT_DESC="Simple two way ordered dictionary for Python"
  318.12  MAINTAINER="al.bobylev@gmail.com"
  318.13  LICENSE="PublicDomain"
  318.14 -WEB_SITE="https://pypi.org/project/twodict/"
  318.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  318.16  HOST_ARCH="any"
  318.17  REPOLOGY="python:twodict"
  318.18  
  318.19 -BUILD_DEPENDS="python"
  318.20 +BUILD_DEPENDS="python python3"
  318.21 +SPLIT="${PACKAGE/python/python3}:3"
  318.22  
  318.23  compile_rules() {
  318.24 -	pip install --no-compile --root=$DESTDIR twodict
  318.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  318.26  }
  318.27  
  318.28  genpkg_rules() {
  318.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*twodict-||p' $LOGS/$PACKAGE.log)
  318.30  	copy @std
  318.31 -	DEPENDS="python"
  318.32 +	py="${PACKAGE%%-*}" # python/python3
  318.33 +	DEPENDS="$py"
  318.34  }
   319.1 --- a/python-typing/receipt	Fri Sep 14 11:37:28 2018 +0300
   319.2 +++ b/python-typing/receipt	Sat Sep 22 16:05:26 2018 +0300
   319.3 @@ -1,22 +1,25 @@
   319.4  # SliTaz package receipt v2.
   319.5  
   319.6 +ORIGIN="typing"
   319.7  PACKAGE="python-typing"
   319.8 -VERSION="latest"
   319.9 +VERSION="3.6.6"
  319.10  CATEGORY="python"
  319.11  SHORT_DESC="Type Hints for Python"
  319.12  MAINTAINER="al.bobylev@gmail.com"
  319.13  LICENSE="PSF"
  319.14 -WEB_SITE="https://pypi.org/project/typing/"
  319.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  319.16 +HOST_ARCH="any"
  319.17  REPOLOGY="python:typing"
  319.18  
  319.19 -BUILD_DEPENDS="python"
  319.20 +BUILD_DEPENDS="python python3"
  319.21 +SPLIT="${PACKAGE/python/python3}:3"
  319.22  
  319.23  compile_rules() {
  319.24 -	pip install --no-compile --root=$DESTDIR typing
  319.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  319.26  }
  319.27  
  319.28  genpkg_rules() {
  319.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*typing-||p' $LOGS/$PACKAGE.log)
  319.30  	copy @std
  319.31 -	DEPENDS="python"
  319.32 +	py="${PACKAGE%%-*}" # python/python3
  319.33 +	DEPENDS="$py"
  319.34  }
   320.1 --- a/python-unicodecsv/receipt	Fri Sep 14 11:37:28 2018 +0300
   320.2 +++ b/python-unicodecsv/receipt	Sat Sep 22 16:05:26 2018 +0300
   320.3 @@ -1,29 +1,25 @@
   320.4 -# SliTaz package receipt.
   320.5 +# SliTaz package receipt v2.
   320.6  
   320.7 +ORIGIN="unicodecsv"
   320.8  PACKAGE="python-unicodecsv"
   320.9 -VERSION="0.9.4"
  320.10 -CATEGORY="development"
  320.11 -SHORT_DESC="A drop-in replacement of csv module which *does* support unicode."
  320.12 +VERSION="0.14.1"
  320.13 +CATEGORY="python"
  320.14 +SHORT_DESC="A drop-in replacement of csv module which *does* support Unicode"
  320.15  MAINTAINER="pascal.bellard@slitaz.org"
  320.16  LICENSE="MIT"
  320.17 -WEB_SITE="https://github.com/jdunck/python-unicodecsv"
  320.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  320.19 +HOST_ARCH="any"
  320.20  REPOLOGY="python:unicodecsv"
  320.21  
  320.22 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  320.23 -WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
  320.24 +BUILD_DEPENDS="python python3"
  320.25 +SPLIT="${PACKAGE/python/python3}:3"
  320.26  
  320.27 -DEPENDS="python"
  320.28 -BUILD_DEPENDS="python"
  320.29 -
  320.30 -# Rules to configure and make the package.
  320.31 -compile_rules()
  320.32 -{
  320.33 -	python setup.py install --root=$DESTDIR
  320.34 +compile_rules() {
  320.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  320.36  }
  320.37  
  320.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
  320.39 -genpkg_rules()
  320.40 -{
  320.41 -	cp -a $install/usr $fs
  320.42 +genpkg_rules() {
  320.43 +	copy @std
  320.44 +	py="${PACKAGE%%-*}" # python/python3
  320.45 +	DEPENDS="$py"
  320.46  }
  320.47 -
   321.1 --- a/python-unidecode/receipt	Fri Sep 14 11:37:28 2018 +0300
   321.2 +++ b/python-unidecode/receipt	Sat Sep 22 16:05:26 2018 +0300
   321.3 @@ -1,30 +1,25 @@
   321.4 -# SliTaz package receipt.
   321.5 +# SliTaz package receipt v2.
   321.6  
   321.7 +ORIGIN="Unidecode"
   321.8  PACKAGE="python-unidecode"
   321.9 -VERSION="0.04.17"
  321.10 -CATEGORY="development"
  321.11 -SHORT_DESC="ASCII transliterations of Unicode text."
  321.12 +VERSION="1.0.22"
  321.13 +CATEGORY="python"
  321.14 +SHORT_DESC="ASCII transliterations of Unicode text"
  321.15  MAINTAINER="pascal.bellard@slitaz.org"
  321.16  LICENSE="GPL2"
  321.17 -WEB_SITE="https://pypi.org/project/Unidecode/"
  321.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  321.19 +HOST_ARCH="any"
  321.20  REPOLOGY="python:unidecode"
  321.21  
  321.22 -SOURCE="Unidecode"
  321.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  321.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  321.25 +BUILD_DEPENDS="python python3"
  321.26 +SPLIT="${PACKAGE/python/python3}:3"
  321.27  
  321.28 -DEPENDS="python"
  321.29 -BUILD_DEPENDS="python"
  321.30 -
  321.31 -# Rules to configure and make the package.
  321.32 -compile_rules()
  321.33 -{
  321.34 -	python setup.py install --root=$DESTDIR
  321.35 +compile_rules() {
  321.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  321.37  }
  321.38  
  321.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  321.40 -genpkg_rules()
  321.41 -{
  321.42 -	cp -a $install/usr $fs
  321.43 +genpkg_rules() {
  321.44 +	copy @std
  321.45 +	py="${PACKAGE%%-*}" # python/python3
  321.46 +	DEPENDS="$py"
  321.47  }
  321.48 -
   322.1 --- a/python-unittest2/receipt	Fri Sep 14 11:37:28 2018 +0300
   322.2 +++ b/python-unittest2/receipt	Sat Sep 22 16:05:26 2018 +0300
   322.3 @@ -1,32 +1,26 @@
   322.4 -# SliTaz package receipt.
   322.5 +# SliTaz package receipt v2.
   322.6  
   322.7 +ORIGIN="unittest2"
   322.8  PACKAGE="python-unittest2"
   322.9 -VERSION="0.5.1"
  322.10 -CATEGORY="development"
  322.11 -SHORT_DESC="New features backport to the unittest testing framework."
  322.12 +VERSION="1.1.0"
  322.13 +CATEGORY="python"
  322.14 +SHORT_DESC="The new features in unittest backported to Python 2.4+"
  322.15  MAINTAINER="pascal.bellard@slitaz.org"
  322.16  LICENSE="BSD"
  322.17 -WEB_SITE="https://pypi.org/project/unittest2/"
  322.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  322.19 +HOST_ARCH="any"
  322.20  REPOLOGY="python:unittest2"
  322.21  
  322.22 -SOURCE="unittest2"
  322.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  322.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  322.25 +BUILD_DEPENDS="python python-argparse python-six python-traceback2 \
  322.26 +python3 python3-argparse python3-six python3-traceback2"
  322.27 +SPLIT="${PACKAGE/python/python3}:3"
  322.28  
  322.29 -DEPENDS="python"
  322.30 -BUILD_DEPENDS="python-dev"
  322.31 -
  322.32 -# Rules to configure and make the package.
  322.33 -compile_rules()
  322.34 -{
  322.35 -	python setup.py build
  322.36 -	python setup.py test
  322.37 -	python setup.py install --root=$DESTDIR
  322.38 +compile_rules() {
  322.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  322.40  }
  322.41  
  322.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
  322.43 -genpkg_rules()
  322.44 -{
  322.45 -	mkdir -p $fs/usr
  322.46 -	cp -a $install/usr/lib $fs/usr
  322.47 +genpkg_rules() {
  322.48 +	copy @std
  322.49 +	py="${PACKAGE%%-*}" # python/python3
  322.50 +	DEPENDS="$py $py-argparse $py-six $py-traceback2"
  322.51  }
   323.1 --- a/python-urllib3/receipt	Fri Sep 14 11:37:28 2018 +0300
   323.2 +++ b/python-urllib3/receipt	Sat Sep 22 16:05:26 2018 +0300
   323.3 @@ -1,22 +1,25 @@
   323.4  # SliTaz package receipt v2.
   323.5  
   323.6 +ORIGIN="urllib3"
   323.7  PACKAGE="python-urllib3"
   323.8 -VERSION="latest"
   323.9 +VERSION="1.23"
  323.10  CATEGORY="network"
  323.11  SHORT_DESC="HTTP library with thread-safe connection pooling, file post, and more"
  323.12  MAINTAINER="al.bobylev@gmail.com"
  323.13  LICENSE="MIT"
  323.14 -WEB_SITE="https://pypi.org/project/urllib3/"
  323.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  323.16 +HOST_ARCH="any"
  323.17  REPOLOGY="python:urllib3"
  323.18  
  323.19 -BUILD_DEPENDS="python"
  323.20 +BUILD_DEPENDS="python python3"
  323.21 +SPLIT="${PACKAGE/python/python3}:3"
  323.22  
  323.23  compile_rules() {
  323.24 -	pip install --no-compile --root=$DESTDIR urllib3
  323.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  323.26  }
  323.27  
  323.28  genpkg_rules() {
  323.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*urllib3-||p' $LOGS/$PACKAGE.log)
  323.30  	copy @std
  323.31 -	DEPENDS="python"
  323.32 +	py="${PACKAGE%%-*}" # python/python3
  323.33 +	DEPENDS="$py"
  323.34  }
   324.1 --- a/python-urwid/receipt	Fri Sep 14 11:37:28 2018 +0300
   324.2 +++ b/python-urwid/receipt	Sat Sep 22 16:05:26 2018 +0300
   324.3 @@ -1,29 +1,25 @@
   324.4 -# SliTaz package receipt.
   324.5 +# SliTaz package receipt v2.
   324.6  
   324.7 +ORIGIN="urwid"
   324.8  PACKAGE="python-urwid"
   324.9 -VERSION="1.3.0"
  324.10 -CATEGORY="development"
  324.11 -SHORT_DESC="Console user interface library for Python."
  324.12 +VERSION="2.0.1"
  324.13 +CATEGORY="python"
  324.14 +SHORT_DESC="A full-featured console (xterm et al.) user interface library"
  324.15  MAINTAINER="paul@slitaz.org"
  324.16  LICENSE="LGPL2.1"
  324.17 -WEB_SITE="http://excess.org/urwid/"
  324.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  324.19 +HOST_ARCH="any"
  324.20  REPOLOGY="python:urwid"
  324.21  
  324.22 -SOURCE="urwid"
  324.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  324.24 -WGET_URL="https://files.pythonhosted.org/packages/source/u/urwid/$TARBALL"
  324.25 +BUILD_DEPENDS="python python3"
  324.26 +SPLIT="${PACKAGE/python/python3}:3"
  324.27  
  324.28 -DEPENDS="python"
  324.29 -BUILD_DEPENDS="python python-dev wget"
  324.30 -
  324.31 -# Rules to configure and make the package.
  324.32 -compile_rules()
  324.33 -{
  324.34 -	python setup.py install --root=$DESTDIR
  324.35 +compile_rules() {
  324.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  324.37  }
  324.38  
  324.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  324.40 -genpkg_rules()
  324.41 -{
  324.42 -	cp -a $install/usr $fs
  324.43 +genpkg_rules() {
  324.44 +	copy @std
  324.45 +	py="${PACKAGE%%-*}" # python/python3
  324.46 +	DEPENDS="$py"
  324.47  }
   325.1 --- a/python-usb/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   325.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   325.3 @@ -1,1 +0,0 @@
   325.4 -../python/.icon.png
   325.5 \ No newline at end of file
   326.1 --- a/python-usb/receipt	Fri Sep 14 11:37:28 2018 +0300
   326.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   326.3 @@ -1,30 +0,0 @@
   326.4 -# SliTaz package receipt.
   326.5 -
   326.6 -PACKAGE="python-usb"
   326.7 -VERSION="1.0.0b1"
   326.8 -CATEGORY="development"
   326.9 -SHORT_DESC="Python bindings for USB access."
  326.10 -MAINTAINER="pascal.bellard@slitaz.org"
  326.11 -LICENSE="BSD"
  326.12 -WEB_SITE="https://pyusb.github.io/pyusb/"
  326.13 -REPOLOGY="python:pyusb"
  326.14 -
  326.15 -SOURCE="pyusb"
  326.16 -TARBALL="$SOURCE-$VERSION.tar.bz2"
  326.17 -WGET_URL="$SF_MIRROR/pyusb/$TARBALL"
  326.18 -
  326.19 -DEPENDS="python libusb"
  326.20 -BUILD_DEPENDS="python-dev python"
  326.21 -
  326.22 -# Rules to configure and make the package.
  326.23 -compile_rules()
  326.24 -{
  326.25 -	python setup.py build &&
  326.26 -	python setup.py install --root=$DESTDIR
  326.27 -}
  326.28 -
  326.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
  326.30 -genpkg_rules()
  326.31 -{
  326.32 -	cp -a $install/usr $fs
  326.33 -}
   327.1 --- a/python-vatnumber/receipt	Fri Sep 14 11:37:28 2018 +0300
   327.2 +++ b/python-vatnumber/receipt	Sat Sep 22 16:05:26 2018 +0300
   327.3 @@ -1,31 +1,25 @@
   327.4 -# SliTaz package receipt.
   327.5 +# SliTaz package receipt v2.
   327.6  
   327.7 +ORIGIN="vatnumber"
   327.8  PACKAGE="python-vatnumber"
   327.9 -VERSION="1.0"
  327.10 -CATEGORY="development"
  327.11 -SHORT_DESC="Validate VAT numbers for Python."
  327.12 +VERSION="1.2"
  327.13 +CATEGORY="python"
  327.14 +SHORT_DESC="Validate VAT numbers for Python [unmaintained]"
  327.15  MAINTAINER="pascal.bellard@slitaz.org"
  327.16  LICENSE="GPL3"
  327.17 -WEB_SITE="https://pypi.org/project/vatnumber/"
  327.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  327.19 +HOST_ARCH="any"
  327.20  REPOLOGY="python:vatnumber"
  327.21  
  327.22 -SOURCE="vatnumber"
  327.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  327.24 -WGET_URL="http://vatnumber.googlecode.com/files/$TARBALL" # FIXME
  327.25 +BUILD_DEPENDS="python python-stdnum  python3 python3-stdnum"
  327.26 +SPLIT="${PACKAGE/python/python3}:3"
  327.27  
  327.28 -DEPENDS="python"
  327.29 -BUILD_DEPENDS="python-dev python"
  327.30 -
  327.31 -# Rules to configure and make the package.
  327.32 -compile_rules()
  327.33 -{
  327.34 -	python setup.py build &&
  327.35 -	python setup.py install --root=$DESTDIR
  327.36 +compile_rules() {
  327.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  327.38  }
  327.39  
  327.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  327.41 -genpkg_rules()
  327.42 -{
  327.43 -	mkdir -p $fs
  327.44 -	cp -a $install/usr $fs
  327.45 +genpkg_rules() {
  327.46 +	copy @std
  327.47 +	py="${PACKAGE%%-*}" # python/python3
  327.48 +	DEPENDS="$py $py-stdnum"
  327.49  }
   328.1 --- a/python-vobject/receipt	Fri Sep 14 11:37:28 2018 +0300
   328.2 +++ b/python-vobject/receipt	Sat Sep 22 16:05:26 2018 +0300
   328.3 @@ -1,31 +1,26 @@
   328.4 -# SliTaz package receipt.
   328.5 +# SliTaz package receipt v2.
   328.6  
   328.7 +ORIGIN="vobject"
   328.8  PACKAGE="python-vobject"
   328.9 -VERSION="0.8.1c"
  328.10 +VERSION="0.9.6.1"
  328.11  CATEGORY="development"
  328.12 -SHORT_DESC="Parse iCalendar and VCards in Python."
  328.13 +SHORT_DESC="Parse iCalendar and VCards in Python"
  328.14  MAINTAINER="pascal.bellard@slitaz.org"
  328.15  LICENSE="Apache"
  328.16 -WEB_SITE="http://vobject.skyhouseconsulting.com/"
  328.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  328.18 +HOST_ARCH="any"
  328.19  REPOLOGY="python:vobject"
  328.20  
  328.21 -SOURCE="vobject"
  328.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  328.23 -WGET_URL="${WEB_SITE}$TARBALL"
  328.24 +BUILD_DEPENDS="python python-dateutil python-six \
  328.25 +python3 python3-dateutil python3-six"
  328.26 +SPLIT="${PACKAGE/python/python3}:3"
  328.27  
  328.28 -DEPENDS="python python-dateutil"
  328.29 -BUILD_DEPENDS="python-dev python"
  328.30 -
  328.31 -# Rules to configure and make the package.
  328.32 -compile_rules()
  328.33 -{
  328.34 -	python setup.py build &&
  328.35 -	python setup.py install --root=$DESTDIR
  328.36 +compile_rules() {
  328.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  328.38  }
  328.39  
  328.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  328.41 -genpkg_rules()
  328.42 -{
  328.43 -	mkdir -p $fs
  328.44 -	cp -a $install/usr $fs
  328.45 +genpkg_rules() {
  328.46 +	copy @std
  328.47 +	py=${PACKAGE%%-*} # python/python3
  328.48 +	DEPENDS="$py $py-dateutil $py-six"
  328.49  }
   329.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   329.2 +++ b/python-waitress/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   329.3 @@ -0,0 +1,1 @@
   329.4 +../python/.icon.png
   329.5 \ No newline at end of file
   330.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   330.2 +++ b/python-waitress/receipt	Sat Sep 22 16:05:26 2018 +0300
   330.3 @@ -0,0 +1,25 @@
   330.4 +# SliTaz package receipt v2.
   330.5 +
   330.6 +ORIGIN="waitress"
   330.7 +PACKAGE="python-waitress"
   330.8 +VERSION="1.1.0"
   330.9 +CATEGORY="python"
  330.10 +SHORT_DESC="Waitress WSGI server"
  330.11 +MAINTAINER="al.bobylev@gmail.com"
  330.12 +LICENSE="ZPL"
  330.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  330.14 +HOST_ARCH="any"
  330.15 +REPOLOGY="python:waitress"
  330.16 +
  330.17 +BUILD_DEPENDS="python python3"
  330.18 +SPLIT="${PACKAGE/python/python3}:3"
  330.19 +
  330.20 +compile_rules() {
  330.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  330.22 +}
  330.23 +
  330.24 +genpkg_rules() {
  330.25 +	copy @std
  330.26 +	py="${PACKAGE%%-*}" # python/python3
  330.27 +	DEPENDS="$py"
  330.28 +}
   331.1 --- a/python-wcwidth/receipt	Fri Sep 14 11:37:28 2018 +0300
   331.2 +++ b/python-wcwidth/receipt	Sat Sep 22 16:05:26 2018 +0300
   331.3 @@ -1,22 +1,25 @@
   331.4 -# SliTaz package receipt.
   331.5 +# SliTaz package receipt v2.
   331.6  
   331.7 +ORIGIN="wcwidth"
   331.8  PACKAGE="python-wcwidth"
   331.9 -VERSION="latest"
  331.10 +VERSION="0.1.7"
  331.11  CATEGORY="development"
  331.12  SHORT_DESC="Measures number of Terminal column cells of wide-character codes"
  331.13  MAINTAINER="paul@slitaz.org"
  331.14  LICENSE="MIT"
  331.15 -WEB_SITE="https://pypi.org/project/wcwidth/"
  331.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  331.17 +HOST_ARCH="any"
  331.18  REPOLOGY="python:wcwidth"
  331.19  
  331.20 -BUILD_DEPENDS="python"
  331.21 +BUILD_DEPENDS="python python3"
  331.22 +SPLIT="${PACKAGE/python/python3}:3"
  331.23  
  331.24  compile_rules() {
  331.25 -	pip install --no-compile --root=$DESTDIR wcwidth
  331.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  331.27  }
  331.28  
  331.29  genpkg_rules() {
  331.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*wcwidth-||p' $LOGS/$PACKAGE.log)
  331.31  	copy @std
  331.32 -	DEPENDS="python"
  331.33 +	py="${PACKAGE%%-*}" # python/python3
  331.34 +	DEPENDS="$py"
  331.35  }
   332.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   332.2 +++ b/python-web.py/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   332.3 @@ -0,0 +1,1 @@
   332.4 +../python/.icon.png
   332.5 \ No newline at end of file
   333.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   333.2 +++ b/python-web.py/receipt	Sat Sep 22 16:05:26 2018 +0300
   333.3 @@ -0,0 +1,33 @@
   333.4 +# SliTaz package receipt v2.
   333.5 +
   333.6 +ORIGIN="web.py"
   333.7 +PACKAGE="python-web.py"
   333.8 +VERSION="0.39"       # for Python2
   333.9 +VERSION3="0.40.dev1" # for Python3 (experimental)
  333.10 +CATEGORY="python"
  333.11 +SHORT_DESC="Makes web apps"
  333.12 +MAINTAINER="pascal.bellard@slitaz.org"
  333.13 +LICENSE="PublicDomain"
  333.14 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  333.15 +HOST_ARCH="any"
  333.16 +REPOLOGY="python:web.py"
  333.17 +
  333.18 +BUILD_DEPENDS="python python3"
  333.19 +SPLIT="${PACKAGE/python/python3}:3"
  333.20 +
  333.21 +compile_rules() {
  333.22 +	case $SET in
  333.23 +		3) VERSION="$VERSION3";;
  333.24 +	esac
  333.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  333.26 +}
  333.27 +
  333.28 +genpkg_rules() {
  333.29 +	case $PACKAGE in
  333.30 +		python3-*) VERSION="$VERSION3";;
  333.31 +	esac
  333.32 +
  333.33 +	copy @std
  333.34 +	py="${PACKAGE%%-*}" # python/python3
  333.35 +	DEPENDS="$py"
  333.36 +}
   334.1 --- a/python-webdav/receipt	Fri Sep 14 11:37:28 2018 +0300
   334.2 +++ b/python-webdav/receipt	Sat Sep 22 16:05:26 2018 +0300
   334.3 @@ -1,30 +1,26 @@
   334.4 -# SliTaz package receipt.
   334.5 +# SliTaz package receipt v2.
   334.6  
   334.7 +ORIGIN="webdav"
   334.8  PACKAGE="python-webdav"
   334.9 -VERSION="0.5"
  334.10 -CATEGORY="development"
  334.11 -SHORT_DESC="A WebDAV client library for Python."
  334.12 +VERSION="1.1.2"
  334.13 +CATEGORY="python"
  334.14 +SHORT_DESC="WebDAV client library"
  334.15  MAINTAINER="pascal.bellard@slitaz.org"
  334.16 -LICENSE="MIT"
  334.17 -WEB_SITE="https://sourceforge.net/projects/python-webdav/"
  334.18 +LICENSE="GPL3"
  334.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  334.20 +HOST_ARCH="any"
  334.21  REPOLOGY="python:webdav"
  334.22  
  334.23 -TARBALL="${PACKAGE}_$VERSION.tar.gz"
  334.24 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
  334.25 +BUILD_DEPENDS="python python-lxml python-requests \
  334.26 +python3 python3-lxml python3-requests"
  334.27 +SPLIT="${PACKAGE/python/python3}:3"
  334.28  
  334.29 -DEPENDS="python"
  334.30 -BUILD_DEPENDS="python-dev python"
  334.31 -
  334.32 -# Rules to configure and make the package.
  334.33 -compile_rules()
  334.34 -{
  334.35 -	python setup.py build &&
  334.36 -	python setup.py install --root=$DESTDIR
  334.37 +compile_rules() {
  334.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  334.39  }
  334.40  
  334.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  334.42 -genpkg_rules()
  334.43 -{
  334.44 -	mkdir -p $fs
  334.45 -	cp -a $install/usr $fs
  334.46 +genpkg_rules() {
  334.47 +	copy @std
  334.48 +	py="${PACKAGE%%-*}" # python/python3
  334.49 +	DEPENDS="$py $py-lxml $py-requests"
  334.50  }
   335.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   335.2 +++ b/python-webencodings/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   335.3 @@ -0,0 +1,1 @@
   335.4 +../python/.icon.png
   335.5 \ No newline at end of file
   336.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   336.2 +++ b/python-webencodings/receipt	Sat Sep 22 16:05:26 2018 +0300
   336.3 @@ -0,0 +1,25 @@
   336.4 +# SliTaz package receipt v2.
   336.5 +
   336.6 +ORIGIN="webencodings"
   336.7 +PACKAGE="python-webencodings"
   336.8 +VERSION="0.5.1"
   336.9 +CATEGORY="python"
  336.10 +SHORT_DESC="Character encoding aliases for legacy web content"
  336.11 +MAINTAINER="al.bobylev@gmail.com"
  336.12 +LICENSE="BSD"
  336.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  336.14 +HOST_ARCH="any"
  336.15 +REPOLOGY="python:webencodings"
  336.16 +
  336.17 +BUILD_DEPENDS="python python3"
  336.18 +SPLIT="${PACKAGE/python/python3}:3"
  336.19 +
  336.20 +compile_rules() {
  336.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  336.22 +}
  336.23 +
  336.24 +genpkg_rules() {
  336.25 +	copy @std
  336.26 +	py="${PACKAGE%%-*}" # python/python3
  336.27 +	DEPENDS="$py"
  336.28 +}
   337.1 --- a/python-weberror/receipt	Fri Sep 14 11:37:28 2018 +0300
   337.2 +++ b/python-weberror/receipt	Sat Sep 22 16:05:26 2018 +0300
   337.3 @@ -1,30 +1,26 @@
   337.4 -# SliTaz package receipt.
   337.5 +# SliTaz package receipt v2.
   337.6  
   337.7 +ORIGIN="WebError"
   337.8  PACKAGE="python-weberror"
   337.9 -VERSION="0.10.2"
  337.10 -CATEGORY="development"
  337.11 +VERSION="0.13.1"
  337.12 +CATEGORY="python"
  337.13  SHORT_DESC="Web Error handling and exception catching"
  337.14  MAINTAINER="taziden@slitaz.org"
  337.15  LICENSE="MIT"
  337.16 -WEB_SITE="https://pypi.org/project/WebError/"
  337.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  337.18 +HOST_ARCH="any"
  337.19  REPOLOGY="python:weberror"
  337.20  
  337.21 -SOURCE="WebError"
  337.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  337.23 -WGET_URL="https://files.pythonhosted.org/packages/source/W/$SOURCE/$TARBALL"
  337.24 -TAGS="python"
  337.25 +BUILD_DEPENDS="python python-paste python-pygments python-tempita python-webob \
  337.26 +python3 python3-paste python3-pygments python3-tempita python3-webob"
  337.27 +SPLIT="${PACKAGE/python/python3}:3"
  337.28  
  337.29 -DEPENDS="python"
  337.30 -BUILD_DEPENDS="python python-dev"
  337.31 -
  337.32 -# Rules to configure and make the package.
  337.33 -compile_rules()
  337.34 -{
  337.35 -	python setup.py install --root=$DESTDIR
  337.36 +compile_rules() {
  337.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  337.38  }
  337.39  
  337.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  337.41 -genpkg_rules()
  337.42 -{
  337.43 -	cp -a $install/usr $fs
  337.44 +genpkg_rules() {
  337.45 +	copy @std
  337.46 +	py="${PACKAGE%%-*}" # python/python3
  337.47 +	DEPENDS="$py $py-paste $py-pygments $py-tempita $py-webob"
  337.48  }
   338.1 --- a/python-webhelpers/receipt	Fri Sep 14 11:37:28 2018 +0300
   338.2 +++ b/python-webhelpers/receipt	Sat Sep 22 16:05:26 2018 +0300
   338.3 @@ -1,30 +1,26 @@
   338.4 -# SliTaz package receipt.
   338.5 +# SliTaz package receipt v2.
   338.6  
   338.7 +ORIGIN="WebHelpers"
   338.8  PACKAGE="python-webhelpers"
   338.9 -VERSION="1.2"
  338.10 -CATEGORY="development"
  338.11 -SHORT_DESC="Web Helpers"
  338.12 -MAINTAINER="taziden@slitaz.org"
  338.13 -LICENSE="BSD"
  338.14 -WEB_SITE="https://pypi.org/project/WebHelpers/"
  338.15 +VERSION="1.3"
  338.16 +CATEGORY="python"
  338.17 +SHORT_DESC="Make HTML tags, process text, format numbers, and more"
  338.18 +MAINTAINER="al.bobylev@gmail.com"
  338.19 +LICENSE="MIT"
  338.20 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  338.21 +HOST_ARCH="any"
  338.22  REPOLOGY="python:webhelpers"
  338.23  
  338.24 -SOURCE="WebHelpers"
  338.25 -TARBALL="$SOURCE-$VERSION.tar.gz"
  338.26 -WGET_URL="https://files.pythonhosted.org/packages/source//W/$SOURCE/$TARBALL"
  338.27 -TAGS="python"
  338.28 +BUILD_DEPENDS="python python-markupsafe \
  338.29 +python3 python3-markupsafe"
  338.30 +SPLIT="${PACKAGE/python/python3}:3"
  338.31  
  338.32 -DEPENDS="python"
  338.33 -BUILD_DEPENDS="python python-dev"
  338.34 -
  338.35 -# Rules to configure and make the package.
  338.36 -compile_rules()
  338.37 -{
  338.38 -	python setup.py install --root=$DESTDIR
  338.39 +compile_rules() {
  338.40 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  338.41  }
  338.42  
  338.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
  338.44 -genpkg_rules()
  338.45 -{
  338.46 -	cp -a $install/usr $fs
  338.47 +genpkg_rules() {
  338.48 +	copy @std
  338.49 +	py=${PACKAGE%%-*} # python/python3
  338.50 +	DEPENDS="$py $py-markupsafe"
  338.51  }
   339.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   339.2 +++ b/python-webhelpers2/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   339.3 @@ -0,0 +1,1 @@
   339.4 +../python/.icon.png
   339.5 \ No newline at end of file
   340.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   340.2 +++ b/python-webhelpers2/receipt	Sat Sep 22 16:05:26 2018 +0300
   340.3 @@ -0,0 +1,26 @@
   340.4 +# SliTaz package receipt v2.
   340.5 +
   340.6 +ORIGIN="WebHelpers2"
   340.7 +PACKAGE="python-webhelpers2"
   340.8 +VERSION="2.0"
   340.9 +CATEGORY="python"
  340.10 +SHORT_DESC="Make HTML tags, process text, format numbers, and more"
  340.11 +MAINTAINER="al.bobylev@gmail.com"
  340.12 +LICENSE="MIT"
  340.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  340.14 +HOST_ARCH="any"
  340.15 +REPOLOGY="python:webhelpers2"
  340.16 +
  340.17 +BUILD_DEPENDS="python python-markupsafe python-six \
  340.18 +python3 python3-markupsafe python3-six"
  340.19 +SPLIT="${PACKAGE/python/python3}:3"
  340.20 +
  340.21 +compile_rules() {
  340.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  340.23 +}
  340.24 +
  340.25 +genpkg_rules() {
  340.26 +	copy @std
  340.27 +	py=${PACKAGE%%-*} # python/python3
  340.28 +	DEPENDS="$py $py-markupsafe $py-six"
  340.29 +}
   341.1 --- a/python-webob/receipt	Fri Sep 14 11:37:28 2018 +0300
   341.2 +++ b/python-webob/receipt	Sat Sep 22 16:05:26 2018 +0300
   341.3 @@ -1,24 +1,38 @@
   341.4  # SliTaz package receipt v2.
   341.5  
   341.6 +ORIGIN="WebOb"
   341.7  PACKAGE="python-webob"
   341.8 -VERSION="latest-1.7"
   341.9 -CATEGORY="development"
  341.10 +VERSION="1.8.2"
  341.11 +VERSION17="1.7.4" # python-turbogears require "WebOb<1.8.0,>=1.2"
  341.12 +CATEGORY="python"
  341.13  SHORT_DESC="WSGI request and response object"
  341.14  MAINTAINER="taziden@slitaz.org"
  341.15  LICENSE="MIT"
  341.16 -WEB_SITE="https://pypi.org/project/WebOb/"
  341.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  341.18 +HOST_ARCH="any"
  341.19  REPOLOGY="python:webob"
  341.20  
  341.21 -BUILD_DEPENDS="python"
  341.22 +BUILD_DEPENDS="python python3"
  341.23 +SPLIT="python3-webob:3 \
  341.24 +python-webob17:17 python3-webob17:173"
  341.25  
  341.26  compile_rules() {
  341.27 -	# python-turbogears require "WebOb<1.8.0,>=1.2"
  341.28 -	pip install --no-compile --root=$DESTDIR "WebOb<1.8.0,>=1.2"
  341.29 +	case $SET in
  341.30 +		'')  pip  install --no-compile --root=$install $ORIGIN==$VERSION;;
  341.31 +		3)   pip3 install --no-compile --root=$install $ORIGIN==$VERSION;;
  341.32 +		17)  pip  install --no-compile --root=$install $ORIGIN==$VERSION17;;
  341.33 +		173) pip3 install --no-compile --root=$install $ORIGIN==$VERSION17;;
  341.34 +	esac
  341.35  }
  341.36  
  341.37  genpkg_rules() {
  341.38 -	VERSION=$(sed -n '/^Successfully installed/ s|.*WebOb-||p' $LOGS/$PACKAGE.log)
  341.39 +	case $PACKAGE in
  341.40 +		*-webob17)
  341.41 +			VERSION="$VERSION17"
  341.42 +			CAT="python|legacy version $VERSION17"
  341.43 +			;;
  341.44 +	esac
  341.45  	copy @std
  341.46 -	DEPENDS="python"
  341.47 -	TAGS="python"
  341.48 +	py=${PACKAGE%%-*} # python/python3
  341.49 +	DEPENDS="$py"
  341.50  }
   342.1 --- a/python-webtest/receipt	Fri Sep 14 11:37:28 2018 +0300
   342.2 +++ b/python-webtest/receipt	Sat Sep 22 16:05:26 2018 +0300
   342.3 @@ -1,30 +1,27 @@
   342.4 -# SliTaz package receipt.
   342.5 +# SliTaz package receipt v2.
   342.6  
   342.7 +ORIGIN="WebTest"
   342.8  PACKAGE="python-webtest"
   342.9 -VERSION="1.2.2"
  342.10 -CATEGORY="development"
  342.11 +VERSION="2.0.30"
  342.12 +CATEGORY="python"
  342.13  SHORT_DESC="Helper to test WSGI applications"
  342.14  MAINTAINER="taziden@slitaz.org"
  342.15  LICENSE="MIT"
  342.16 -WEB_SITE="https://pypi.org/project/WebTest/"
  342.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  342.18 +HOST_ARCH="any"
  342.19  REPOLOGY="python:webtest"
  342.20  
  342.21 -SOURCE="WebTest"
  342.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
  342.23 -WGET_URL="https://files.pythonhosted.org/packages/source/W/$SOURCE/$TARBALL"
  342.24 -TAGS="python"
  342.25 +BUILD_DEPENDS="python python-beautifulsoup4 python-six python-waitress \
  342.26 +python-webob \
  342.27 +python3 python3-beautifulsoup4 python3-six python3-waitress python3-webob"
  342.28 +SPLIT="${PACKAGE/python/python3}:3"
  342.29  
  342.30 -DEPENDS="python"
  342.31 -BUILD_DEPENDS="python python-dev"
  342.32 -
  342.33 -# Rules to configure and make the package.
  342.34 -compile_rules()
  342.35 -{
  342.36 -	python setup.py install --root=$DESTDIR
  342.37 +compile_rules() {
  342.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  342.39  }
  342.40  
  342.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  342.42 -genpkg_rules()
  342.43 -{
  342.44 -	cp -a $install/usr $fs
  342.45 +genpkg_rules() {
  342.46 +	copy @std
  342.47 +	py="${PACKAGE%%-*}" # python/python3
  342.48 +	DEPENDS="$py $py-beautifulsoup4 $py-six $py-waitress $py-webob"
  342.49  }
   343.1 --- a/python-werkzeug/receipt	Fri Sep 14 11:37:28 2018 +0300
   343.2 +++ b/python-werkzeug/receipt	Sat Sep 22 16:05:26 2018 +0300
   343.3 @@ -1,37 +1,25 @@
   343.4 -# SliTaz package receipt.
   343.5 +# SliTaz package receipt v2.
   343.6  
   343.7 +ORIGIN="Werkzeug"
   343.8  PACKAGE="python-werkzeug"
   343.9 -GITHASH="8c085bba3d0abe1139fd84bdb542efdb579b0205"
  343.10 -VERSION=${GITHASH:0:7}
  343.11 -CATEGORY="development"
  343.12 -SHORT_DESC="WSGI utility modules"
  343.13 +VERSION="0.14.1"
  343.14 +CATEGORY="python"
  343.15 +SHORT_DESC="The comprehensive WSGI web application library"
  343.16  MAINTAINER="pascal.bellard@slitaz.org"
  343.17  LICENSE="BSD"
  343.18 -WEB_SITE="http://werkzeug.pocoo.org/"
  343.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  343.20 +HOST_ARCH="any"
  343.21  REPOLOGY="python:werkzeug"
  343.22  
  343.23 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  343.24 -GIT_URL="https://github.com/mitsuhiko/werkzeug/tarball/$GITHASH"
  343.25 +BUILD_DEPENDS="python python3"
  343.26 +SPLIT="${PACKAGE/python/python3}:3"
  343.27  
  343.28 -DEPENDS="python"
  343.29 -BUILD_DEPENDS="python python-dev"
  343.30 -
  343.31 -# Rules to configure and make the package.
  343.32 -compile_rules()
  343.33 -{
  343.34 -	[ -s $SRC/$TARBALL ] ||
  343.35 -		wget --no-check-certificate -O $SRC/$TARBALL $GIT_URL
  343.36 -	if [ ! -s $src ]; then
  343.37 -		mkdir -p $(dirname $src)
  343.38 -		tar xzf $SRC/$TARBALL &&
  343.39 -		mv mitsuhiko-werkzeug-$VERSION $src
  343.40 -	fi
  343.41 -	cd $src
  343.42 -	python setup.py install --root=$DESTDIR
  343.43 +compile_rules() {
  343.44 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  343.45  }
  343.46  
  343.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
  343.48 -genpkg_rules()
  343.49 -{
  343.50 -	cp -a $install/usr $fs
  343.51 +genpkg_rules() {
  343.52 +	copy @std
  343.53 +	py="${PACKAGE%%-*}" # python/python3
  343.54 +	DEPENDS="$py"
  343.55  }
   344.1 --- a/python-whoosh/receipt	Fri Sep 14 11:37:28 2018 +0300
   344.2 +++ b/python-whoosh/receipt	Sat Sep 22 16:05:26 2018 +0300
   344.3 @@ -1,31 +1,26 @@
   344.4 -# SliTaz package receipt.
   344.5 +# SliTaz package receipt v2.
   344.6  
   344.7 +ORIGIN="Whoosh"
   344.8  PACKAGE="python-whoosh"
   344.9 -VERSION="2.5.7"
  344.10 -CATEGORY="development"
  344.11 -SHORT_DESC="Fast full text indexing, search, and spell checking library."
  344.12 +VERSION="2.7.4"
  344.13 +CATEGORY="python"
  344.14 +SHORT_DESC="Fast, pure-Python full text indexing, search, and spell checking \
  344.15 +library"
  344.16  MAINTAINER="pascal.bellard@slitaz.org"
  344.17  LICENSE="BSD"
  344.18 -WEB_SITE="https://pypi.org/project/Whoosh/"
  344.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  344.20 +HOST_ARCH="any"
  344.21  REPOLOGY="python:whoosh"
  344.22  
  344.23 -SOURCE="Whoosh"
  344.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
  344.25 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  344.26 +BUILD_DEPENDS="python python3"
  344.27 +SPLIT="${PACKAGE/python/python3}:3"
  344.28  
  344.29 -DEPENDS="python"
  344.30 -BUILD_DEPENDS="python"
  344.31 -
  344.32 -# Rules to configure and make the package.
  344.33 -compile_rules()
  344.34 -{
  344.35 -	python setup.py build
  344.36 -	python setup.py install --root=$DESTDIR
  344.37 +compile_rules() {
  344.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  344.39  }
  344.40  
  344.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  344.42 -genpkg_rules()
  344.43 -{
  344.44 -	cp -a $install/* $fs
  344.45 +genpkg_rules() {
  344.46 +	copy @std
  344.47 +	py="${PACKAGE%%-*}" # python/python3
  344.48 +	DEPENDS="$py"
  344.49  }
  344.50 -
   345.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   345.2 +++ b/python-wstools/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   345.3 @@ -0,0 +1,1 @@
   345.4 +../python/.icon.png
   345.5 \ No newline at end of file
   346.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   346.2 +++ b/python-wstools/receipt	Sat Sep 22 16:05:26 2018 +0300
   346.3 @@ -0,0 +1,25 @@
   346.4 +# SliTaz package receipt v2.
   346.5 +
   346.6 +ORIGIN="wstools"
   346.7 +PACKAGE="python-wstools"
   346.8 +VERSION="0.4.8"
   346.9 +CATEGORY="python"
  346.10 +SHORT_DESC="WSDL parsing services package for Web Services for Python"
  346.11 +MAINTAINER="al.bobylev@gmail.com"
  346.12 +LICENSE="BSD"
  346.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  346.14 +HOST_ARCH="any"
  346.15 +REPOLOGY="python:wstools"
  346.16 +
  346.17 +BUILD_DEPENDS="python python-pbr python-six  python3 python3-pbr python3-six"
  346.18 +SPLIT="${PACKAGE/python/python3}:3"
  346.19 +
  346.20 +compile_rules() {
  346.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  346.22 +}
  346.23 +
  346.24 +genpkg_rules() {
  346.25 +	copy @std
  346.26 +	py="${PACKAGE%%-*}" # python/python3
  346.27 +	DEPENDS="$py $py-pbr $py-six"
  346.28 +}
   347.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   347.2 +++ b/python-xattr/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   347.3 @@ -0,0 +1,1 @@
   347.4 +../python/.icon.png
   347.5 \ No newline at end of file
   348.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   348.2 +++ b/python-xattr/receipt	Sat Sep 22 16:05:26 2018 +0300
   348.3 @@ -0,0 +1,26 @@
   348.4 +# SliTaz package receipt v2.
   348.5 +
   348.6 +ORIGIN="xattr"
   348.7 +PACKAGE="python-xattr"
   348.8 +VERSION="0.9.6"
   348.9 +CATEGORY="python"
  348.10 +SHORT_DESC="Python wrapper for extended filesystem attributes"
  348.11 +MAINTAINER="al.bobylev@gmail.com"
  348.12 +LICENSE="MIT"
  348.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  348.14 +#HOST_ARCH
  348.15 +REPOLOGY="python:xattr"
  348.16 +
  348.17 +BUILD_DEPENDS="python-dev python-cffi-dev \
  348.18 +python3-dev python3-cffi-dev libffi-dev"
  348.19 +SPLIT="${PACKAGE/python/python3}:3"
  348.20 +
  348.21 +compile_rules() {
  348.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  348.23 +}
  348.24 +
  348.25 +genpkg_rules() {
  348.26 +	copy @std
  348.27 +	py=${PACKAGE%%-*} # python/python3
  348.28 +	DEPENDS="$py $py-cffi"
  348.29 +}
   349.1 --- a/python-xdg/.icon.png	Fri Sep 14 11:37:28 2018 +0300
   349.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   349.3 @@ -1,1 +0,0 @@
   349.4 -../python/.icon.png
   349.5 \ No newline at end of file
   350.1 --- a/python-xdg/receipt	Fri Sep 14 11:37:28 2018 +0300
   350.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   350.3 @@ -1,31 +0,0 @@
   350.4 -# SliTaz package receipt.
   350.5 -
   350.6 -PACKAGE="python-xdg"
   350.7 -VERSION="0.19"
   350.8 -CATEGORY="development"
   350.9 -SHORT_DESC="Python library to access freedesktop.org standards."
  350.10 -MAINTAINER="paul@slitaz.org"
  350.11 -LICENSE="LGPL2"
  350.12 -WEB_SITE="http://www.freedesktop.org/wiki/Software/pyxdg"
  350.13 -REPOLOGY="python:pyxdg"
  350.14 -
  350.15 -SOURCE="pyxdg"
  350.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
  350.17 -WGET_URL="http://www.freedesktop.org/~lanius/$TARBALL"
  350.18 -
  350.19 -DEPENDS="python"
  350.20 -BUILD_DEPENDS="python python-dev"
  350.21 -
  350.22 -# Rules to configure and make the package.
  350.23 -compile_rules()
  350.24 -{
  350.25 -	python setup.py build &&
  350.26 -	python setup.py install --root=$DESTDIR
  350.27 -}
  350.28 -
  350.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
  350.30 -genpkg_rules()
  350.31 -{
  350.32 -	mkdir -p $fs
  350.33 -	cp -a $install/usr $fs
  350.34 -}
   351.1 --- a/python-xlib/receipt	Fri Sep 14 11:37:28 2018 +0300
   351.2 +++ b/python-xlib/receipt	Sat Sep 22 16:05:26 2018 +0300
   351.3 @@ -1,28 +1,29 @@
   351.4 -# SliTaz package receipt.
   351.5 +# SliTaz package receipt v2.
   351.6  
   351.7 +ORIGIN="xlib"
   351.8  PACKAGE="python-xlib"
   351.9 -VERSION="0.15rc1"
  351.10 -CATEGORY="development"
  351.11 -SHORT_DESC="X client library for Python programs."
  351.12 +VERSION="0.23"
  351.13 +CATEGORY="python"
  351.14 +SHORT_DESC="Python X Library"
  351.15  MAINTAINER="pascal.bellard@slitaz.org"
  351.16  LICENSE="GPL"
  351.17 -WEB_SITE="http://$PACKAGE.sourceforge.net/"
  351.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  351.19 +HOST_ARCH="any"
  351.20  REPOLOGY="python:xlib"
  351.21  
  351.22 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  351.23 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
  351.24 +BUILD_DEPENDS="python python-six  python3 python3-six"
  351.25 +SPLIT="${PACKAGE/python/python3}:3"
  351.26  
  351.27 -DEPENDS="python"
  351.28 -BUILD_DEPENDS="python"
  351.29 +compile_rules() {
  351.30 +	# latest version on pypi is 0.21, while 0.23 isn't pushed yet
  351.31 +	# pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  351.32  
  351.33 -# Rules to configure and make the package.
  351.34 -compile_rules()
  351.35 -{
  351.36 -	python ./setup.py install --root=$DESTDIR
  351.37 +	pip$SET install --no-compile --root=$install \
  351.38 +	https://github.com/python-xlib/python-xlib/releases/download/0.23/python_xlib-0.23-py2.py3-none-any.whl
  351.39  }
  351.40  
  351.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  351.42 -genpkg_rules()
  351.43 -{
  351.44 -	cp -a $install/usr $fs
  351.45 +genpkg_rules() {
  351.46 +	copy @std
  351.47 +	py=${PACKAGE%%-*} # python/python3
  351.48 +	DEPENDS="$py $py-six"
  351.49  }
   352.1 --- a/python-xlwt/receipt	Fri Sep 14 11:37:28 2018 +0300
   352.2 +++ b/python-xlwt/receipt	Sat Sep 22 16:05:26 2018 +0300
   352.3 @@ -1,31 +1,25 @@
   352.4 -# SliTaz package receipt.
   352.5 +# SliTaz package receipt v2.
   352.6  
   352.7 +ORIGIN="xlwt"
   352.8  PACKAGE="python-xlwt"
   352.9 -VERSION="0.7.2"
  352.10 -CATEGORY="development"
  352.11 +VERSION="1.3.0"
  352.12 +CATEGORY="python"
  352.13  SHORT_DESC="Python module for reading/writing Microsoft Excel spreadsheet files"
  352.14  MAINTAINER="pascal.bellard@slitaz.org"
  352.15  LICENSE="BSD"
  352.16 -WEB_SITE="http://www.janrain.com/openid-enabled/"
  352.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  352.18 +HOST_ARCH="any"
  352.19  REPOLOGY="python:xlwt"
  352.20  
  352.21 -SOURCE="xlwt"
  352.22 -TARBALL="${SOURCE}_$VERSION.orig.tar.gz"
  352.23 -WGET_URL="http://ftp.debian.org/debian/pool/main/${SOURCE:0:1}/$SOURCE/$TARBALL"
  352.24 +BUILD_DEPENDS="python python3"
  352.25 +SPLIT="${PACKAGE/python/python3}:3"
  352.26  
  352.27 -DEPENDS="python python-antlr"
  352.28 -BUILD_DEPENDS="python-dev python"
  352.29 -
  352.30 -# Rules to configure and make the package.
  352.31 -compile_rules()
  352.32 -{
  352.33 -	python setup.py build &&
  352.34 -	python setup.py install --root=$DESTDIR
  352.35 +compile_rules() {
  352.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  352.37  }
  352.38  
  352.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
  352.40 -genpkg_rules()
  352.41 -{
  352.42 -	mkdir -p $fs
  352.43 -	cp -a $install/usr $fs
  352.44 +genpkg_rules() {
  352.45 +	copy @std
  352.46 +	py="${PACKAGE%%-*}" # python/python3
  352.47 +	DEPENDS="$py"
  352.48  }
   353.1 --- a/python-xmlutils/receipt	Fri Sep 14 11:37:28 2018 +0300
   353.2 +++ b/python-xmlutils/receipt	Sat Sep 22 16:05:26 2018 +0300
   353.3 @@ -1,31 +1,25 @@
   353.4 -# SliTaz package receipt.
   353.5 +# SliTaz package receipt v2.
   353.6  
   353.7 +ORIGIN="xmlutils"
   353.8  PACKAGE="python-xmlutils"
   353.9 -VERSION="1.1"
  353.10 -CATEGORY="development"
  353.11 -SHORT_DESC="Convert XML documents to SQL, CSV or JSON."
  353.12 +VERSION="1.4"
  353.13 +CATEGORY="python"
  353.14 +SHORT_DESC="Processing XML documents and converting to other formats"
  353.15  MAINTAINER="pascal.bellard@slitaz.org"
  353.16  LICENSE="MIT"
  353.17 -WEB_SITE="https://pypi.org/project/xmlutils/"
  353.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  353.19 +HOST_ARCH="any"
  353.20 +REPOLOGY="python:xmlutils"
  353.21  
  353.22 -SOURCE="xmlutils"
  353.23 -TARBALL="$SOURCE-$VERSION.zip"
  353.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
  353.25 +BUILD_DEPENDS="python python3"
  353.26 +SPLIT="${PACKAGE/python/python3}:3"
  353.27  
  353.28 -DEPENDS="python"
  353.29 -BUILD_DEPENDS="python"
  353.30 -
  353.31 -# Rules to configure and make the package.
  353.32 -compile_rules()
  353.33 -{
  353.34 -	python setup.py build &&
  353.35 -	python setup.py install --root=$DESTDIR
  353.36 +compile_rules() {
  353.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  353.38  }
  353.39  
  353.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
  353.41 -genpkg_rules()
  353.42 -{
  353.43 -	mkdir -p $fs
  353.44 -	cp -a $install/usr $fs
  353.45 +genpkg_rules() {
  353.46 +	copy @std
  353.47 +	py="${PACKAGE%%-*}" # python/python3
  353.48 +	DEPENDS="$py"
  353.49  }
  353.50 -
   354.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   354.2 +++ b/python-youtube-dl/receipt	Sat Sep 22 16:05:26 2018 +0300
   354.3 @@ -0,0 +1,27 @@
   354.4 +# SliTaz package receipt v2.
   354.5 +
   354.6 +ORIGIN="youtube_dl"
   354.7 +PACKAGE="python-youtube-dl"
   354.8 +VERSION="2018.09.18"
   354.9 +VERSION_PIP="2018.9.18" # some inconsistancy in the pipy version
  354.10 +CATEGORY="utilities"
  354.11 +SHORT_DESC="Downloads videos from various streaming websites"
  354.12 +MAINTAINER="gokhlayeh@slitaz.org"
  354.13 +LICENSE="MIT"
  354.14 +WEB_SITE="https://rg3.github.io/youtube-dl/"
  354.15 +HOST_ARCH="any"
  354.16 +REPOLOGY="youtube-dl"
  354.17 +
  354.18 +BUILD_DEPENDS="python python3"
  354.19 +SPLIT="${PACKAGE/python/python3}:3"
  354.20 +
  354.21 +compile_rules() {
  354.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION_PIP
  354.23 +}
  354.24 +
  354.25 +genpkg_rules() {
  354.26 +	copy @std
  354.27 +	py="${PACKAGE%%-*}" # python/python3
  354.28 +	DEPENDS="$py"
  354.29 +	PROVIDE="youtube-dl"
  354.30 +}
   355.1 Binary file python-youtube-dlg/.icon.png has changed
   356.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   356.2 +++ b/python-youtube-dlg/receipt	Sat Sep 22 16:05:26 2018 +0300
   356.3 @@ -0,0 +1,28 @@
   356.4 +# SliTaz package receipt v2.
   356.5 +
   356.6 +ORIGIN="youtube-dlg"
   356.7 +PACKAGE="python-youtube-dlg"
   356.8 +VERSION="0.4"
   356.9 +CATEGORY="multimedia"
  356.10 +SHORT_DESC="Front-end GUI of the popular youtube-dl written in wxPython"
  356.11 +MAINTAINER="al.bobylev@gmail.com"
  356.12 +LICENSE="PublicDomain"
  356.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  356.14 +HOST_ARCH="any"
  356.15 +REPOLOGY="youtube-dl-gui"
  356.16 +
  356.17 +BUILD_DEPENDS="python python-wxpython3-dev python-twodict gettext"
  356.18 +COOKOPTS="!pixmaps"
  356.19 +
  356.20 +compile_rules() {
  356.21 +	# Python3 based compilation produce error
  356.22 +	pip install --no-compile --root=$install $ORIGIN==$VERSION || return 1
  356.23 +
  356.24 +	install -Dm644 $stuff/youtube-dl-gui.desktop $install/usr/share/applications/youtube-dl-gui.desktop
  356.25 +}
  356.26 +
  356.27 +genpkg_rules() {
  356.28 +	copy @std
  356.29 +	DEPENDS="python python-youtube-dl python-wxpython3 python-twodict"
  356.30 +	PROVIDE="youtube-dl-gui"
  356.31 +}
   357.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   357.2 +++ b/python-youtube-dlg/stuff/youtube-dl-gui.desktop	Sat Sep 22 16:05:26 2018 +0300
   357.3 @@ -0,0 +1,6 @@
   357.4 +[Desktop Entry]
   357.5 +Type=Application
   357.6 +Name=Youtube-DLG
   357.7 +Exec=youtube-dl-gui
   357.8 +Icon=youtube-dl-gui
   357.9 +Categories=Network;FileTransfer;
   358.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   358.2 +++ b/python-zc.lockfile/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   358.3 @@ -0,0 +1,1 @@
   358.4 +../python/.icon.png
   358.5 \ No newline at end of file
   359.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   359.2 +++ b/python-zc.lockfile/receipt	Sat Sep 22 16:05:26 2018 +0300
   359.3 @@ -0,0 +1,25 @@
   359.4 +# SliTaz package receipt v2.
   359.5 +
   359.6 +ORIGIN="zc.lockfile"
   359.7 +PACKAGE="python-zc.lockfile"
   359.8 +VERSION="1.3.0"
   359.9 +CATEGORY="python"
  359.10 +SHORT_DESC="Basic inter-process locks"
  359.11 +MAINTAINER="al.bobylev@gmail.com"
  359.12 +LICENSE="ZPL"
  359.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  359.14 +HOST_ARCH="any"
  359.15 +REPOLOGY="python:zc.lockfile"
  359.16 +
  359.17 +BUILD_DEPENDS="python python3"
  359.18 +SPLIT="${PACKAGE/python/python3}:3"
  359.19 +
  359.20 +compile_rules() {
  359.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  359.22 +}
  359.23 +
  359.24 +genpkg_rules() {
  359.25 +	copy @std
  359.26 +	py="${PACKAGE%%-*}" # python/python3
  359.27 +	DEPENDS="$py"
  359.28 +}
   360.1 --- a/python-zfec/receipt	Fri Sep 14 11:37:28 2018 +0300
   360.2 +++ b/python-zfec/receipt	Sat Sep 22 16:05:26 2018 +0300
   360.3 @@ -1,31 +1,31 @@
   360.4 -# SliTaz package receipt.
   360.5 +# SliTaz package receipt v2.
   360.6  
   360.7 +ORIGIN="zfec"
   360.8  PACKAGE="python-zfec"
   360.9 -VERSION="1.4.24"
  360.10 -CATEGORY="development"
  360.11 -SHORT_DESC="A fast erasure codec."
  360.12 +VERSION="1.5.3"
  360.13 +CATEGORY="python"
  360.14 +SHORT_DESC="An efficient, portable erasure coding tool"
  360.15  MAINTAINER="pascal.bellard@slitaz.org"
  360.16  LICENSE="GPL2"
  360.17 -WEB_SITE="https://pypi.org/project/zfec/"
  360.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  360.19 +#HOST_ARCH
  360.20  REPOLOGY="python:zfec"
  360.21  
  360.22 -SOURCE="zfec"
  360.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
  360.24 -WGET_URL="https://files.pythonhosted.org/packages/source/z/zfec/$TARBALL"
  360.25 +BUILD_DEPENDS="python-dev python-argparse python-pyutil \
  360.26 +python3-dev python3-pyutil"
  360.27 +SPLIT="${PACKAGE/python/python3}:3"
  360.28  
  360.29 -DEPENDS="python"
  360.30 -BUILD_DEPENDS="wget python-dev"
  360.31 +compile_rules() {
  360.32 +	fix utf-8; export LC_ALL=en_US.UTF-8
  360.33  
  360.34 -# Rules to configure and make the package.
  360.35 -compile_rules()
  360.36 -{
  360.37 -	python setup.py install --prefix=/usr --root=$DESTDIR
  360.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  360.39  }
  360.40  
  360.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  360.42 -genpkg_rules()
  360.43 -{
  360.44 -	mkdir -p $fs/usr
  360.45 -	cp -a $install/usr/bin $fs/usr/
  360.46 -	cp -a $install/usr/lib $fs/usr/
  360.47 +genpkg_rules() {
  360.48 +	copy @std
  360.49 +	py="${PACKAGE%%-*}" # python/python3
  360.50 +	case $PACKAGE in
  360.51 +		python-*)  DEPENDS="$py $py-argparse $py-pyutil";;
  360.52 +		python3-*) DEPENDS="$py $py-pyutil";;
  360.53 +	esac
  360.54  }
   361.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   361.2 +++ b/python-zope.interface/.icon.png	Sat Sep 22 16:05:26 2018 +0300
   361.3 @@ -0,0 +1,1 @@
   361.4 +../python/.icon.png
   361.5 \ No newline at end of file
   362.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   362.2 +++ b/python-zope.interface/receipt	Sat Sep 22 16:05:26 2018 +0300
   362.3 @@ -0,0 +1,26 @@
   362.4 +# SliTaz package receipt v2.
   362.5 +
   362.6 +ORIGIN="zope.interface"
   362.7 +PACKAGE="python-zope.interface"
   362.8 +VERSION="4.5.0"
   362.9 +CATEGORY="network"
  362.10 +SHORT_DESC="Zope 4 Interface Infrastructure"
  362.11 +MAINTAINER="pascal.bellard@slitaz.org"
  362.12 +LICENSE="ZPL"
  362.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  362.14 +HOST_ARCH="any"
  362.15 +REPOLOGY="python:zope.interface"
  362.16 +
  362.17 +BUILD_DEPENDS="python python3"
  362.18 +SPLIT="${PACKAGE/python/python3}:3"
  362.19 +
  362.20 +compile_rules() {
  362.21 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
  362.22 +}
  362.23 +
  362.24 +genpkg_rules() {
  362.25 +	copy @std
  362.26 +	py=${PACKAGE%%-*} # python/python3
  362.27 +	DEPENDS="$py"
  362.28 +	TAGS="webserver application-server appserver"
  362.29 +}
   363.1 --- a/python-zsi/receipt	Fri Sep 14 11:37:28 2018 +0300
   363.2 +++ b/python-zsi/receipt	Sat Sep 22 16:05:26 2018 +0300
   363.3 @@ -1,31 +1,29 @@
   363.4  # SliTaz package receipt.
   363.5  
   363.6 +ORIGIN="ZSI"
   363.7  PACKAGE="python-zsi"
   363.8  VERSION="2.1-a1"
   363.9  CATEGORY="development"
  363.10 -SHORT_DESC="The Zolera Soap Infrastructure for Python."
  363.11 +SHORT_DESC="The Zolera Soap Infrastructure for Python"
  363.12  MAINTAINER="pascal.bellard@slitaz.org"
  363.13  LICENSE="BSD"
  363.14 -WEB_SITE="http://pywebsvcs.sourceforge.net/zsi.html"
  363.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
  363.16 +HOST_ARCH="any"
  363.17  REPOLOGY="python:zsi"
  363.18  
  363.19 -SOURCE="ZSI"
  363.20 -TARBALL="$SOURCE-$VERSION.tar.gz"
  363.21 -WGET_URL="$SF_MIRROR/project/pywebsvcs/$SOURCE/$SOURCE-${VERSION/-/_}/$TARBALL"
  363.22 +# pypi didn't provide downloads; project is unmaintained since 2007;
  363.23 +# latest version is Alpha one
  363.24 +TARBALL="$ORIGIN-$VERSION.tar.gz"
  363.25 +WGET_URL="$SF_MIRROR/pywebsvcs/$TARBALL"
  363.26  
  363.27 -DEPENDS="python python-pyxml"
  363.28 -BUILD_DEPENDS="python-dev python"
  363.29 +BUILD_DEPENDS="python"
  363.30  
  363.31 -# Rules to configure and make the package.
  363.32 -compile_rules()
  363.33 -{
  363.34 -	python setup.py build &&
  363.35 -	python setup.py install --root=$DESTDIR
  363.36 +compile_rules() {
  363.37 +#	python setup.py build &&
  363.38 +	python -B setup.py install --root=$install
  363.39  }
  363.40  
  363.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
  363.42 -genpkg_rules()
  363.43 -{
  363.44 -	mkdir -p $fs
  363.45 -	cp -a $install/usr $fs
  363.46 +genpkg_rules() {
  363.47 +	copy @std
  363.48 +	DEPENDS="python python-pyxml"
  363.49  }
   364.1 --- a/python/receipt	Fri Sep 14 11:37:28 2018 +0300
   364.2 +++ b/python/receipt	Sat Sep 22 16:05:26 2018 +0300
   364.3 @@ -91,6 +91,9 @@
   364.4  				chmod -v 755 $install/usr/lib/libpython2.7.so.1.0
   364.5  			;;
   364.6  	esac
   364.7 +
   364.8 +	# Upgrade pip unless it will throw noisy warnings on every pip-based package
   364.9 +	pip install --upgrade --root=$install pip
  364.10  }
  364.11  
  364.12  genpkg_rules() {
   365.1 --- a/python3/receipt	Fri Sep 14 11:37:28 2018 +0300
   365.2 +++ b/python3/receipt	Sat Sep 22 16:05:26 2018 +0300
   365.3 @@ -31,6 +31,9 @@
   365.4  
   365.5  	chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so
   365.6  	chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so
   365.7 +
   365.8 +	# Upgrade pip unless it will throw noisy warnings on every pip-based package
   365.9 +	pip3 install --upgrade --root=$install pip
  365.10  }
  365.11  
  365.12  genpkg_rules() {
   366.1 --- a/twisted/receipt	Fri Sep 14 11:37:28 2018 +0300
   366.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   366.3 @@ -1,27 +0,0 @@
   366.4 -# SliTaz package receipt.
   366.5 -
   366.6 -PACKAGE="twisted"
   366.7 -VERSION="13.2.0"
   366.8 -CATEGORY="network"
   366.9 -SHORT_DESC="Event-driven networking for internet applications."
  366.10 -MAINTAINER="pascal.bellard@slitaz.org"
  366.11 -LICENSE="GPL2"
  366.12 -SOURCE="Twisted"
  366.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
  366.14 -WEB_SITE="https://twistedmatrix.com/trac/"
  366.15 -WGET_URL="https://twistedmatrix.com/Releases/Twisted/${VERSION%.*}/$TARBALL"
  366.16 -
  366.17 -DEPENDS="python zopeinterface"
  366.18 -BUILD_DEPENDS="python python-dev zopeinterface"
  366.19 -
  366.20 -# Rules to configure and make the package.
  366.21 -compile_rules()
  366.22 -{
  366.23 -	python setup.py build && python setup.py install --root=$DESTDIR
  366.24 -}
  366.25 -
  366.26 -# Rules to gen a SliTaz package suitable for Tazpkg.
  366.27 -genpkg_rules()
  366.28 -{
  366.29 -	cp -a $install/usr $fs
  366.30 -}
   367.1 --- a/unhide/receipt	Fri Sep 14 11:37:28 2018 +0300
   367.2 +++ b/unhide/receipt	Sat Sep 22 16:05:26 2018 +0300
   367.3 @@ -1,7 +1,7 @@
   367.4  # SliTaz package receipt v2.
   367.5  
   367.6  PACKAGE="unhide"
   367.7 -VERSION="20121229"
   367.8 +VERSION="20130526"
   367.9  CATEGORY="security"
  367.10  SHORT_DESC="Forensic tool to find hidden processes and TCP/UDP ports"
  367.11  MAINTAINER="pascal.bellard@slitaz.org"
  367.12 @@ -19,6 +19,11 @@
  367.13  
  367.14  	mkdir -p $install/usr/sbin/
  367.15  	cp unhide unhide_rb unhide-tcp $install/usr/sbin/
  367.16 +
  367.17 +	cook_pick_manpages man/*.8
  367.18 +	mkdir -p $install/usr/share/man/es/man8/ $install/usr/share/man/fr/man8/
  367.19 +	cp man/es/*.8 $install/usr/share/man/es/man8/
  367.20 +	cp man/fr/*.8 $install/usr/share/man/fr/man8/
  367.21  }
  367.22  
  367.23  genpkg_rules() {
   368.1 Binary file youtube-dl-gui/.icon.png has changed
   369.1 --- a/youtube-dl-gui/receipt	Fri Sep 14 11:37:28 2018 +0300
   369.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   369.3 @@ -1,26 +0,0 @@
   369.4 -# SliTaz package receipt v2.
   369.5 -
   369.6 -PACKAGE="youtube-dl-gui"
   369.7 -VERSION="0.4"
   369.8 -CATEGORY="multimedia"
   369.9 -SHORT_DESC="A cross platform front-end GUI of the popular youtube-dl written in \
  369.10 -wxPython"
  369.11 -MAINTAINER="al.bobylev@gmail.com"
  369.12 -LICENSE="PublicDomain"
  369.13 -WEB_SITE="https://github.com/MrS0m30n3/youtube-dl-gui"
  369.14 -
  369.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  369.16 -WGET_URL="https://github.com/MrS0m30n3/youtube-dl-gui/archive/$VERSION.tar.gz"
  369.17 -
  369.18 -BUILD_DEPENDS="python-wxpython3-dev python-twodict gettext"
  369.19 -COOKOPTS="!pixmaps"
  369.20 -
  369.21 -compile_rules() {
  369.22 -	python setup.py build &&
  369.23 -	python setup.py install --root=$install
  369.24 -}
  369.25 -
  369.26 -genpkg_rules() {
  369.27 -	copy @std
  369.28 -	DEPENDS="youtube-dl wxpython"
  369.29 -}
   370.1 --- a/youtube-dl-gui/stuff/youtube-dl-gui.desktop	Fri Sep 14 11:37:28 2018 +0300
   370.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   370.3 @@ -1,6 +0,0 @@
   370.4 -[Desktop Entry]
   370.5 -Type=Application
   370.6 -Name=Youtube-DLG
   370.7 -Exec=python /usr/lib/python2.7/site-packages/youtube_dl_gui/__main__.py
   370.8 -Icon=youtube-dl-gui
   370.9 -Categories=Network;FileTransfer;
   371.1 --- a/youtube-dl/receipt	Fri Sep 14 11:37:28 2018 +0300
   371.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   371.3 @@ -1,26 +0,0 @@
   371.4 -# SliTaz package receipt v2.
   371.5 -
   371.6 -PACKAGE="youtube-dl"
   371.7 -VERSION="2018.03.14"
   371.8 -CATEGORY="utilities"
   371.9 -SHORT_DESC="Downloads videos from various streaming websites"
  371.10 -MAINTAINER="gokhlayeh@slitaz.org"
  371.11 -LICENSE="MIT"
  371.12 -WEB_SITE="http://rg3.github.io/youtube-dl/"
  371.13 -
  371.14 -TARBALL="$PACKAGE-$VERSION.tar.gz"
  371.15 -WGET_URL="https://yt-dl.org/downloads/$VERSION/$TARBALL"
  371.16 -
  371.17 -BUILD_DEPENDS="python"
  371.18 -
  371.19 -compile_rules() {
  371.20 -	chmod +x $src/youtube-dl
  371.21 -	echo | $src/youtube-dl
  371.22 -
  371.23 -	install -Dm755 $src/youtube-dl $install/usr/bin/youtube-dl
  371.24 -}
  371.25 -
  371.26 -genpkg_rules() {
  371.27 -	copy @std
  371.28 -	DEPENDS="python"
  371.29 -}
   372.1 --- a/zopeinterface/receipt	Fri Sep 14 11:37:28 2018 +0300
   372.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   372.3 @@ -1,28 +0,0 @@
   372.4 -# SliTaz package receipt.
   372.5 -
   372.6 -PACKAGE="zopeinterface"
   372.7 -VERSION="4.0.5"
   372.8 -CATEGORY="network"
   372.9 -SHORT_DESC="Zope 4 Interface Infrastructure."
  372.10 -MAINTAINER="pascal.bellard@slitaz.org"
  372.11 -LICENSE="other"
  372.12 -SOURCE="zope.interface"
  372.13 -TARBALL="$SOURCE-$VERSION.zip"
  372.14 -WEB_SITE="https://pypi.org/project/zope.interface/"
  372.15 -WGET_URL="https://files.pythonhosted.org/packages/source/z/$SOURCE/$TARBALL"
  372.16 -TAGS="webserver application-server appserver"
  372.17 -
  372.18 -DEPENDS="python"
  372.19 -BUILD_DEPENDS="python python-dev"
  372.20 -
  372.21 -# Rules to configure and make the package.
  372.22 -compile_rules()
  372.23 -{
  372.24 -	python setup.py build && python setup.py install --root=$DESTDIR
  372.25 -}
  372.26 -
  372.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
  372.28 -genpkg_rules()
  372.29 -{
  372.30 -	cp -a $install/usr $fs
  372.31 -}