wok-next annotate python-pycodestyle/receipt @ rev 21337
clamav 0.101.1 -> 0.101.2: fixes a few CVEs; new requirement: libcurl
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Dec 14 19:40:43 2019 +0000 (2019-12-14) |
parents | d24f5052ae8c |
children |
rev | line source |
---|---|
al@20921 | 1 # SliTaz package receipt v2. |
al@20921 | 2 |
al@20972 | 3 ORIGIN="pycodestyle" |
al@20921 | 4 PACKAGE="python-pycodestyle" |
al@20972 | 5 VERSION="2.4.0" |
al@20972 | 6 VERSION23="2.3.1" # python-flake8 requres 'pycodestyle<2.4.0,>=2.0.0' |
al@20972 | 7 CATEGORY="python" |
al@20921 | 8 SHORT_DESC="Python style guide checker" |
al@20921 | 9 MAINTAINER="al.bobylev@gmail.com" |
al@20921 | 10 LICENSE="MIT" |
al@20972 | 11 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20921 | 12 HOST_ARCH="any" |
al@20921 | 13 REPOLOGY="python:pycodestyle" |
al@20921 | 14 |
al@20972 | 15 BUILD_DEPENDS="python python3" |
al@20972 | 16 SPLIT="python3-pycodestyle:3 \ |
al@20972 | 17 python-pycodestyle23:23 python3-pycodestyle23:233" |
al@20921 | 18 |
al@20921 | 19 compile_rules() { |
al@20972 | 20 case $SET in |
al@20972 | 21 '') pip install --no-compile --root=$install $ORIGIN==$VERSION;; |
al@20972 | 22 3) pip3 install --no-compile --root=$install $ORIGIN==$VERSION;; |
al@20972 | 23 23) pip install --no-compile --root=$install $ORIGIN==$VERSION23;; |
al@20972 | 24 233) pip3 install --no-compile --root=$install $ORIGIN==$VERSION23;; |
al@20972 | 25 esac |
al@20921 | 26 } |
al@20921 | 27 |
al@20921 | 28 genpkg_rules() { |
al@20972 | 29 case $PACKAGE in |
al@20972 | 30 *-pycodestyle23) |
al@20972 | 31 VERSION="$VERSION23" |
al@20972 | 32 CAT="python|legacy version $VERSION23" |
al@20972 | 33 ;; |
al@20972 | 34 esac |
al@20921 | 35 copy @std |
al@20972 | 36 py=${PACKAGE%%-*} # python/python3 |
al@20972 | 37 DEPENDS="$py" |
al@20921 | 38 } |