2021-01-17 23:26:20 +01:00
|
|
|
# Copyright 2020-2021 Gentoo Authors
|
2020-09-22 20:33:01 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-06-30 00:19:40 +02:00
|
|
|
EAPI=8
|
2020-09-22 20:33:01 +02:00
|
|
|
|
2021-06-30 00:19:40 +02:00
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
2020-09-22 20:33:01 +02:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Allowlist-based HTML cleaner"
|
|
|
|
HOMEPAGE="https://github.com/matthiask/html-sanitizer/ https://pypi.org/project/html-sanitizer/"
|
|
|
|
SRC_URI="https://github.com/matthiask/html-sanitizer/archive/"${PV}".tar.gz -> "${PN}"-"${PV}".tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
>=dev-python/lxml-3.6.1
|
2021-09-09 10:44:23 +02:00
|
|
|
dev-python/beautifulsoup4
|
2020-09-22 20:33:01 +02:00
|
|
|
"
|
|
|
|
|
2021-06-30 00:19:40 +02:00
|
|
|
S="${WORKDIR}/html-sanitizer-${PV}"
|
|
|
|
|
|
|
|
distutils_enable_tests unittest
|