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.

70 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  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-astral
  9. PKG_VERSION:=1.10.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=astral-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/astral/
  13. PKG_HASH:=d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-astral-$(PKG_VERSION)
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
  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-astral/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Calculations for the position of the sun and moon
  27. URL:=https://github.com/sffjunkie/astral
  28. endef
  29. define Package/python-astral
  30. $(call Package/python-astral/Default)
  31. DEPENDS+= \
  32. +PACKAGE_python-astral:python-light \
  33. +PACKAGE_python-astral:python-pytz
  34. VARIANT:=python
  35. endef
  36. define Package/python3-astral
  37. $(call Package/python-astral/Default)
  38. DEPENDS+= \
  39. +PACKAGE_python3-astral:python3-light \
  40. +PACKAGE_python3-astral:python3-pytz
  41. VARIANT:=python3
  42. endef
  43. define Package/python-astral/description
  44. Astral is a python module for calculating the times of various aspects of the sun and moon.
  45. endef
  46. define Package/python3-astral/description
  47. $(call Package/python-astral/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. $(eval $(call PyPackage,python-astral))
  52. $(eval $(call BuildPackage,python-astral))
  53. $(eval $(call BuildPackage,python-astral-src))
  54. $(eval $(call Py3Package,python3-astral))
  55. $(eval $(call BuildPackage,python3-astral))
  56. $(eval $(call BuildPackage,python3-astral-src))