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.

46 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2008-2015 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-yaml
  9. PKG_VERSION:=6.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PYPI_NAME:=PyYAML
  12. PKG_HASH:=68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2
  13. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:pyyaml_project:pyyaml
  17. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:=Cython
  18. include ../pypi.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python3-package.mk
  21. define Package/python3-yaml
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=YAML parser and emitter for Python
  26. URL:=https://github.com/yaml/pyyaml
  27. DEPENDS:=+libyaml +python3-light
  28. endef
  29. define Package/python3-yaml/description
  30. PyYAML is a YAML parser and emitter for the Python programming language.
  31. endef
  32. PYTHON3_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
  33. PYTHON3_PKG_SETUP_ARGS:=
  34. $(eval $(call Py3Package,python3-yaml))
  35. $(eval $(call BuildPackage,python3-yaml))
  36. $(eval $(call BuildPackage,python3-yaml-src))