dev-python/recommonmark: Increase docutils dependency
authorMatt Turner <mattst88@gentoo.org>
Sun, 10 Feb 2019 23:48:31 +0000 (15:48 -0800)
committerMatt Turner <mattst88@gentoo.org>
Sun, 10 Feb 2019 23:51:49 +0000 (15:51 -0800)
Closes: https://bugs.gentoo.org/672210
Signed-off-by: Matt Turner <mattst88@gentoo.org>
dev-python/recommonmark/recommonmark-0.5.0_pre20181012-r1.ebuild [new file with mode: 0644]

diff --git a/dev-python/recommonmark/recommonmark-0.5.0_pre20181012-r1.ebuild b/dev-python/recommonmark/recommonmark-0.5.0_pre20181012-r1.ebuild
new file mode 100644 (file)
index 0000000..be2e8f6
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
+
+inherit distutils-r1
+
+EGIT_COMMIT=fdeeda5f6fe3ed8905deb7a067cc5951a477d091
+MY_P=${PN}-${EGIT_COMMIT}
+DESCRIPTION="Python docutils-compatibility bridge to CommonMark"
+HOMEPAGE="https://recommonmark.readthedocs.io/"
+SRC_URI="https://github.com/rtfd/recommonmark/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-python/commonmark-0.8[${PYTHON_USEDEP}]
+       >=dev-python/docutils-0.14[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+S=${WORKDIR}/${MY_P}
+
+python_test() {
+       pytest -vv || die "Tests fail with ${EPYTHON}"
+}