# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )

inherit distutils-r1 git-r3

EGIT_REPO_URI="https://github.com/mandus/pyjwt.git"

MY_PN="PyJWT"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="A Python implementation of JSON Web Token"
HOMEPAGE="http://pypi.python.org/pypi/PyJWT"

if [ $PV != 9999 ] ; then
	SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
	S="${WORKDIR}/${MY_P}"
fi

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND=""
#TODO add pycrypto dep
DEPEND="${RDEPEND}
	dev-python/setuptools[${PYTHON_USEDEP}]"
