wok annotate python-webtest/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | a0da61d3dffb |
children | 423689f04ca0 |
rev | line source |
---|---|
taziden@3777 | 1 # SliTaz package receipt. |
taziden@3777 | 2 |
taziden@3777 | 3 PACKAGE="python-webtest" |
Hans-G?nter@23582 | 4 VERSION="2.0.34" |
taziden@3777 | 5 CATEGORY="development" |
Hans-G?nter@23582 | 6 TAGS="python" |
Hans-G?nter@23582 | 7 SHORT_DESC="Helper to test WSGI applications." |
taziden@3777 | 8 MAINTAINER="taziden@slitaz.org" |
pascal@15376 | 9 LICENSE="MIT" |
Hans-G?nter@23582 | 10 WEB_SITE="https://pypi.python.org/pypi/WebTest/" |
Hans-G?nter@23582 | 11 |
taziden@3777 | 12 SOURCE="WebTest" |
taziden@3777 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23582 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
taziden@3777 | 15 |
pascal@15376 | 16 DEPENDS="python" |
pascal@21582 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15376 | 18 |
pascal@24391 | 19 # What is the latest version available today? |
pascal@24391 | 20 current_version() |
pascal@24391 | 21 { |
pascal@24391 | 22 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 24 } |
pascal@24391 | 25 |
taziden@3777 | 26 # Rules to configure and make the package. |
taziden@3777 | 27 compile_rules() |
taziden@3777 | 28 { |
pascal@15376 | 29 python setup.py install --root=$DESTDIR |
taziden@3777 | 30 } |
taziden@3777 | 31 |
taziden@3777 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
taziden@3777 | 33 genpkg_rules() |
taziden@3777 | 34 { |
Hans-G?nter@23582 | 35 cp -a $install/usr $fs |
taziden@3777 | 36 } |