diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-12 10:01:47 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-12 10:37:08 +0200 |
commit | 78e919ce5fe44d1581af4bf3598490c645be692f (patch) | |
tree | df241f56ccddfeb7c4f3ec8bdd5f340fb95cef67 /dev-python | |
parent | dev-python/itsdangerous: Bump to 2.0.0 (diff) | |
download | gentoo-78e919ce5fe44d1581af4bf3598490c645be692f.tar.gz gentoo-78e919ce5fe44d1581af4bf3598490c645be692f.tar.bz2 gentoo-78e919ce5fe44d1581af4bf3598490c645be692f.zip |
dev-python/flask: Bump to 2.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/flask/Manifest | 1 | ||||
-rw-r--r-- | dev-python/flask/flask-2.0.0.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/flask/Manifest b/dev-python/flask/Manifest index e9ecc229b2f4..58d0f76cca23 100644 --- a/dev-python/flask/Manifest +++ b/dev-python/flask/Manifest @@ -1 +1,2 @@ DIST Flask-1.1.2.tar.gz 637516 BLAKE2B 90dffbb8faa48489d1c71ff2a064d41e97d2103c07532fd5b252dbe0b32e4babb815e31f0ceae201a66cead645b68149d13d4bb39a0df1b27b4002e613920493 SHA512 9feb6a9a8f34fadbea508d465f73c24b1d81b3f66243804dc3904d198c2fd78e2e1bef94df6a4940a7eec6b9b54abea06557a87de8b27b0a9497d18b3e071384 +DIST Flask-2.0.0.tar.gz 624458 BLAKE2B 82f552cbe714ea4fd64b56f88ee747c292659181139eae5fe0e496457d1f33cb5d7b464ed5250b6087c859691d89cb72a885d8640855dd9dfe7ecc6083bb0c36 SHA512 3fc66aa1568f7dce67bb70b0113401b7535dda32e33ac784a42f08fa21e08b055214218fac06dc6fb4b8f975b2a91321a6c97203f6568efc6bfbbb8d4ef9ddc3 diff --git a/dev-python/flask/flask-2.0.0.ebuild b/dev-python/flask/flask-2.0.0.ebuild new file mode 100644 index 000000000000..88be5fb401b3 --- /dev/null +++ b/dev-python/flask/flask-2.0.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions" +HOMEPAGE="https://github.com/pallets/flask/" +MY_PN="Flask" +MY_P="${MY_PN}-${PV}" +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/mitsuhiko/flask.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="examples" + +RDEPEND=" + >=dev-python/asgiref-3.2[${PYTHON_USEDEP}] + >=dev-python/click-7.1.2[${PYTHON_USEDEP}] + dev-python/blinker[${PYTHON_USEDEP}] + >=dev-python/itsdangerous-2.0[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/werkzeug-2.0[${PYTHON_USEDEP}]" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_test() { + epytest -p no:httpbin +} + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +} |