Date: Thursday, April 13, 2023 @ 05:26:46
Author: felixonmars
Revision: 1445407
archrelease: copy trunk to community-staging-any
Added:
python-jsonschema-objects/repos/community-staging-any/
python-jsonschema-objects/repos/community-staging-any/PKGBUILD
(from rev 1445406, python-jsonschema-objects/trunk/PKGBUILD)
python-jsonschema-objects/repos/community-staging-any/markdown.patch
(from rev 1445406, python-jsonschema-objects/trunk/markdown.patch)
----------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
markdown.patch | 13 +++++++++++++
2 files changed, 51 insertions(+)
Copied: python-jsonschema-objects/repos/community-staging-any/PKGBUILD (from
rev 1445406, python-jsonschema-objects/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-13 05:26:46 UTC (rev 1445407)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-jsonschema-objects
+pkgver=0.4.1
+pkgrel=2
+pkgdesc="Return the jsonschema-objects true value of an iterable"
+url="https://github.com/cwacek/python-jsonschema-objects"
+license=('MIT')
+arch=('any')
+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"
+
$pkgname-nested-oneof-resolution-and-markdown.patch::https://github.com/cwacek/python-jsonschema-objects/pull/233.patch)
+sha512sums=('4f47424741aa918e514f2570d316fab9feccc0e0860fe5fc6b863d2a75d4f109f80eb03e4f52549e075e83ebbd2ebceab95c5b43966650993e9bb59e94e02b63'
+
'bd9543edd369eb5941cc7831e2a4c939c2e6a163e60525b72fa021b8f75c7c7b0d0bd05fe6ee3c5cfbdaac0fe47c93daf55a72b18954b7dcf6e343f4049ce579')
+
+prepare() {
+ cd python-jsonschema-objects-$pkgver
+ patch -p1 < ../$pkgname-nested-oneof-resolution-and-markdown.patch
+}
+
+build() {
+ cd python-jsonschema-objects-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd python-jsonschema-objects-$pkgver
+ python setup.py pytest --addopts
--doctest-glob='python_jsonschema_objects/*.md'
+}
+
+package() {
+ cd python-jsonschema-objects-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
Copied: python-jsonschema-objects/repos/community-staging-any/markdown.patch
(from rev 1445406, python-jsonschema-objects/trunk/markdown.patch)
===================================================================
--- community-staging-any/markdown.patch (rev 0)
+++ community-staging-any/markdown.patch 2023-04-13 05:26:46 UTC (rev
1445407)
@@ -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
+ )