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.

72 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:=python-openpyxl
  9. PKG_VERSION:=2.6.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENCE.rst
  14. PYPI_NAME:=openpyxl
  15. PKG_HASH:=1d2af392cef8c8227bd2ac3ebe3a28b25aba74fd4fa473ce106065f0b73bfe2e
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-openpyxl/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=A Python library to read/write Excel 2010 xlsx/xlsm files
  25. URL:=https://openpyxl.readthedocs.org/
  26. endef
  27. define Package/python-openpyxl
  28. $(call Package/python-openpyxl/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-openpyxl:python \
  31. +PACKAGE_python-openpyxl:python-defusedxml \
  32. +PACKAGE_python-openpyxl:python-et_xmlfile \
  33. +PACKAGE_python-openpyxl:python-jdcal
  34. VARIANT:=python
  35. # The PROVIDES below is deprecated and should be dropped with the next version.
  36. PROVIDES:=openpyxl
  37. endef
  38. define Package/python3-openpyxl
  39. $(call Package/python-openpyxl/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-openpyxl:python3 \
  42. +PACKAGE_python3-openpyxl:python3-defusedxml \
  43. +PACKAGE_python3-openpyxl:python3-et_xmlfile \
  44. +PACKAGE_python3-openpyxl:python3-jdcal
  45. VARIANT:=python3
  46. endef
  47. define Package/python-openpyxl/description
  48. A Python library to read/write Excel 2010 xlsx/xlsm files
  49. endef
  50. define Package/python3-openpyxl/description
  51. $(call Package/python-openpyxl/description)
  52. .
  53. (Variant for Python3)
  54. endef
  55. $(eval $(call PyPackage,python-openpyxl))
  56. $(eval $(call BuildPackage,python-openpyxl))
  57. $(eval $(call BuildPackage,python-openpyxl-src))
  58. $(eval $(call Py3Package,python3-openpyxl))
  59. $(eval $(call BuildPackage,python3-openpyxl))
  60. $(eval $(call BuildPackage,python3-openpyxl-src))