summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2020-04-09 09:38:41 +0200
committerHanno Böck <hanno@gentoo.org>2020-04-09 09:38:41 +0200
commit3b25712c4d546dab43daa980ac1a90f5903da52c (patch)
tree38120e8f38713b41a78fd4b2b8e87d458437f62d /dev-python/falcon/falcon-2.0.0.ebuild
parentnet-analyzer/wireshark: Old (diff)
downloadgentoo-3b25712c4d546dab43daa980ac1a90f5903da52c.tar.gz
gentoo-3b25712c4d546dab43daa980ac1a90f5903da52c.tar.bz2
gentoo-3b25712c4d546dab43daa980ac1a90f5903da52c.zip
dev-python/falcon: Version bump
Bump EAPI, add Python 3.7/3.8. Disable tests, they were broken before. Closes: https://bugs.gentoo.org/534740 Signed-off-by: Hanno Böck <hanno@gentoo.org> Package-Manager: Portage-2.3.97, Repoman-2.3.22
Diffstat (limited to 'dev-python/falcon/falcon-2.0.0.ebuild')
-rw-r--r--dev-python/falcon/falcon-2.0.0.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/falcon/falcon-2.0.0.ebuild b/dev-python/falcon/falcon-2.0.0.ebuild
new file mode 100644
index 00000000000..e5c26c42d59
--- /dev/null
+++ b/dev-python/falcon/falcon-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="A supersonic micro-framework for building cloud APIs"
+HOMEPAGE="http://falconframework.org/ https://pypi.org/project/falcon/"
+SRC_URI="https://github.com/racker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cython"
+RESTRICT="test"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]
+ dev-python/mimeparse[${PYTHON_USEDEP}]
+ cython? ( dev-python/cython[${PYTHON_USEDEP}] )"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ if ! use cython; then
+ sed -i -e 's/if with_cython:/if False:/' setup.py \
+ || die 'sed failed.'
+ fi
+
+ eapply_user
+}