pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-sparqlwrapper py-sparqlwrapper: fix build with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71beb882862b
branches:  trunk
changeset: 770648:71beb882862b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Dec 06 14:14:35 2021 +0000

description:
py-sparqlwrapper: fix build with latest setuptools

diffstat:

 www/py-sparqlwrapper/Makefile               |   5 ++++-
 www/py-sparqlwrapper/distinfo               |   4 ++--
 www/py-sparqlwrapper/patches/patch-setup.py |  15 ++++++++++++---
 3 files changed, 18 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r ff228ac1cd1e -r 71beb882862b www/py-sparqlwrapper/Makefile
--- a/www/py-sparqlwrapper/Makefile     Mon Dec 06 13:55:41 2021 +0000
+++ b/www/py-sparqlwrapper/Makefile     Mon Dec 06 14:14:35 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2021/05/05 09:54:42 adam Exp $
+# $NetBSD: Makefile,v 1.10 2021/12/06 14:14:35 wiz Exp $
 
 DISTNAME=      SPARQLWrapper-1.8.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -16,5 +16,8 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27      # py-networkx via py-rdflib
 
+post-extract:
+       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs SPARQLWrapper
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ff228ac1cd1e -r 71beb882862b www/py-sparqlwrapper/distinfo
--- a/www/py-sparqlwrapper/distinfo     Mon Dec 06 13:55:41 2021 +0000
+++ b/www/py-sparqlwrapper/distinfo     Mon Dec 06 14:14:35 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:30:48 nia Exp $
+$NetBSD: distinfo,v 1.8 2021/12/06 14:14:35 wiz Exp $
 
 BLAKE2s (SPARQLWrapper-1.8.5.tar.gz) = 0da51c5a997da20da0b3b0ba7ec02667eca4135dfd8ab4cfd9c00d079bd98e91
 SHA512 (SPARQLWrapper-1.8.5.tar.gz) = b0cbe9f7f13a8a0a1c88a17b5966b46e7811acada2712ee03be97808dcb17ba4a71990c07df5d213d21815d7deaf3526381a2cc864d839e561e242be797b6bb2
 Size (SPARQLWrapper-1.8.5.tar.gz) = 89117 bytes
-SHA1 (patch-setup.py) = 86a25a988bd419ee276de2cd865b59acf843c212
+SHA1 (patch-setup.py) = 72fbace7f2d276b274557d74aaef71e2e34ea487
diff -r ff228ac1cd1e -r 71beb882862b www/py-sparqlwrapper/patches/patch-setup.py
--- a/www/py-sparqlwrapper/patches/patch-setup.py       Mon Dec 06 13:55:41 2021 +0000
+++ b/www/py-sparqlwrapper/patches/patch-setup.py       Mon Dec 06 14:14:35 2021 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-setup.py,v 1.1 2021/05/05 09:54:42 adam Exp $
+$NetBSD: patch-setup.py,v 1.2 2021/12/06 14:14:35 wiz Exp $
 
-Fix for Python 3.6.
+Fix for Python 3.6 and latest setuptools.
 
---- setup.py.orig      2021-05-05 09:39:48.000000000 +0000
+--- setup.py.orig      2019-04-18 10:02:26.000000000 +0000
 +++ setup.py
 @@ -23,7 +23,7 @@ _version_re = re.compile(r'__version__\s
  _authors_re = re.compile(r'__authors__\s*=\s*"(.*)"')
@@ -13,3 +13,12 @@
  
      version_match = _version_re.match(line)
      if version_match:
+@@ -75,8 +75,6 @@ setup(
+         'Topic :: Software Development :: Libraries :: Python Modules',
+       ],
+       keywords = ['python', 'sparql', 'rdf', 'rdflib'],
+-      use_2to3 = True,
+-      use_2to3_fixers = ['custom_fixers'],
+       project_urls={
+         'Home': 'https://rdflib.github.io/sparqlwrapper/',
+         'Documentation': 'https://rdflib.github.io/sparqlwrapper/doc/',



Home | Main Index | Thread Index | Old Index