aboutsummaryrefslogtreecommitdiff
path: root/package/python-docopt
diff options
context:
space:
mode:
authorGravatar Alvaro G. M <alvaro.gamez@hazent.com>2014-12-09 11:28:13 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-09 19:17:00 +0100
commit765b7e1995fac384d26de269e33ad48697ed747a (patch)
treea4a532e005b87bc5ce9a305a9629876c5a8747dc /package/python-docopt
parent19dd56dbaa67dca49e3a129186d7c43850858700 (diff)
downloadbuildroot-765b7e1995fac384d26de269e33ad48697ed747a.tar.gz
buildroot-765b7e1995fac384d26de269e33ad48697ed747a.tar.bz2
python-docopt: new package
[Thomas: - Remove dependency on python || python3, as we did for all other python modules that work with both Python 2 and Python 3. - Rewrap help text. - Add <pkg>_LICENSE_FILES value.] Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-docopt')
-rw-r--r--package/python-docopt/Config.in11
-rw-r--r--package/python-docopt/python-docopt.mk13
2 files changed, 24 insertions, 0 deletions
diff --git a/package/python-docopt/Config.in b/package/python-docopt/Config.in
new file mode 100644
index 0000000000..a3a482fff1
--- /dev/null
+++ b/package/python-docopt/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_DOCOPT
+ bool "python-docopt"
+ help
+ docopt helps you create most beautiful command-line
+ interfaces easily. The option parser is generated based on
+ the beautiful help message that you write yourself. This way
+ you don't need to write this stupid repeatable parser-code,
+ and instead can write only the help message-- the way you
+ want it.
+
+ https://github.com/docopt/docopt
diff --git a/package/python-docopt/python-docopt.mk b/package/python-docopt/python-docopt.mk
new file mode 100644
index 0000000000..f87d2f85a6
--- /dev/null
+++ b/package/python-docopt/python-docopt.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-docopt
+#
+################################################################################
+
+PYTHON_DOCOPT_VERSION = 0.6.2
+PYTHON_DOCOPT_SITE = $(call github,docopt,docopt,$(PYTHON_DOCOPT_VERSION))
+PYTHON_DOCOPT_LICENSE = MIT
+PYTHON_DOCOPT_LICENSE_FILES = LICENSE-MIT
+PYTHON_DOCOPT_SETUP_TYPE = setuptools
+
+$(eval $(python-package))