dev-python/cssutils: Bump to version 1.0.2
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 15 May 2017 08:18:25 +0000 (10:18 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 15 May 2017 09:47:02 +0000 (11:47 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-python/cssutils/Manifest
dev-python/cssutils/cssutils-1.0.2.ebuild [new file with mode: 0644]

index b66e4c5763d9741c0da13859c7b0f57141ec3eab..15d5d79fc87c2703c0ed841096b066fc6b91f2ca 100644 (file)
@@ -1 +1,2 @@
 DIST cssutils-1.0.1.tar.gz 353621 SHA256 d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 SHA512 932a128443cc31f689d91c7c75a04ddc79824b4e5c0779e48d30fa0a3a760cad82d8208264ec95a3b120c38962f2eabf6b3456aa8f81d24e9c9718e95fd6bf83 WHIRLPOOL b3cf4f4e94671a7cef49956f40b6ea67264fdeb305197e125d059c8fa815747a872bd5e15c2745c6fc602dc7d27881a2258219817b2abc7b9953bb3bb371e808
+DIST cssutils-1.0.2.tar.gz 367038 SHA256 a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf SHA512 4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda WHIRLPOOL ffabc8132b9fdc4f3bf6748f8c1892641d0552df4a7ad99b8679fb970903215481d62468a68b151c4f964d05ee2bf589ef00baa7df9de33b8f4aad512bfcc441
diff --git a/dev-python/cssutils/cssutils-1.0.2.ebuild b/dev-python/cssutils/cssutils-1.0.2.ebuild
new file mode 100644 (file)
index 0000000..c07182e
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A CSS Cascading Style Sheets library"
+HOMEPAGE="https://pypi.python.org/pypi/cssutils/ https://bitbucket.org/cthedot/cssutils http://cthedot.de/cssutils/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       test? (
+               dev-python/mock[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
+       )"
+
+python_prepare_all() {
+       # Disable test failing with dev-python/pyxml installed.
+       if has_version dev-python/pyxml; then
+               sed -e "s/test_linecol/_&/" \
+                       -i src/cssutils/tests/test_errorhandler.py \
+                       || die
+       fi
+
+       # requires old pbr, does it really?
+       sed \
+               -e '/tests_require/d' \
+               -i setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       ln -s "${S}/sheets" "${BUILD_DIR}/sheets" || die
+       # esetup.py test
+       # exclude tests that connect to the network
+       set --  nosetests \
+               -e test_parseUrl -e test_handlers -P "${BUILD_DIR}/lib/cssutils/tests"
+       echo "$@"
+       "$@" || die "Testing failed with ${EPYTHON}"
+}