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.
52 lines
1.3 KiB
52 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI=5
|
||
9 years ago
|
|
||
9 years ago
|
PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
|
||
|
|
||
|
inherit distutils-r1 vcs-snapshot
|
||
|
|
||
|
DESCRIPTION="Official Stormpath SDK, used to interact with the Stormpath REST API."
|
||
|
HOMEPAGE="https://github.com/stormpath/stormpath-sdk-python"
|
||
9 years ago
|
SRC_URI="https://github.com/stormpath/${PN}-sdk-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE="doc test"
|
||
|
|
||
|
DEPEND="
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||
|
test? (
|
||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||
|
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
"
|
||
|
RDEPEND="
|
||
|
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
|
||
8 years ago
|
<=dev-python/oauthlib-1.0.3[${PYTHON_USEDEP}]
|
||
9 years ago
|
>=dev-python/pydispatcher-2.0.5[${PYTHON_USEDEP}]
|
||
|
>=dev-python/pyjwt-1.0.0[${PYTHON_USEDEP}]
|
||
|
>=dev-python/python-dateutil-2.4.0[${PYTHON_USEDEP}]
|
||
|
>=dev-python/requests-2.4.3[${PYTHON_USEDEP}]
|
||
|
>=dev-python/six-1.6.1[${PYTHON_USEDEP}]
|
||
|
"
|
||
|
|
||
|
python_compile_all() {
|
||
|
use doc && emake -C docs html
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
9 years ago
|
esetup.py test
|
||
9 years ago
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||
|
|
||
|
distutils-r1_python_install_all
|
||
|
}
|