wok-6.x annotate python-nose/receipt @ rev 24288

fail2ban: add log4j-jndi.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 13 18:29:05 2022 +0000 (2022-01-13)
parents a9aa30e5bd71
children 076f424196b2
rev   line source
taziden@3777 1 # SliTaz package receipt.
taziden@3777 2
taziden@3777 3 PACKAGE="python-nose"
Hans-G?nter@23514 4 VERSION="1.3.7"
taziden@3777 5 CATEGORY="development"
Hans-G?nter@23514 6 TAGS="python"
Hans-G?nter@23514 7 SHORT_DESC="Unittest extension."
taziden@3777 8 MAINTAINER="taziden@slitaz.org"
pascal@15379 9 LICENSE="LGPL2.1"
Hans-G?nter@23514 10 WEB_SITE="https://pypi.org/project/nose/"
Hans-G?nter@23514 11
taziden@3777 12 SOURCE="nose"
taziden@3777 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23514 14 WGET_URL="https://files.pythonhosted.org/packages/source/n/$SOURCE/$TARBALL"
taziden@3777 15
pascal@15379 16 DEPENDS="python"
pascal@15379 17 BUILD_DEPENDS="python python-dev"
pascal@15379 18
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24288 21 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 22 }
pascal@24288 23
taziden@3777 24 # Rules to configure and make the package.
taziden@3777 25 compile_rules()
taziden@3777 26 {
pascal@19293 27 sed -i 's|man/man|share/&|' setup.py
Hans-G?nter@23514 28
pascal@15379 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 {
pankso@4172 35 mkdir -p $fs/usr
Hans-G?nter@23514 36 cp -a $install/usr/lib $fs/usr
taziden@3777 37 }