dev-python/caldav/caldav-0.4.0.ebuild
author Da Risk <da_risk@geekorum.com>
Sun, 21 May 2017 17:12:30 -0700
changeset 216 5e84b58ccea0
parent 159 a04a74c83cfa
permissions -rw-r--r--
app-emulation/genymotion-bin: Support libressl (Portage version: 2.3.5/hg/Linux x86_64, unsigned Manifest commit)

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

EAPI=5
PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

DESCRIPTION="CalDAV (RFC4791) client library for python"
HOMEPAGE="http://pypi.python.org/pypi/caldab"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="|| ( GPL-3 Apache-2.0 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

COMMON_DEPS="dev-python/setuptools[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/vobject[${PYTHON_USEDEP}]
	dev-python/lxml[${PYTHON_USEDEP}]
	dev-python/six[${PYTHON_USEDEP}]
	"

DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}]
				dev-python/coverage[${PYTHON_USEDEP}]
			  )
		${COMMON_DEPS}"
RDEPEND="${COMMON_DEPS}"

src_prepare() {
	epatch "${FILESDIR}/${PN}-${PV}-fix-setup.patch"
}

python_test() {
	nosetests || die "Tests fail with ${EPYTHON}"
}