wok annotate python-mock/receipt @ rev 25336

updated suricata (5.0.2 -> 6.0.6)
author Hans-G?nter Theisgen
date Sat Jul 23 17:54:01 2022 +0100 (23 months ago)
parents e717a4953b0e
children
rev   line source
pascal@14499 1 # SliTaz package receipt.
pascal@14499 2
pascal@14501 3 PACKAGE="python-mock"
Hans-G?nter@25204 4 VERSION="3.0.5"
pascal@14499 5 CATEGORY="development"
pascal@14499 6 SHORT_DESC="A library for testing in Python."
pascal@14499 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="BSD"
Hans-G?nter@25204 9 WEB_SITE="https://pypi.org/project/mock/"
Hans-G?nter@25204 10 REPOLOGY="python:mock"
Hans-G?nter@25204 11
pascal@14499 12 SOURCE="mock"
pascal@14499 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@25204 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@14499 15
pascal@14499 16 DEPENDS="python"
pascal@21582 17 BUILD_DEPENDS="python python-setuptools"
pascal@14499 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
pascal@14499 26 # Rules to configure and make the package.
pascal@14499 27 compile_rules()
pascal@14499 28 {
pascal@14499 29 python setup.py install --root=$DESTDIR
pascal@14499 30 }
pascal@14499 31
pascal@14499 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14499 33 genpkg_rules()
pascal@14499 34 {
Hans-G?nter@25204 35 cp -a $install/usr $fs
pascal@14499 36 }