summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-05-21 04:53:54 +0800
committerJeffery To <jeffery.to@gmail.com>2020-05-21 04:53:54 +0800
commita9cc46658ae07c94ee71c22240fbc76848ba2d3f (patch)
tree1ae20c4b97fe782d97aae08dd56d52fc62526644 /lang/python
parenta75391575b268b379e6bc552b703dc17a76f402f (diff)
django-jsonfield2: Add package
This package mainly serves to support django-post-office 3.3.0, as that version switched its dependency from jsonfield to jsonfield2 (a fork of jsonfield). The version packaged in this package (3.0.3) is the last version that supports Django 1.11. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/django-jsonfield2/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/lang/python/django-jsonfield2/Makefile b/lang/python/django-jsonfield2/Makefile
new file mode 100644
index 000000000..961d3453e
--- /dev/null
+++ b/lang/python/django-jsonfield2/Makefile
@@ -0,0 +1,49 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+# Please do not update: 3.0.3 is the last version compatible with Django 1.11
+PKG_NAME:=django-jsonfield2
+PKG_VERSION:=3.0.3
+PKG_RELEASE:=1
+
+# Source for 3.0.3 is not available from PyPI
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/rpkilby/jsonfield2/tar.gz/$(PKG_VERSION)?
+PKG_HASH:=4b79ac28738671fe27cadbd537d50130c35a286207d31d8320c7b48b6cda36ca
+
+PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/jsonfield2-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-django-jsonfield2
+ SUBMENU:=Python
+ SECTION:=lang
+ CATEGORY:=Languages
+ TITLE:=A reusable Django field to store validated JSON in models
+ URL:=https://github.com/rpkilby/jsonfield2
+ DEPENDS:=+python3-light +python3-decimal +django
+ CONFLICTS:=python3-django-jsonfield
+endef
+
+define Package/python3-django-jsonfield2/description
+ A modern fork of django-jsonfield, compatible with the latest versions
+ of Django.
+
+ jsonfield2 is a reusable model field that allows you to store
+ validated JSON, automatically handling serialization to and from the
+ database.
+endef
+
+$(eval $(call Py3Package,python3-django-jsonfield2))
+$(eval $(call BuildPackage,python3-django-jsonfield2))
+$(eval $(call BuildPackage,python3-django-jsonfield2-src))