aboutsummaryrefslogtreecommitdiff
path: root/package/python-keyring
diff options
context:
space:
mode:
authorGravatar Ludovic Desroches <ludovic.desroches@atmel.com>2013-12-11 21:27:03 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-12-15 13:41:33 +0100
commitfba747ca4384f80b0a67f5e6152f608a119ad6c0 (patch)
tree748b7a308ccab0a268ca2754b83b49622213a02f /package/python-keyring
parentb71842cb658cdef0715877bd1d7a4eb1c76d3287 (diff)
downloadbuildroot-fba747ca4384f80b0a67f5e6152f608a119ad6c0.tar.gz
buildroot-fba747ca4384f80b0a67f5e6152f608a119ad6c0.tar.bz2
python-keyring: new package
[Thomas: convert to the Python package infrastructure, improved the .zip handling, added license informations.] Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python-keyring')
-rw-r--r--package/python-keyring/Config.in8
-rw-r--r--package/python-keyring/python-keyring.mk19
2 files changed, 27 insertions, 0 deletions
diff --git a/package/python-keyring/Config.in b/package/python-keyring/Config.in
new file mode 100644
index 0000000000..a6eacf52a5
--- /dev/null
+++ b/package/python-keyring/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_KEYRING
+ bool "python-keyring"
+ depends on BR2_PACKAGE_PYTHON
+ help
+ The Python keyring lib provides a easy way to access the
+ system keyring service from Python.
+
+ https://pypi.python.org/pypi/keyring
diff --git a/package/python-keyring/python-keyring.mk b/package/python-keyring/python-keyring.mk
new file mode 100644
index 0000000000..3f27f20fcc
--- /dev/null
+++ b/package/python-keyring/python-keyring.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# python-keyring
+#
+################################################################################
+
+PYTHON_KEYRING_VERSION = 3.0.5
+PYTHON_KEYRING_SOURCE = keyring-$(PYTHON_KEYRING_VERSION).zip
+PYTHON_KEYRING_SITE = http://pypi.python.org/packages/source/k/keyring/
+PYTHON_KEYRING_SETUP_TYPE = setuptools
+PYTHON_KEYRING_LICENSE = python software foundation license
+
+define PYTHON_KEYRING_EXTRACT_CMDS
+ unzip -d $(@D) $(DL_DIR)/$(PYTHON_KEYRING_SOURCE)
+ mv $(@D)/keyring-$(PYTHON_KEYRING_VERSION)/* $(@D)
+ $(RM) -r $(@D)/keyring-$(PYTHON_KEYRING_VERSION)
+endef
+
+$(eval $(python-package))