wok-current annotate python-restclient/receipt @ rev 24399

updated ccid (1.4.31 -> 1.5.0)
author Hans-G?nter Theisgen
date Tue Feb 08 14:40:28 2022 +0100 (2022-02-08)
parents 1df6fa555414
children
rev   line source
claudinei@3812 1 # SliTaz package receipt.
claudinei@3812 2
claudinei@3812 3 PACKAGE="python-restclient"
Hans-G?nter@23554 4 VERSION="1.3.3"
claudinei@3812 5 CATEGORY="development"
Hans-G?nter@23554 6 SHORT_DESC="A simple REST client for python."
claudinei@3812 7 MAINTAINER="claudinei@slitaz.org"
pascal@15376 8 LICENSE="MIT"
Hans-G?nter@23554 9 WEB_SITE="https://pypi.org/project/py-restclient/"
Hans-G?nter@23554 10
Hans-G?nter@23554 11 SOURCE="py-restclient"
Hans-G?nter@23554 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23554 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
claudinei@3812 14
pascal@15376 15 DEPENDS="python python-httplib2"
pascal@21582 16 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@15376 17
pascal@24383 18 # What is the latest version available today?
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24383 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 22 }
pascal@24288 23
pascal@24288 24 # Rules to configure and make the package.
claudinei@3812 25 compile_rules()
claudinei@3812 26 {
pascal@14355 27 python setup.py install --root=$DESTDIR
claudinei@3812 28 }
claudinei@3812 29
claudinei@3812 30 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3812 31 genpkg_rules()
claudinei@3812 32 {
pascal@6594 33 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
Hans-G?nter@23554 34
claudinei@3812 35 mkdir -p $fs/usr
Hans-G?nter@23554 36 rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/*
Hans-G?nter@23554 37 rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests
Hans-G?nter@23554 38 cp -a $install/usr $fs
claudinei@3812 39 }