From f098adb66cf744b8e3700990f5ee9857483e010f Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Sun, 26 Jul 2015 14:12:17 +0200 Subject: [PATCH] python-pyyaml: new package [Thomas: - use 'select' rather than 'depends on' for the yaml library dependency - add hash file. - add upstream URL in Config.in help text - rework commit title.] Signed-off-by: Geoffrey Ragot Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/python-pyyaml/Config.in | 7 +++++++ package/python-pyyaml/python-pyyaml.hash | 4 ++++ package/python-pyyaml/python-pyyaml.mk | 15 +++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 package/python-pyyaml/Config.in create mode 100644 package/python-pyyaml/python-pyyaml.hash create mode 100644 package/python-pyyaml/python-pyyaml.mk diff --git a/package/Config.in b/package/Config.in index 840d593d7e..1e39c7445c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -652,6 +652,7 @@ menu "external python modules" source "package/python-pyusb/Config.in" source "package/python-pyxb/Config.in" source "package/python-pyxml/Config.in" + source "package/python-pyyaml/Config.in" source "package/python-pyzmq/Config.in" source "package/python-requests/Config.in" source "package/python-rtslib-fb/Config.in" diff --git a/package/python-pyyaml/Config.in b/package/python-pyyaml/Config.in new file mode 100644 index 0000000000..45e818b7e7 --- /dev/null +++ b/package/python-pyyaml/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_PYYAML + bool "python-pyyaml" + select BR2_PACKAGE_LIBYAML + help + The PyYAML package contains binding to the libyaml API. + + http://pyyaml.org/ diff --git a/package/python-pyyaml/python-pyyaml.hash b/package/python-pyyaml/python-pyyaml.hash new file mode 100644 index 0000000000..a6d9a776a0 --- /dev/null +++ b/package/python-pyyaml/python-pyyaml.hash @@ -0,0 +1,4 @@ +# From https://pypi.python.org/pypi?:action=show_md5&digest=f50e08ef0fe55178479d3a618efe21db +md5 f50e08ef0fe55178479d3a618efe21db PyYAML-3.11.tar.gz +# Locally computed +sha256 c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8 PyYAML-3.11.tar.gz diff --git a/package/python-pyyaml/python-pyyaml.mk b/package/python-pyyaml/python-pyyaml.mk new file mode 100644 index 0000000000..ef10dac922 --- /dev/null +++ b/package/python-pyyaml/python-pyyaml.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pyyaml +# +################################################################################ + +PYTHON_PYYAML_VERSION = 3.11 +PYTHON_PYYAML_SOURCE = PyYAML-$(PYTHON_PYYAML_VERSION).tar.gz +PYTHON_PYYAML_SITE = https://pypi.python.org/packages/source/P/PyYAML/ +PYTHON_PYYAML_SETUP_TYPE = distutils +PYTHON_PYYAML_LICENSE = Python software foundation license v2 +PYTHON_PYYAML_LICENSE_FILES = LICENSE +PYTHON_PYYAML_DEPENDENCIES = libyaml + +$(eval $(python-package)) -- 2.30.2