python-lmdb: new package
authorMauro Condarelli <mc5686@mclink.it>
Sat, 6 Feb 2016 22:59:49 +0000 (23:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Feb 2016 20:56:42 +0000 (21:56 +0100)
Signed-off-by: Mauro Condarelli <mc5686@mclink.it>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
[Thomas:
 - switch to Github, which has a LICENSE file. The issue was reported
   upstream: https://github.com/dw/py-lmdb/issues/108. Then added the
   <pkg>_LICENSE_FILES variable.
 - bump version to 0.89 (instead of 0.88)
 - indicate the proper license, following the SPDX code for the
   OpenLDAP 2.8 license.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-lmdb/Config.in [new file with mode: 0644]
package/python-lmdb/python-lmdb.hash [new file with mode: 0644]
package/python-lmdb/python-lmdb.mk [new file with mode: 0644]

index 9199aea13cec2163fb81752c6aa0f27ba2a26dc6..b69a4815152885d27304e6612b315655a00edb10 100644 (file)
@@ -659,6 +659,7 @@ menu "External python modules"
        source "package/python-json-schema-validator/Config.in"
        source "package/python-keyring/Config.in"
        source "package/python-libconfig/Config.in"
+       source "package/python-lmdb/Config.in"
        source "package/python-lxml/Config.in"
        source "package/python-mad/Config.in"
        source "package/python-mako/Config.in"
diff --git a/package/python-lmdb/Config.in b/package/python-lmdb/Config.in
new file mode 100644 (file)
index 0000000..baf9bce
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_LMDB
+       bool "python-lmdb"
+       select BR2_PACKAGE_PYTHON_CFFI # runtime
+       help
+         Universal Python binding for the LMDB 'Lightning' Database.
+
+         https://pypi.python.org/pypi/lmdb
diff --git a/package/python-lmdb/python-lmdb.hash b/package/python-lmdb/python-lmdb.hash
new file mode 100644 (file)
index 0000000..7c29460
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 abd2b2ae9ecf2fd1e1bc55ef4e8463b5910722fcd70a1bbf34a3e669a74a41a4 python-lmdb-py-lmdb_0.89.tar.gz
diff --git a/package/python-lmdb/python-lmdb.mk b/package/python-lmdb/python-lmdb.mk
new file mode 100644 (file)
index 0000000..62fb046
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-lmdb
+#
+################################################################################
+
+PYTHON_LMDB_VERSION = py-lmdb_0.89
+PYTHON_LMDB_SITE = $(call github,dw,py-lmdb,$(PYTHON_LMDB_VERSION))
+PYTHON_LMDB_LICENSE = OLDAP-2.8
+PYTHON_LMDB_LICENSE_FILES = LICENSE
+PYTHON_LMDB_SETUP_TYPE = setuptools
+PYTHON_LMDB_DEPENDENCIES = host-python-cffi
+
+$(eval $(python-package))