[arch-commits] Commit in (9 files)

Daniel M. Capella polyzen at archlinux.org
Mon Jan 4 10:42:41 UTC 2021


    Date: Monday, January 4, 2021 @ 10:42:40
  Author: polyzen
Revision: 806922

Add python-pyppeteer as optdep of urlwatch

Added:
  python-pyee/
  python-pyee/repos/
  python-pyee/trunk/
  python-pyee/trunk/PKGBUILD
  python-pyppeteer/
  python-pyppeteer/repos/
  python-pyppeteer/trunk/
  python-pyppeteer/trunk/PKGBUILD
Modified:
  urlwatch/trunk/PKGBUILD

---------------------------------+
 python-pyee/trunk/PKGBUILD      |   37 +++++++++++++++++++++++++++++++++++++
 python-pyppeteer/trunk/PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 urlwatch/trunk/PKGBUILD         |    3 ++-
 3 files changed, 75 insertions(+), 1 deletion(-)

Added: python-pyee/trunk/PKGBUILD
===================================================================
--- python-pyee/trunk/PKGBUILD	                        (rev 0)
+++ python-pyee/trunk/PKGBUILD	2021-01-04 10:42:40 UTC (rev 806922)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Josh Holbrook <josh.holbrook at gmail.com>
+
+pkgname=python-pyee
+pkgver=8.1.0
+pkgrel=2
+pkgdesc="Port of node.js's EventEmitter to python"
+arch=('any')
+url=https://github.com/jfhbrook/pyee
+license=('MIT')
+depends=('python-trio' 'python-twisted')
+makedepends=('python-pip' 'python-setuptools' 'python-wheel')
+checkdepends=('python-mock' 'python-pytest'{,-asyncio,-trio})
+source=("https://files.pythonhosted.org/packages/source/p/pyee/pyee-$pkgver.tar.gz")
+sha256sums=('92dacc5bd2bdb8f95aa8dd2585d47ca1c4840e2adb95ccf90034d64f725bfd31')
+b2sums=('5e8553cd1e7fde1dec101e101611faa409c24743cce87d4c2a968207af33ee6af66fae1e2a34453375769d845be25f55c1e78c3beeb65381f5f4b257b15b45f1')
+
+build() {
+  cd pyee-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pyee-$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" pytest
+}
+
+package() {
+  cd pyee-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Added: python-pyppeteer/trunk/PKGBUILD
===================================================================
--- python-pyppeteer/trunk/PKGBUILD	                        (rev 0)
+++ python-pyppeteer/trunk/PKGBUILD	2021-01-04 10:42:40 UTC (rev 806922)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: robertfoster
+# Contributor: Ista Zahn <istazahn[at]gmail[dot]com>
+
+_name=pyppeteer
+pkgname=python-pyppeteer
+pkgver=0.2.3
+pkgrel=1
+pkgdesc='Headless chrome/chromium automation library'
+arch=('any')
+url=https://github.com/pyppeteer/pyppeteer
+license=('MIT')
+depends=('python-appdirs' 'python-pyee' 'python-tqdm' 'python-urllib3'
+         'python-websockets')
+makedepends=('python-pip' 'python-poetry')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('bda1f17bd6693c60421ea3c78e91e7461b42551df5a32f9bcfe2f86c8ba29274')
+b2sums=('28862bdbb04733fe4191166fbf1f754182771f3fdc11a2a1fe327802ccf87ff7ce14a886fef9149e2a9a4dc061ac2733d022298eea7ae00a28c9876c21e33f8c')
+
+prepare() {
+  cd $_name-$pkgver
+  sed -i '/^include/,/]/d' pyproject.toml
+}
+
+build() {
+  cd $_name-$pkgver
+  poetry build --format wheel
+}
+
+package() {
+  cd $_name-$pkgver
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Modified: urlwatch/trunk/PKGBUILD
===================================================================
--- urlwatch/trunk/PKGBUILD	2021-01-04 10:41:36 UTC (rev 806921)
+++ urlwatch/trunk/PKGBUILD	2021-01-04 10:42:40 UTC (rev 806922)
@@ -6,7 +6,7 @@
 
 pkgname=urlwatch
 pkgver=2.22
-pkgrel=1
+pkgrel=2
 pkgdesc='Tool for monitoring webpages for updates'
 arch=('any')
 url=https://thp.io/2008/urlwatch/
@@ -19,6 +19,7 @@
             'python-html2text: for one of the html2text filter methods'
             'python-jsbeautifier: for the beautify filter'
             'python-pdftotext: for the pdf2text filter'
+            'python-pyppeteer: for the browser job'
             'python-pytesseract: for the ocr filter')
 checkdepends=('python-docutils' 'python-pycodestyle' 'python-pytesseract'
               'python-pytest')



More information about the arch-commits mailing list