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.

47 lines
1.3 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. PKG_NAME:=django-ranged-response
  7. PKG_VERSION:=0.2.0
  8. PKG_RELEASE:=7
  9. PYPI_NAME:=$(PKG_NAME)
  10. PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985
  11. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python3-package.mk
  17. define Package/django-ranged-response/Default
  18. SUBMENU:=Python
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=Add Content-Range: to FileResponse
  22. URL:=https://github.com/i3thuan5/django-ranged-response
  23. endef
  24. define Package/python3-django-ranged-response
  25. $(call Package/django-ranged-response/Default)
  26. DEPENDS:= \
  27. +PACKAGE_python3-django-ranged-response:python3 \
  28. +PACKAGE_python3-django-ranged-response:python3-django1
  29. VARIANT:=python3
  30. endef
  31. define Package/python3-django-ranged-response/description
  32. Modified Django FileResponse that adds Content-Range headers.
  33. .
  34. (Variant for Python3)
  35. endef
  36. $(eval $(call Py3Package,python3-django-ranged-response))
  37. $(eval $(call BuildPackage,python3-django-ranged-response))
  38. $(eval $(call BuildPackage,python3-django-ranged-response-src))