[arch-commits] Commit in python-harparser/trunk (PKGBUILD python310.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 3 14:13:11 UTC 2021


    Date: Friday, December 3, 2021 @ 14:13:11
  Author: foutrelis
Revision: 1064793

Fix build with Python 3.10

Added:
  python-harparser/trunk/python310.patch
Modified:
  python-harparser/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++++--
 python310.patch |   12 ++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 14:10:45 UTC (rev 1064792)
+++ PKGBUILD	2021-12-03 14:13:11 UTC (rev 1064793)
@@ -9,9 +9,16 @@
 url="https://github.com/JustusW/harparser"
 depends=('python')
 makedepends=('python')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/JustusW/harparser/archive/$pkgver.tar.gz")
-sha512sums=('1aef9ae75b9446d487310a2e4ae4ee8a2aff10c022f68c316307335a5df4346defd73e0d12d0bd4d1a08eeabc90ade9f8d043ee981467bb4fe633184e9f815d9')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/JustusW/harparser/archive/$pkgver.tar.gz"
+        python310.patch)
+sha512sums=('1aef9ae75b9446d487310a2e4ae4ee8a2aff10c022f68c316307335a5df4346defd73e0d12d0bd4d1a08eeabc90ade9f8d043ee981467bb4fe633184e9f815d9'
+            '140b50cd901f952b11caefc3d002a82e75f958da7ba2e782e53c7d0e32b40c23750686954aa7e5554443a602191d4b0fade559e9633226e64dbc5ae267d725c5')
 
+prepare() {
+  cd "$srcdir"/harparser-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd "$srcdir"/harparser-$pkgver
   python setup.py build

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-03 14:13:11 UTC (rev 1064793)
@@ -0,0 +1,12 @@
+diff -upr harparser-0.4.orig/harparser.py harparser-0.4/harparser.py
+--- harparser-0.4.orig/harparser.py	2018-03-15 17:14:35.000000000 +0200
++++ harparser-0.4/harparser.py	2021-12-03 16:11:54.218798617 +0200
+@@ -1,7 +1,7 @@
+ """
+     This module implements HAR as per specification version 1.2.
+ """
+-from collections import MutableMapping
++from collections.abc import MutableMapping
+ from json import dumps, loads
+ from zlib import compress, decompress
+ 



More information about the arch-commits mailing list