wok-next annotate python-flake8/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 d24f5052ae8c
children
rev   line source
al@20921 1 # SliTaz package receipt v2.
al@20921 2
al@20972 3 ORIGIN="flake8"
al@20921 4 PACKAGE="python-flake8"
al@20972 5 VERSION="3.5.0"
al@20972 6 CATEGORY="python"
al@20921 7 SHORT_DESC="The modular source code checker for Python"
al@20921 8 MAINTAINER="pascal.bellard@slitaz.org"
al@20921 9 LICENSE="MIT"
al@20972 10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20921 11 HOST_ARCH="any"
al@20921 12 REPOLOGY="python:flake8"
al@20921 13
al@20972 14 BUILD_DEPENDS="python python-configparser python-enum34 python-mccabe \
al@20972 15 python-pycodestyle23 python-pyflakes16 \
al@20972 16 python3 python3-mccabe python3-pycodestyle23 python3-pyflakes16"
al@20972 17 SPLIT="${PACKAGE/python/python3}:3"
al@20921 18
al@20921 19 compile_rules() {
al@20972 20 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
al@20921 21 }
al@20921 22
al@20921 23 genpkg_rules() {
al@20921 24 copy @std
al@20972 25 py=${PACKAGE%%-*} # python/python3
al@20972 26 case $PACKAGE in
al@20972 27 python-*)
al@20972 28 DEPENDS="$py $py-configparser $py-enum34 $py-mccabe \
al@20972 29 $py-pycodestyle23 $py-pyflakes16"
al@20972 30 ;;
al@20972 31 python3-*)
al@20972 32 DEPENDS="$py $py-mccabe $py-pycodestyle23 $py-pyflakes16"
al@20972 33 ;;
al@20972 34 esac
al@20921 35 }