summaryrefslogtreecommitdiff
blob: 3668cf5ce8a97ead1a5b035aa201e968e6cfa7e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/docker-py/docker-py-0.5.0.ebuild,v 1.1 2014/09/18 13:29:51 xarthisius Exp $

EAPI=5
PYTHON_COMPAT=( python{2_7,3_{3,4}} )
inherit distutils-r1

DESCRIPTION="An API client for docker"
HOMEPAGE="https://github.com/docker/docker-py"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
	test? ( >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] )"
RDEPEND=">=dev-python/requests-2.2.1[${PYTHON_USEDEP}]
	>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
	dev-python/websocket-client[${PYTHON_USEDEP}]"

# upstream archive does not include the tests
RESTRICT=test

python_prepare_all() {
	sed -e 's/==/>=/' -i requirements{3,}.txt || die
	distutils-r1_python_prepare_all
}

python_test() {
	PYTHONPATH="${S}" esetup.py test || die
}