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.
gentoo-overlay/dev-python/requests/requests-0.13.6.ebuild

43 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/requests/requests-0.13.6.ebuild,v 1.1 2012/08/17 19:54:27 floppym Exp $
EAPI="4"
PYTHON_DEPEND="*:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 2.5"
DISTUTILS_SRC_TEST="nosetests"
inherit distutils eutils
DESCRIPTION="HTTP library for human beings"
HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
DEPEND="dev-python/setuptools"
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES=1
src_prepare() {
epatch "${FILESDIR}/${PN}-0.13-python2.6.patch"
# Different packages are installed depending on the python version.
# Need to remove stale egg-info data and build in separate directories.
rm -r requests.egg-info || die
distutils_src_prepare
}
src_test() {
echoit() { echo "$@"; "$@"; }
testing() {
echoit nosetests --verbosity=1 tests/*.py
}
python_execute_function testing
}