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.

60 lines
1.6 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.8.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-2-Clause
  12. PYPI_NAME:=$(PKG_NAME)
  13. PKG_HASH:=c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. define Package/python-dateutil/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Extensions to the standard Python datetime module
  24. URL:=https://dateutil.readthedocs.org/
  25. endef
  26. define Package/python-dateutil
  27. $(call Package/python-dateutil/Default)
  28. DEPENDS:=+PACKAGE_python-dateutil:python +PACKAGE_python-dateutil:python-six
  29. VARIANT:=python
  30. endef
  31. define Package/python-dateutil/description
  32. Extensions to the standard Python datetime module
  33. endef
  34. define Package/python3-dateutil
  35. $(call Package/python-dateutil/Default)
  36. DEPENDS:=+PACKAGE_python3-dateutil:python3 +PACKAGE_python3-dateutil:python3-six
  37. VARIANT:=python3
  38. endef
  39. define Package/python3-dateutil/description
  40. $(call Package/python-dateutil/description)
  41. .
  42. (Variant for Python3)
  43. endef
  44. $(eval $(call PyPackage,python-dateutil))
  45. $(eval $(call BuildPackage,python-dateutil))
  46. $(eval $(call BuildPackage,python-dateutil-src))
  47. $(eval $(call Py3Package,python3-dateutil))
  48. $(eval $(call BuildPackage,python3-dateutil))
  49. $(eval $(call BuildPackage,python3-dateutil-src))