package/python-snappy: new package
authorJames Hilliard <james.hilliard1@gmail.com>
Thu, 13 Feb 2020 06:58:24 +0000 (23:58 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Apr 2020 19:51:54 +0000 (21:51 +0200)
Python library for the snappy compression library from Google.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-snappy/Config.in [new file with mode: 0644]
package/python-snappy/python-snappy.hash [new file with mode: 0644]
package/python-snappy/python-snappy.mk [new file with mode: 0644]

index 644397eff519ec43979accae65ddbe5d3dd8064e..ed6b3b699fe48183f3120e27cf020bd7d28480b9 100644 (file)
@@ -1201,6 +1201,7 @@ F:        package/python-janus/
 F:     package/python-logstash/
 F:     package/python-multidict/
 F:     package/python-pycares/
+F:     package/python-snappy/
 F:     package/python-sockjs/
 F:     package/python-terminaltables/
 F:     package/python-yarl/
index 3657a15fad50f3abc08de5d1bc062924256ca61a..ace7dde860adeb6d5dc08326ca0f30fb0cf1cc5b 100644 (file)
@@ -1149,6 +1149,7 @@ menu "External python modules"
        source "package/python-slob/Config.in"
        source "package/python-smbus-cffi/Config.in"
        source "package/python-smmap2/Config.in"
+       source "package/python-snappy/Config.in"
        source "package/python-socketio/Config.in"
        source "package/python-sockjs/Config.in"
        source "package/python-sortedcontainers/Config.in"
diff --git a/package/python-snappy/Config.in b/package/python-snappy/Config.in
new file mode 100644 (file)
index 0000000..fd7f840
--- /dev/null
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_SNAPPY
+       bool "python-snappy"
+       depends on BR2_INSTALL_LIBSTDCPP # snappy
+       select BR2_PACKAGE_SNAPPY
+       help
+         Python library for the snappy compression library from
+         Google.
+
+         http://github.com/andrix/python-snappy
+
+comment "python-snappy needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-snappy/python-snappy.hash b/package/python-snappy/python-snappy.hash
new file mode 100644 (file)
index 0000000..1e0f960
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/python-snappy/json
+md5    82e09ffd44204096fc70d6de14d0ea2f  python-snappy-0.5.4.tar.gz
+sha256 d9c26532cfa510f45e8d135cde140e8a5603d3fb254cfec273ebc0ecf9f668e2  python-snappy-0.5.4.tar.gz
+# Locally computed sha256 checksums
+sha256 d007cb05f143d99d16d5cd0d1bf291daf037adb36800344e440ec26edb938f9a  LICENSE
diff --git a/package/python-snappy/python-snappy.mk b/package/python-snappy/python-snappy.mk
new file mode 100644 (file)
index 0000000..d087c83
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-snappy
+#
+################################################################################
+
+PYTHON_SNAPPY_VERSION = 0.5.4
+PYTHON_SNAPPY_SITE = https://files.pythonhosted.org/packages/45/35/65d9f8cc537129894b4b32647d80212d1fa342877581c5b8a69872cea8be
+PYTHON_SNAPPY_SETUP_TYPE = setuptools
+PYTHON_SNAPPY_LICENSE = BSD-3-Clause
+PYTHON_SNAPPY_LICENSE_FILES = LICENSE
+PYTHON_SNAPPY_DEPENDENCIES = snappy
+
+$(eval $(python-package))