1
0
mirror of synced 2024-11-15 09:28:56 +01:00
TheChymera-overlay/dev-python/yahoo-finance/yahoo-finance-1.2.1.ebuild

34 lines
680 B
Bash
Raw Normal View History

2016-10-04 04:56:46 +02:00
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit distutils-r1
2016-10-05 00:04:14 +02:00
DESCRIPTION="Python module to get stock data from Yahoo! Finance"
HOMEPAGE="https://github.com/lukaszbanasiak/yahoo-finance"
2016-10-04 04:56:46 +02:00
SRC_URI="https://github.com/lukaszbanasiak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
2016-10-05 00:04:14 +02:00
LICENSE="MIT"
2016-10-04 04:56:46 +02:00
SLOT="0"
2016-10-05 00:04:14 +02:00
KEYWORDS="~amd64 ~x86"
2016-10-04 04:56:46 +02:00
IUSE="test"
2016-10-05 00:04:14 +02:00
RDEPEND="
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
"
2016-10-04 04:56:46 +02:00
DEPEND="
test? (
${RDEPEND}
dev-python/unittest2[${PYTHON_USEDEP}]
)
"
python_test() {
2016-10-05 00:04:14 +02:00
${EPYTHON} test/test_yahoo.py || die
2016-10-04 04:56:46 +02:00
}