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.

70 lines
1.9 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 ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/django-jsonfield/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=A reusable Django field to store validated JSON in models
  25. URL:=https://github.com/rpkilby/jsonfield
  26. endef
  27. define Package/python-django-jsonfield
  28. $(call Package/django-jsonfield/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-django-jsonfield:python \
  31. python-django1 \
  32. +PACKAGE_python-django-jsonfield:python-six
  33. VARIANT:=python
  34. MDEPENDS:=python-django1
  35. endef
  36. define Package/python-django-jsonfield/description
  37. jsonfield is a reusable model field that allows you to store validated
  38. JSON, automatically handling serialization to and from the database.
  39. endef
  40. define Package/python3-django-jsonfield
  41. $(call Package/django-jsonfield/Default)
  42. DEPENDS:= \
  43. +PACKAGE_python3-django-jsonfield:python3 \
  44. +PACKAGE_python3-django-jsonfield:python3-django1 \
  45. +PACKAGE_python3-django-jsonfield:python3-six
  46. VARIANT:=python3
  47. endef
  48. define Package/python3-django-jsonfield/description
  49. $(call Package/python-django-jsonfield/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. $(eval $(call PyPackage,python-django-jsonfield))
  54. $(eval $(call BuildPackage,python-django-jsonfield))
  55. $(eval $(call BuildPackage,python-django-jsonfield-src))
  56. $(eval $(call Py3Package,python3-django-jsonfield))
  57. $(eval $(call BuildPackage,python3-django-jsonfield))
  58. $(eval $(call BuildPackage,python3-django-jsonfield-src))