Skip to content
Snippets Groups Projects
Verified Commit 3fa0f706 authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

patches/packages: python-jsonschema: add package

parent 23f36ed3
Branches
Tags
2 merge requests!176configs/common: allow setting hostapd debug level to highest level,!140patches/packages: python-jsonschema: add package
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment