summaryrefslogtreecommitdiff
blob: 5cc48b6fc9b0a6dce3a6643a6ff4af50104021e1 (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
# 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.3.2.ebuild,v 1.4 2014/09/01 02:03:08 idella4 Exp $

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

DESCRIPTION="An API client for docker"
HOMEPAGE="https://github.com/dotcloud/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}]"

PATCHES=(
	"${FILESDIR}"/${P}-no-version-lock.patch
)

# upstream archive does not include the tests
RESTRICT=test

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