X-Git-Url: http://git.tremily.us/?p=wtk-overlay.git;a=blobdiff_plain;f=dev-python%2Flibthumbor%2Flibthumbor-9999.ebuild;fp=dev-python%2Flibthumbor%2Flibthumbor-9999.ebuild;h=b220b43e7d8962918bb0ecccb09f11ef1dfc3ffd;hp=0000000000000000000000000000000000000000;hb=7de8f2b075ab22d332318cb6169d048462653463;hpb=2d2531f9da0aaf15acf085379dc85af65f992cf6 diff --git a/dev-python/libthumbor/libthumbor-9999.ebuild b/dev-python/libthumbor/libthumbor-9999.ebuild new file mode 100644 index 0000000..b220b43 --- /dev/null +++ b/dev-python/libthumbor/libthumbor-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/heynemann/${PN}.git" + SRC_URI="" +else + SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +fi + +DESCRIPTION="Generate Thumbor URLs from Python" +HOMEPAGE="https://github.com/thumbor/libthumbor https://pypi.python.org/pypi/libthumbor" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + " + +DEPEND=" + test? ( + ${RDEPEND} + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/flake8[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/preggy[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + sed -i "s/packages=find_packages()/packages=find_packages(exclude=['tests', 'tests.*'])/" setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + "${EPYTHON}" -c 'import coverage; coverage.main()' run --branch $(command -v nosetests) --nocapture tests || + die "tests failed with ${EPYTHON}" +}