You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.5 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. # Please do not update: 3.0.3 is the last version compatible with Django 1.11
  7. PKG_NAME:=django-jsonfield2
  8. PKG_VERSION:=3.0.3
  9. PKG_RELEASE:=1
  10. # Source for 3.0.3 is not available from PyPI
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/rpkilby/jsonfield2/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=4b79ac28738671fe27cadbd537d50130c35a286207d31d8320c7b48b6cda36ca
  14. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/jsonfield2-$(PKG_VERSION)
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python3-package.mk
  21. define Package/python3-django-jsonfield2
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=A reusable Django field to store validated JSON in models
  26. URL:=https://github.com/rpkilby/jsonfield2
  27. DEPENDS:=+python3-light +python3-decimal +django
  28. CONFLICTS:=python3-django-jsonfield
  29. endef
  30. define Package/python3-django-jsonfield2/description
  31. A modern fork of django-jsonfield, compatible with the latest versions
  32. of Django.
  33. jsonfield2 is a reusable model field that allows you to store
  34. validated JSON, automatically handling serialization to and from the
  35. database.
  36. endef
  37. $(eval $(call Py3Package,python3-django-jsonfield2))
  38. $(eval $(call BuildPackage,python3-django-jsonfield2))
  39. $(eval $(call BuildPackage,python3-django-jsonfield2-src))