Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/urlwatch/
Date: Thu, 15 Apr 2021 19:34:34
Message-Id: 1618515256.2fec241acfc052a90d1274f8432286110be9988e.sbraz@gentoo
1 commit: 2fec241acfc052a90d1274f8432286110be9988e
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 15 19:21:35 2021 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 15 19:34:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fec241a
7
8 www-misc/urlwatch: add 2.23
9
10 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
11
12 www-misc/urlwatch/Manifest | 1 +
13 www-misc/urlwatch/urlwatch-2.23.ebuild | 72 ++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/www-misc/urlwatch/Manifest b/www-misc/urlwatch/Manifest
17 index 6302256fb8f..37a56d0ae7a 100644
18 --- a/www-misc/urlwatch/Manifest
19 +++ b/www-misc/urlwatch/Manifest
20 @@ -2,3 +2,4 @@ DIST urlwatch-2.17.tar.gz 44178 BLAKE2B 46163b3305a50c3b5165da8f794c252aeb0a3581
21 DIST urlwatch-2.18.tar.gz 48268 BLAKE2B e595a6ed27637463f14f92ecafd123eb0c7cef7102cc35ebbc3334804f7e09cc5f933aa2d54e24acd74a1419d6a8683a0d5fb2456b35ae0797c3d8a12efc33de SHA512 4b44a78fe7f2be6f507487ad5de57d79aa55ee790b29b97f2a364c0f3b58828fea5eb2b08235c15cafd3839b9261a7f148ebc9bceb5bedd1ff8319f7f039bb23
22 DIST urlwatch-2.21.tar.gz 126235 BLAKE2B 9e0f39e51e413355974ce886e019eb86dd07fb9a75c02c5c711ccdbba573c2e6b218cf11b42c714172ad00288ea0219a079fd9b8016d33c29f087537d160e80d SHA512 30d7312c72d839e8ef681a11065f82c2611b650ab1b9b9a33e718bb791712674afb31e4b2e6da97038379fb8cc4ae5bc58b4d0ee6a26c424cba01898b56566b7
23 DIST urlwatch-2.22.tar.gz 136306 BLAKE2B e7f10872e5d7f42ec0ac1073783431c4b0e4fcdcf40884a9f7f52aee36705fbdbaaf5f9e671223715040c6f68cc580f531ba753c9326a2b1380d2fb707f66f1c SHA512 f2c1e0d279689d1e5761203ba139614b972c6266c30877262d59759b0ce63342a820a063f001039848427ea4af4325505c636762cdedb3dc60ebd09e859914f4
24 +DIST urlwatch-2.23.tar.gz 137917 BLAKE2B 330c52cad62985d24b2cc4c7345156abe9d5d369f8b3f4402856eb96a98f75422de49045bc10910e5cc81306744aad2dce7c05667a6f4eeb22b2bba47869f260 SHA512 e54f8fe2d8307ca9f2f222e6a2082d517a330db60e410b7c991283a2bf88aa861306965b23ca644811aa69425ec2281f7f48d5e34047b808c0897f45ffc7fcbc
25
26 diff --git a/www-misc/urlwatch/urlwatch-2.23.ebuild b/www-misc/urlwatch/urlwatch-2.23.ebuild
27 new file mode 100644
28 index 00000000000..4f3817d27e8
29 --- /dev/null
30 +++ b/www-misc/urlwatch/urlwatch-2.23.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{7..9} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="A tool for monitoring webpages for updates"
43 +HOMEPAGE="https://thp.io/2008/urlwatch/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +RDEPEND="
51 + dev-python/appdirs[${PYTHON_USEDEP}]
52 + dev-python/cssselect[${PYTHON_USEDEP}]
53 + dev-python/keyring[${PYTHON_USEDEP}]
54 + dev-python/lxml[${PYTHON_USEDEP}]
55 + dev-python/minidb[${PYTHON_USEDEP}]
56 + dev-python/pyyaml[${PYTHON_USEDEP}]
57 + dev-python/requests[${PYTHON_USEDEP}]
58 +"
59 +BDEPEND="
60 + test? (
61 + dev-python/docutils[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +DOCS=( CHANGELOG.md README.md )
66 +
67 +distutils_enable_sphinx docs/source dev-python/alabaster
68 +distutils_enable_tests pytest
69 +
70 +python_test() {
71 + local skipped_tests=(
72 + # Require the pdftotext module
73 + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/pdf-test.pdf-job12]"
74 + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/pdf-test-password.pdf-job13]"
75 + # Require the pytesseract module
76 + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/ocr-test.png-job26]"
77 + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/ocr-test.png-job27]"
78 + # Requires the jq module
79 + "lib/urlwatch/tests/test_filter_documentation.py::test_url[https://example.net/jobs.json-job28]"
80 + # Skip code quality check
81 + "lib/urlwatch/tests/test_handler.py::test_pep8_conformance"
82 + )
83 + epytest ${skipped_tests[@]/#/--deselect }
84 +}
85 +
86 +pkg_postinst() {
87 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
88 + if ! has_version dev-python/chump; then
89 + elog "Install 'dev-python/chump' to enable Pushover" \
90 + "notifications support"
91 + fi
92 + if ! has_version dev-python/pushbullet-py; then
93 + elog "Install 'dev-python/pushbullet-py' to enable" \
94 + "Pushbullet notifications support"
95 + fi
96 + elog "HTML parsing can be improved by installing one of the following packages"
97 + elog "and changing the html2text subfilter parameter:"
98 + elog "dev-python/beautifulsoup:4"
99 + elog "app-text/html2text"
100 + elog "dev-python/html2text"
101 + elog "www-client/lynx"
102 + fi
103 +}