pentoo-overlay/dev-python/coreapi/coreapi-2.3.3.ebuild
2022-01-03 09:10:05 +08:00

35 lines
885 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Python client library for Core API"
HOMEPAGE="https://github.com/core-api/python-client"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-python/coreschema[${PYTHON_USEDEP}]
dev-python/itypes[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/uritemplate[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
"
# test? ( dev-python/mock[${PYTHON_USEDEP}]
# )"
#python_test() {
# # Skip tests which require network access
# py.test -k "not (test_access_token_post or test_access_token_get \
# or test_two_legged_post or test_two_legged_get)" || die \
# "tests failed with ${EPYTHON}"
#}