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.

68 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2007-2017 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-restframework39
  9. PKG_VERSION:=3.9.4
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=djangorestframework
  12. PKG_HASH:=c12869cfd83c33d579b17b3cb28a2ae7322a53c3ce85580c2a2ebe4e3f56c4fb
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE.md
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/django-restframework39/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Web APIs for Django, made easy.
  25. URL:=https://www.django-rest-framework.org
  26. endef
  27. define Package/python-django-restframework39
  28. $(call Package/django-restframework39/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-django-restframework39:python \
  31. python-django1
  32. VARIANT:=python
  33. MDEPENDS:=python-django1
  34. endef
  35. define Package/python-django-restframework39/description
  36. Web APIs for Django, made easy. (3.9 series)
  37. endef
  38. define Package/python3-django-restframework39
  39. $(call Package/django-restframework39/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-django-restframework39:python3 \
  42. +PACKAGE_python3-django-restframework39:python3-django1
  43. CONFLICTS:=python3-django-restframework
  44. VARIANT:=python3
  45. endef
  46. define Package/python3-django-restframework39/description
  47. $(call Package/python-django-restframework39/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. $(eval $(call PyPackage,python-django-restframework39))
  52. $(eval $(call BuildPackage,python-django-restframework39))
  53. $(eval $(call BuildPackage,python-django-restframework39-src))
  54. $(eval $(call Py3Package,python3-django-restframework39))
  55. $(eval $(call BuildPackage,python3-django-restframework39))
  56. $(eval $(call BuildPackage,python3-django-restframework39-src))