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.

76 lines
2.1 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. PKG_SOURCE:=openpyxl-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/openpyxl
  16. PKG_HASH:=1d2af392cef8c8227bd2ac3ebe3a28b25aba74fd4fa473ce106065f0b73bfe2e
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-openpyxl-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-openpyxl/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=A Python library to read/write Excel 2010 xlsx/xlsm files
  27. URL:=https://openpyxl.readthedocs.org/
  28. endef
  29. define Package/python-openpyxl
  30. $(call Package/python-openpyxl/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-openpyxl:python \
  33. +PACKAGE_python-openpyxl:python-defusedxml \
  34. +PACKAGE_python-openpyxl:python-et_xmlfile \
  35. +PACKAGE_python-openpyxl:python-jdcal
  36. VARIANT:=python
  37. # The PROVIDES below is deprecated and should be dropped with the next version.
  38. PROVIDES:=openpyxl
  39. endef
  40. define Package/python3-openpyxl
  41. $(call Package/python-openpyxl/Default)
  42. DEPENDS:= \
  43. +PACKAGE_python3-openpyxl:python3 \
  44. +PACKAGE_python3-openpyxl:python3-defusedxml \
  45. +PACKAGE_python3-openpyxl:python3-et_xmlfile \
  46. +PACKAGE_python3-openpyxl:python3-jdcal
  47. VARIANT:=python3
  48. endef
  49. define Package/python-openpyxl/description
  50. A Python library to read/write Excel 2010 xlsx/xlsm files
  51. endef
  52. define Package/python3-openpyxl/description
  53. $(call Package/python-openpyxl/description)
  54. .
  55. (Variant for Python3)
  56. endef
  57. $(eval $(call PyPackage,python-openpyxl))
  58. $(eval $(call BuildPackage,python-openpyxl))
  59. $(eval $(call BuildPackage,python-openpyxl-src))
  60. $(eval $(call Py3Package,python3-openpyxl))
  61. $(eval $(call BuildPackage,python3-openpyxl))
  62. $(eval $(call BuildPackage,python3-openpyxl-src))