mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 18:43:18 -04:00
dev-python/django-markdownify: new package, add 0.9.2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Markdown template filter for Django"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/django-markdownify/
|
||||
https://github.com/erwinmatijsen/django-markdownify
|
||||
"
|
||||
SRC_URI="https://github.com/erwinmatijsen/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
# No Django settings to run tests
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/bleach[${PYTHON_USEDEP}]
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/tinycss2[${PYTHON_USEDEP}]
|
||||
!dev-python/markdownify
|
||||
"
|
||||
BDEPEND="
|
||||
test? ( ${RDEPEND} )
|
||||
doc? ( dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs/source --no-autodoc
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" -m django test -v 2 --settings test_app.settings ||
|
||||
die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user