From 3fa0f7064ed153639f029bbb271e73e9fac0a65f Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
Date: Tue, 7 Apr 2020 00:25:28 +0200
Subject: [PATCH] patches/packages: python-jsonschema: add package

---
 .../0015-python-jsonschema-add-package.patch  | 62 +++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 patches/packages/to-upstream/0015-python-jsonschema-add-package.patch

diff --git a/patches/packages/to-upstream/0015-python-jsonschema-add-package.patch b/patches/packages/to-upstream/0015-python-jsonschema-add-package.patch
new file mode 100644
index 000000000..7ec85bff1
--- /dev/null
+++ b/patches/packages/to-upstream/0015-python-jsonschema-add-package.patch
@@ -0,0 +1,62 @@
+From 4a8f5d94936d8c660d36f57f298251b2f0e63e3b Mon Sep 17 00:00:00 2001
+From: Josef Schlehofer <pepe.schlehofer@gmail.com>
+Date: Tue, 7 Apr 2020 00:24:10 +0200
+Subject: [PATCH] python-jsonschema: add package
+
+---
+ lang/python-jsonschema/Makefile | 43 +++++++++++++++++++++++++++++++++
+ 1 file changed, 43 insertions(+)
+ create mode 100644 lang/python-jsonschema/Makefile
+
+diff --git a/lang/python-jsonschema/Makefile b/lang/python-jsonschema/Makefile
+new file mode 100644
+index 000000000..49d55d70b
+--- /dev/null
++++ b/lang/python-jsonschema/Makefile
+@@ -0,0 +1,43 @@
++#
++# Copyright (C) 2018-2020 CZ.NIC z.s.p.o. (https://www.nic.cz/)
++#
++# This is free software, licensed under the GNU General Public License v2.
++# See /LICENSE for more information.
++#
++
++include $(TOPDIR)/rules.mk
++
++PKG_NAME:=python-jsonschema
++PKG_VERSION:=3.2.0
++PKG_RELEASE:=2
++
++PKG_SOURCE:=jsonschema-$(PKG_VERSION).tar.gz
++PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/j/jsonschema/
++PKG_HASH:=c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a
++
++PKG_BUILD_DIR:=$(BUILD_DIR)/jsonschema-$(PKG_VERSION)
++
++PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
++PKG_LICENSE:=MIT
++PKG_LICENSE_FILES:=COPYING
++
++include $(INCLUDE_DIR)/package.mk
++include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
++
++define Package/python3-jsonschema
++  SECTION:=lang
++  CATEGORY:=Languages
++  SUBMENU:=Python
++  TITLE:=An implementation of JSON Schema validation
++  URL:=https://github.com/Julian/jsonschema
++  DEPENDS:=+python3-light +python3-attrs +python3-six +python3-pyrsistent +python3-importlib-metadata
++  VARIANT:=python3
++endef
++
++define Package/python3-jsonschema/description
++  jsonschema is an implementation of JSON Schema for Python.
++endef
++
++$(eval $(call Py3Package,python3-jsonschema))
++$(eval $(call BuildPackage,python3-jsonschema))
++$(eval $(call BuildPackage,python3-jsonschema-src))
+-- 
+2.26.0
+
-- 
GitLab