wok annotate python-requests/receipt @ rev 24508

updated ed (1.15 -> 1.18)
author Hans-G?nter Theisgen
date Sun Feb 20 17:14:34 2022 +0100 (2022-02-20)
parents 1df6fa555414
children f3b390540324
rev   line source
al@16776 1 # SliTaz package receipt.
al@16776 2
al@16776 3 PACKAGE="python-requests"
Hans-G?nter@23553 4 VERSION="2.23.0"
al@16776 5 CATEGORY="network"
Hans-G?nter@23553 6 SHORT_DESC="Python HTTP Requests for Humans."
al@16776 7 MAINTAINER="al.bobylev@gmail.com"
pascal@17345 8 LICENSE="Apache"
Hans-G?nter@23553 9 WEB_SITE="https://pypi.org/project/requests/"
Hans-G?nter@23553 10
Hans-G?nter@23553 11 SOURCE="requests"
al@16776 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23554 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"
al@16776 14
al@16776 15 DEPENDS="python"
Hans-G?nter@23553 16 BUILD_DEPENDS="python python-setuptools"
al@16776 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.
al@16776 25 compile_rules()
al@16776 26 {
al@16776 27 python setup.py install --no-compile --root=$install
al@16776 28 }
al@16776 29
al@16776 30 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16776 31 genpkg_rules()
al@16776 32 {
Hans-G?nter@23553 33 cp -a $install/* $fs
al@16776 34 }