Skip to content
Snippets Groups Projects
Commit 6a316aad authored by Natanael Copa's avatar Natanael Copa
Browse files

community/py3-geojson: rebuild against python 3.9

parent 89d50570
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,15 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-geojson
pkgver=2.5.0
pkgrel=1
pkgrel=2
pkgdesc="Python bindings and utilities for GeoJSON"
url="https://github.com/jazzband/geojson"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/g/geojson/geojson-$pkgver.tar.gz"
source="https://pypi.python.org/packages/source/g/geojson/geojson-$pkgver.tar.gz
python-3.9.patch"
builddir="$srcdir/geojson-$pkgver"
build() {
......@@ -24,4 +25,5 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="68d59a6c7d796549dba4e4e71219901c2d939c7f8f5794c1e6be7cadffb006ad99ac658e0159977b3ecc88cf5ef4f908d3837dddc54c70261291f8fa7b8ffbae geojson-2.5.0.tar.gz"
sha512sums="68d59a6c7d796549dba4e4e71219901c2d939c7f8f5794c1e6be7cadffb006ad99ac658e0159977b3ecc88cf5ef4f908d3837dddc54c70261291f8fa7b8ffbae geojson-2.5.0.tar.gz
fbbbfa55963f77e331dee8e4aeb35b529a7dad3da552f23bbf3176d610900a45790bdf1bfc9b46102c773ddd02d56d3763f81b726d49a4acb8e14c7f369fd94d python-3.9.patch"
From d88e32f1b05ad287a8d612e6f61ed7432fc72957 Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Date: Mon, 10 Aug 2020 10:06:14 +0530
Subject: [PATCH] Remove encoding parameter from json.load for Python 3.9
compatibility. (#151)
---
tests/test_features.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_features.py b/tests/test_features.py
index 529de70..e2b56e9 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -82,7 +82,7 @@ def test_feature_class(self):
' "properties": {"summary": "The first feature",'
' "link": "http://example.org/features/1",'
' "title": "Feature 1"}}')
- feature = geojson.loads(json, object_hook=factory, encoding="utf-8")
+ feature = geojson.loads(json, object_hook=factory)
self.assertEqual(repr(type(feature)),
"<class 'geojson.examples.SimpleWebFeature'>")
self.assertEqual(feature.id, '1')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment