File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
packages/python-pyppeteer Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ From 141055907ad18c2bfbb5a493bc47ac1a36a90504 Mon Sep 17 00:00:00 2001
2
+ From: "Daniel M. Capella" <
[email protected] >
3
+ Date: Sat, 6 Apr 2024 14:55:59 -0400
4
+ Subject: [PATCH] importlib-metadata unused
5
+
6
+ Since https://github.com/pyppeteer/pyppeteer/commit/0323c67ba809237f4788133f3f650448dd6cc993#diff-270ac0e7a75ec37b6ec7513fb3eab5d9a9d1cf4d9559b3865ce4e6832b322eba
7
+ ---
8
+ pyproject.toml | 1 -
9
+ 1 file changed, 1 deletion(-)
10
+
11
+ diff --git a/pyproject.toml b/pyproject.toml
12
+ index a65003f..9432e72 100644
13
+ --- a/pyproject.toml
14
+ +++ b/pyproject.toml
15
+ @@ -46,7 +46,6 @@ pyppeteer-install = 'pyppeteer.command:install'
16
+ [tool.poetry.dependencies]
17
+ python = "^3.8"
18
+ appdirs = "^1.4.3"
19
+ - importlib-metadata = ">=1.4"
20
+ pyee = "^11.0.0"
21
+ tqdm = "^4.42.1"
22
+ urllib3 = "^1.25.8"
23
+ - -
24
+ 2.44.0
25
+
Original file line number Diff line number Diff line change
1
+ # This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2
+ # See COPYING for license details.
3
+
4
+ pkgname=python-pyppeteer
5
+ _pkgname=${pkgname# python-}
6
+ pkgver=2.0.0
7
+ pkgrel=3
8
+ pkgdesc=' Headless chrome/chromium automation library.'
9
+ arch=(' any' )
10
+ url=' https://github.com/pyppeteer/pyppeteer'
11
+ license=(' MIT' )
12
+ depends=(' python-appdirs' ' python-certifi' ' python-pyee' ' python-tqdm'
13
+ ' python-urllib3' ' python-websockets' )
14
+ makedepends=(' python-build' ' python-installer' ' python-poetry-core' )
15
+ source=(" https://github.com/pyppeteer/pyppeteer/archive/$pkgver /$_pkgname -$pkgver .tar.gz"
16
+ ' 0001-importlib-metadata-unused.patch' )
17
+ sha512sums=(' 8d349b159200dd655fa16900a60c66a811f6b00a8c2a88d243dbf20760a118afc4e3c5427478b2e72ea0c6419ef0ad2fade3692d430cc24ecb4157b693dff51a'
18
+ ' 2bbe3b548baf6aaa25a951b90f0326638d01389983a7229ab34bf586e2f80d989bf3dd30fb23cd271d58ce8e5863560f035f5ce08437afe2f81994c99629229c' )
19
+
20
+ prepare () {
21
+ cd $_pkgname -$pkgver
22
+
23
+ patch --forward --strip=1 --input=../0001-importlib-metadata-unused.patch
24
+
25
+ # Remove include list https://github.com/pypa/wheel/issues/92
26
+ sed -i ' /^include/,/]/d' pyproject.toml
27
+ }
28
+
29
+ build () {
30
+ cd $_pkgname -$pkgver
31
+
32
+ python -m build --wheel --skip-dependency-check --no-isolation
33
+ }
34
+
35
+ package () {
36
+ cd $_pkgname -$pkgver
37
+
38
+ python -m installer --destdir=" $pkgdir " dist/* .whl
39
+ }
40
+
You can’t perform that action at this time.
0 commit comments