diff options
Diffstat (limited to 'dev-python/pyquery')
-rw-r--r-- | dev-python/pyquery/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pyquery/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pyquery/pyquery-1.2.13.ebuild | 45 |
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/pyquery/Manifest b/dev-python/pyquery/Manifest new file mode 100644 index 000000000000..f8d8217e727f --- /dev/null +++ b/dev-python/pyquery/Manifest @@ -0,0 +1,5 @@ +DIST pyquery-1.2.13.tar.gz 44032 SHA256 fbc95cf422ac79fa00c5107a2f33dff7dd106d6de569493bd938881b75d42e49 SHA512 39a2bfe6f1eaefb6d1a78f73e5bdb4d12a9e223b26f6aff0f979ceaa68005ab08e41bdf11fe808489d22e0506e558621982dc59fa2164cd1e3d8168b0ef8ceb6 WHIRLPOOL 9dfaff7ee82e162bcf3c9ea9ee03320fafee158aabaeea8cd64fb592abf2386e81e240d1f966747707937c614e0164c9f73a70f480e2c6362da02805cee2c746 +EBUILD pyquery-1.2.13.ebuild 1333 SHA256 386183d278d2e7edfe1e2cadc93bbbec22fa7b0dca2fb3eb2f768ca96003e982 SHA512 5c105c9db4cef39eb5ea4021bc2aded6f37660986a45625336797c91d676ced037971175b7d836453538b1d4ca61d39e8d6847cbe227ab399aef5db200020575 WHIRLPOOL 6bd716db779f6dc4059f2e407b58ce0e7d47c603b658259bd6a9e30226f5361e37e9d403b4b265dae8e89bbf9e3d3da3b5da6544324bee3e6a1198465aacf2fc +MISC ChangeLog 4512 SHA256 1cafe41e5cf6e264f17cf163b7b6fa72804965729c5c147ca0c1cb72ea8f1421 SHA512 a5c5b871b064ce42a0aa230e27228481077ea445c005fdead28e09aa28ceb0883908045190f3b56fa0285006de883f38bea7282940ca92ed585684e73f9342f5 WHIRLPOOL fd4a38a5572e6f406e8e9c0de30ce4fc447e7118652b419c9e375aa7cb3de1ea1d360467efdc232ee2563f53a2f71e887543f66069d3c8c06e3f45e1f09a7b9c +MISC ChangeLog-2015 7163 SHA256 bb33fe5548532f8918ae90ed65f5aaae04b2f8b3ada06295da1780b5bf2d9e9b SHA512 a103814e1ab3e601c24d7369ce068fb5937f6dd154a50d21219d57dd031066576f979c8e99b0b5579fd48fc34596732a3252cb98b34efcfe00d5c4524d825a57 WHIRLPOOL 5dfaaee639f02414ab47674569b3237f0e0a4aef6fbadeeff8ec5c00891f79ac1834812ef0a035faa430513acf2940e82c2653755d3a29275d6fd4a222c1381c +MISC metadata.xml 375 SHA256 9d6faed7269d0a77a481905489bc8ed1e47836ceb49a8de904008f68224df2dd SHA512 ebed84e50582171d8a99f7ee1031553a6afc558f5aa6914f2aa5eacccc7efd6c87b284eec803dd81fef3dd91426fd28f93ae21f6cab1e74c9e4541df3904956f WHIRLPOOL 05a6c376de7a7d037754cdaac146ad0b82e20e6a6526cb48e767e89d32d709e3b650f85bdfeba6fa39583a7cfa11fb449215b43ba04446d127756c061f42e4c5 diff --git a/dev-python/pyquery/metadata.xml b/dev-python/pyquery/metadata.xml new file mode 100644 index 000000000000..622094646888 --- /dev/null +++ b/dev-python/pyquery/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pyquery</remote-id> + <remote-id type="github">gawel/pyquery</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyquery/pyquery-1.2.13.ebuild b/dev-python/pyquery/pyquery-1.2.13.ebuild new file mode 100644 index 000000000000..eb195d24bc72 --- /dev/null +++ b/dev-python/pyquery/pyquery-1.2.13.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 eutils + +DESCRIPTION="A jQuery-like library for python" +HOMEPAGE="https://github.com/gawel/pyquery" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc64 ~s390 ~sh sparc x86" +IUSE="test" + +RDEPEND=" + >=dev-python/lxml-2.1[${PYTHON_USEDEP}] + >dev-python/cssselect-0.7.9[${PYTHON_USEDEP}] + >=dev-python/webob-1.1.9[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + dev-python/beautifulsoup[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/webtest[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/restkit[${PYTHON_USEDEP}]' 'python2_7') )" + +python_prepare_all() { + # Disable tests needing a network connection + sed -i -e "s/HAS_REQUEST = True/HAS_REQUEST = False/" tests/test_pyquery.py || die + distutils-r1_python_prepare_all +} + +python_test() { + # The suite, it appears, requires this hard setting of PYTHONPATH! + PYTHONPATH=. nosetests || die "Tests fail with ${EPYTHON}" +} + +pkg_postinst() { + optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup +} |