HomeAssistantRepository/dev-python/todoist-python/todoist-python-8.0.0.ebuild

33 lines
696 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
MY_P=${PN/-/_}-${PV}
DESCRIPTION="todoist-python - The official Todoist Python API library"
HOMEPAGE=" https://pypi.org/project/todoist-python/"
SRC_URI="https://github.com/Doist/${PN}/archive/${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}