Date: Sunday, July 31, 2022 @ 09:33:20
  Author: arojas
Revision: 1259251

upgpkg: python-jsonschema-objects 0.4.1-1: Update to 0.4.1

Added:
  python-jsonschema-objects/trunk/markdown.patch
Modified:
  python-jsonschema-objects/trunk/PKGBUILD

----------------+
 PKGBUILD       |   15 +++++++++++----
 markdown.patch |   13 +++++++++++++
 2 files changed, 24 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-07-31 09:09:37 UTC (rev 1259250)
+++ PKGBUILD    2022-07-31 09:33:20 UTC (rev 1259251)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonm...@archlinux.org>
 
 pkgname=python-jsonschema-objects
-pkgver=0.3.15
-pkgrel=2
+pkgver=0.4.1
+pkgrel=1
 pkgdesc="Return the jsonschema-objects true value of an iterable"
 url="https://github.com/cwacek/python-jsonschema-objects";
 license=('MIT')
@@ -10,9 +10,16 @@
 depends=('python-inflection' 'python-markdown' 'python-jsonschema' 
'python-six')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest-runner' 'python-pytest-mock')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/cwacek/python-jsonschema-objects/archive/$pkgver.tar.gz";)
-sha512sums=('b514383bbc52ecfca1238a95a36277ef4c8c4fbf8794729d43d39db8a752ce384528f0c30bbc01daf9fc3678eca26711dd18e588eda8517cb10dcfe0e45ff3e9')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cwacek/python-jsonschema-objects/archive/$pkgver.tar.gz";
+         markdown.patch)
+sha512sums=('4f47424741aa918e514f2570d316fab9feccc0e0860fe5fc6b863d2a75d4f109f80eb03e4f52549e075e83ebbd2ebceab95c5b43966650993e9bb59e94e02b63'
+            
'49952338da8829f05eefcb8cdd2df465c01100c224aeea87e7620bfe761b2ec3cbb55733b9475c116ebd1486508a5a049cf7efa8c33219298bc8e6006deb9118')
 
+prepare() {
+  cd python-jsonschema-objects-$pkgver
+  patch -p1 < ../markdown.patch # Port to recent python-markdown
+}
+
 build() {
   cd python-jsonschema-objects-$pkgver
   python setup.py build

Added: markdown.patch
===================================================================
--- markdown.patch                              (rev 0)
+++ markdown.patch      2022-07-31 09:33:20 UTC (rev 1259251)
@@ -0,0 +1,13 @@
+diff --git a/python_jsonschema_objects/markdown_support.py 
b/python_jsonschema_objects/markdown_support.py
+index bb2ea1b..6b63899 100644
+--- a/python_jsonschema_objects/markdown_support.py
++++ b/python_jsonschema_objects/markdown_support.py
+@@ -45,7 +45,7 @@ class SpecialFencedCodeExtension(Extension):
+         """ Add FencedBlockPreprocessor to the Markdown instance. """
+         md.registerExtension(self)
+ 
+-        if markdown.version_info[0] >= 3:
++        if markdown.__version_info__[0] >= 3:
+             md.preprocessors.register(
+                 SpecialFencePreprocessor(md), "fenced_code_block", 10
+             )

Reply via email to