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.

63 lines
1.8 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-dateutil
  9. PKG_VERSION:=2.7.5
  10. PKG_RELEASE:=3
  11. PKG_LICENSE:=BSD-2-Clause
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/python-dateutil
  14. PKG_HASH:=88f9287c0174266bb0d8cedd395cfba9c58e87e5ad86b2ce58859bc11be3cf02
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-dateutil-$(PKG_VERSION)
  16. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  21. define Package/python-dateutil/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Extensions to the standard Python datetime module
  26. URL:=https://dateutil.readthedocs.org/
  27. endef
  28. define Package/python-dateutil
  29. $(call Package/python-dateutil/Default)
  30. DEPENDS:=+PACKAGE_python-dateutil:python +PACKAGE_python-dateutil:python-six
  31. VARIANT:=python
  32. endef
  33. define Package/python-dateutil/description
  34. Extensions to the standard Python datetime module
  35. endef
  36. define Package/python3-dateutil
  37. $(call Package/python-dateutil/Default)
  38. DEPENDS:=+PACKAGE_python3-dateutil:python3 +PACKAGE_python3-dateutil:python3-six
  39. VARIANT:=python3
  40. endef
  41. define Package/python3-dateutil/description
  42. $(call Package/python-dateutil/description)
  43. .
  44. (Variant for Python3)
  45. endef
  46. $(eval $(call PyPackage,python-dateutil))
  47. $(eval $(call BuildPackage,python-dateutil))
  48. $(eval $(call BuildPackage,python-dateutil-src))
  49. $(eval $(call Py3Package,python3-dateutil))
  50. $(eval $(call BuildPackage,python3-dateutil))
  51. $(eval $(call BuildPackage,python3-dateutil-src))