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.

51 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=django-jsonfield
  9. PKG_VERSION:=2.1.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=jsonfield
  12. PKG_HASH:=ed7c5e1829e9453e24a8bebef1e702ffe402e6def6b326f0e0b88764c59a6dc7
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/django-jsonfield/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=A reusable Django field to store validated JSON in models
  24. URL:=https://github.com/rpkilby/jsonfield
  25. endef
  26. define Package/python3-django-jsonfield
  27. $(call Package/django-jsonfield/Default)
  28. DEPENDS:= \
  29. +PACKAGE_python3-django-jsonfield:python3 \
  30. +PACKAGE_python3-django-jsonfield:python3-django1 \
  31. +PACKAGE_python3-django-jsonfield:python3-six
  32. VARIANT:=python3
  33. endef
  34. define Package/python3-django-jsonfield/description
  35. jsonfield is a reusable model field that allows you to store validated
  36. JSON, automatically handling serialization to and from the database.
  37. .
  38. (Variant for Python3)
  39. endef
  40. $(eval $(call Py3Package,python3-django-jsonfield))
  41. $(eval $(call BuildPackage,python3-django-jsonfield))
  42. $(eval $(call BuildPackage,python3-django-jsonfield-src))