wok-next view python-mock/receipt @ rev 20972

Improve Python packages: update, also provide Python3 packages where available
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 22 16:05:26 2018 +0300 (2018-09-22)
parents 8b5b2a6d07b8
children d457c4e37c1b
line source
1 # SliTaz package receipt v2.
3 ORIGIN="mock"
4 PACKAGE="python-mock"
5 VERSION="2.0.0"
6 CATEGORY="python"
7 SHORT_DESC="A library for testing in Python"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://pypi.org/pypi/$ORIGIN/"
11 HOST_ARCH="any"
12 REPOLOGY="python:mock"
14 BUILD_DEPENDS="python python-funcsigs python-pbr python-six \
15 python3 python3-pbr python3-six"
16 SPLIT="${PACKAGE/python/python3}:3"
18 compile_rules() {
19 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
20 }
22 genpkg_rules() {
23 copy @std
24 py=${PACKAGE%%-*} # python/python3
25 case $PACKAGE in
26 python-*) DEPENDS="$py $py-funcsigs $py-pbr $py-six";;
27 python3-*) DEPENDS="$py $py-pbr $py-six";;
28 esac
29 }