wok-next diff python-tweepy/receipt @ rev 21529

updated buildroot (2014.08 -> 2020.05)
author Hans-G?nter Theisgen
date Sat Jun 20 16:34:10 2020 +0100 (2020-06-20)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-tweepy/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-tweepy/receipt	Sat Jun 20 16:34:10 2020 +0100
     1.3 @@ -1,30 +1,27 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="tweepy"
     1.8  PACKAGE="python-tweepy"
     1.9 -VERSION="1.10"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Twitter library for python."
    1.12 +VERSION="3.6.0"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Twitter library for Python"
    1.15  MAINTAINER="paul@slitaz.org"
    1.16  LICENSE="MIT"
    1.17 -WEB_SITE="https://github.com/tweepy/tweepy"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +HOST_ARCH="any"
    1.20  REPOLOGY="python:tweepy"
    1.21  
    1.22 -SOURCE="tweepy"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="https://files.pythonhosted.org/packages/source/t/$SOURCE/$TARBALL"
    1.25 -TAGS="python"
    1.26 +BUILD_DEPENDS="python python-pysocks python-requests python-requests-oauthlib \
    1.27 +python-six \
    1.28 +python3 python3-pysocks python3-requests python3-requests-oauthlib python3-six"
    1.29 +SPLIT="${PACKAGE/python/python3}:3"
    1.30  
    1.31 -DEPENDS="python"
    1.32 -BUILD_DEPENDS="python python-dev"
    1.33 -
    1.34 -# Rules to configure and make the package.
    1.35 -compile_rules()
    1.36 -{
    1.37 -	python setup.py install --root=$DESTDIR
    1.38 +compile_rules() {
    1.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.40  }
    1.41  
    1.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 -genpkg_rules()
    1.44 -{
    1.45 -	cp -a $install/usr $fs
    1.46 +genpkg_rules() {
    1.47 +	copy @std
    1.48 +	py="${PACKAGE%%-*}" # python/python3
    1.49 +	DEPENDS="$py $py-pysocks $py-requests $py-requests-oauthlib $py-six"
    1.50  }