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.

44 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:=5.3.1
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=PyYAML
  12. PKG_HASH:=b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d
  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. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/python3-yaml
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=YAML parser and emitter for Python
  25. URL:=https://github.com/yaml/pyyaml
  26. DEPENDS:=+libyaml +python3-light
  27. endef
  28. define Package/python3-yaml/description
  29. PyYAML is a YAML parser and emitter for the Python programming language.
  30. endef
  31. PYTHON3_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
  32. PYTHON3_PKG_SETUP_ARGS:=
  33. $(eval $(call Py3Package,python3-yaml))
  34. $(eval $(call BuildPackage,python3-yaml))
  35. $(eval $(call BuildPackage,python3-yaml-src))