commit:     fefaf2cfeffaced9c2abd57bee6563feb9541fe7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 11 07:29:04 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 11 07:56:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fefaf2cf

dev-python/falcon: Bump to 3.0.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/falcon/Manifest            |  1 +
 dev-python/falcon/falcon-3.0.1.ebuild | 45 +++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/falcon/Manifest b/dev-python/falcon/Manifest
index 8aeea13a6f4..2db507b6129 100644
--- a/dev-python/falcon/Manifest
+++ b/dev-python/falcon/Manifest
@@ -1 +1,2 @@
 DIST falcon-2.0.0.tar.gz 1075333 BLAKE2B 
338e0b2474d743171fb0bc9dc3a05da428e6d46fc25e7cf1e978f799ed70e76bf265f32ba2cdf16d6eec8ea03b7b6111f70aa5b8f59141b7029d8ba9b03cd0d1
 SHA512 
d5365f91eb312cd058773d0a3809b5d8631acc188b9ee884e7c7db35664138608998f397d3fd831c568cafaf261cca2734b9dc7fb60590062e316ad1dbc74614
+DIST falcon-3.0.1.tar.gz 1300689 BLAKE2B 
76dd59d0274cc2e78052b800e6e5b4c4244e1f5e47169a424882cda5bb59c38cd69c1c0942d506867728da9ddaf5d35b88195a1b003ca5f66549248293b7006d
 SHA512 
c6a5763264b497979129df26d83a04323f53861b6d453a2b642d22208d0dad2ec1fcb88b13a53c2cb2b2988a1c0d19b94021099b458e23d640984b4d03880edc

diff --git a/dev-python/falcon/falcon-3.0.1.ebuild 
b/dev-python/falcon/falcon-3.0.1.ebuild
new file mode 100644
index 00000000000..96dc17ca3d9
--- /dev/null
+++ b/dev-python/falcon/falcon-3.0.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+DESCRIPTION="A supersonic micro-framework for building cloud APIs"
+HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/";
+SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/python-mimeparse[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/cython[${PYTHON_USEDEP}]
+       test? (
+               dev-python/aiofiles[${PYTHON_USEDEP}]
+               dev-python/cbor2[${PYTHON_USEDEP}]
+               dev-python/httpx[${PYTHON_USEDEP}]
+               dev-python/msgpack[${PYTHON_USEDEP}]
+               dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/uvicorn[${PYTHON_USEDEP}]
+               dev-python/websockets[${PYTHON_USEDEP}]
+       )"
+
+distutils_enable_tests pytest
+
+python_test() {
+       local deselect=(
+               # mujson is unpackaged, test-only dep
+               --ignore tests/test_media_handlers.py
+       )
+
+       cp -r tests "${BUILD_DIR}" || die
+       cd "${BUILD_DIR}" || die
+       epytest tests "${deselect[@]}"
+}

Reply via email to