You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
710 B
37 lines
710 B
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{10,11} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Weblate commandline client using Weblate's REST API."
|
|
HOMEPAGE="https://weblate.org"
|
|
SRC_URI="https://github.com/WeblateOrg/wlc/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
PATCHES=( "${FILESDIR}/01-fix-python-warnings.patch" )
|
|
|
|
COMMON_DEPEND="
|
|
dev-python/argcomplete
|
|
dev-python/python-dateutil
|
|
dev-python/pyxdg
|
|
dev-python/requests"
|
|
|
|
DEPEND="
|
|
${COMMON_DEPEND}
|
|
"
|
|
RDEPEND="
|
|
${COMMON_DEPEND}
|
|
"
|
|
S="${WORKDIR}/wlc-${PV}"
|
|
|
|
python_test() {
|
|
py.test -v
|
|
}
|