wok annotate python-mock/receipt @ rev 25017

updated openjpeg, openjpeg-dev and openjpeg-tools (1.5.0 -> 1.5.2)
author Hans-G?nter Theisgen
date Wed May 18 06:55:41 2022 +0100 (2022-05-18)
parents 104a2a2e5484
children d71511614097
rev   line source
pascal@14499 1 # SliTaz package receipt.
pascal@14499 2
pascal@14501 3 PACKAGE="python-mock"
pascal@14499 4 VERSION="1.0.1"
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"
pascal@14499 9 SOURCE="mock"
pascal@14499 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24975 11 WEB_SITE="https://pypi.python.org/pypi/$SOURCE/$VERSION"
pascal@24975 12 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@14499 13
pascal@14499 14 DEPENDS="python"
pascal@21582 15 BUILD_DEPENDS="python python-setuptools"
pascal@14499 16
pascal@24391 17 # What is the latest version available today?
pascal@24391 18 current_version()
pascal@24391 19 {
pascal@24391 20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 21 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 22 }
pascal@24391 23
pascal@14499 24 # Rules to configure and make the package.
pascal@14499 25 compile_rules()
pascal@14499 26 {
pascal@14499 27 python setup.py install --root=$DESTDIR
pascal@14499 28 }
pascal@14499 29
pascal@14499 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14499 31 genpkg_rules()
pascal@14499 32 {
pascal@14499 33 cp -a $install/usr $fs
pascal@14499 34 }