python-simpleaudio: new package
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 22 Sep 2016 08:07:25 +0000 (10:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 23 Sep 2016 06:32:51 +0000 (08:32 +0200)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-simpleaudio/Config.in [new file with mode: 0644]
package/python-simpleaudio/python-simpleaudio.hash [new file with mode: 0644]
package/python-simpleaudio/python-simpleaudio.mk [new file with mode: 0644]

index 9ca6c152204967944a4bc4ece785260ea8a8eeb0..fe3ac2c935a20f6c924cc68c4f2e108b608a7132 100644 (file)
@@ -769,6 +769,7 @@ menu "External python modules"
        source "package/python-setproctitle/Config.in"
        source "package/python-setuptools/Config.in"
        source "package/python-shutilwhich/Config.in"
+       source "package/python-simpleaudio/Config.in"
        source "package/python-simplejson/Config.in"
        source "package/python-singledispatch/Config.in"
        source "package/python-sip/Config.in"
diff --git a/package/python-simpleaudio/Config.in b/package/python-simpleaudio/Config.in
new file mode 100644 (file)
index 0000000..a3e07f9
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_SIMPLEAUDIO
+       bool "python-simpleaudio"
+       depends on BR2_PACKAGE_PYTHON3
+       depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+       select BR2_PACKAGE_ALSA_LIB
+       help
+         The simplaudio package provides cross-platform, dependency-free
+         audio playback capability for Python 3 on OSX, Windows, and Linux.
+
+         https://github.com/hamiltron/py-simple-audio
+
+comment "python-simpleaudio needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/python-simpleaudio/python-simpleaudio.hash b/package/python-simpleaudio/python-simpleaudio.hash
new file mode 100644 (file)
index 0000000..7e3a7fb
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/simpleaudio/json, sha256 locally computed
+md5     8c1c82fdf7ebba1a79b1243651e451d7 simpleaudio-1.0.1.tar.gz
+sha256  6cc84d50d8192c074505c719722138ae6ea987fd8eee7fd930237cb308962604  simpleaudio-1.0.1.tar.gz
diff --git a/package/python-simpleaudio/python-simpleaudio.mk b/package/python-simpleaudio/python-simpleaudio.mk
new file mode 100644 (file)
index 0000000..b9562ee
--- /dev/null
@@ -0,0 +1,15 @@
+#############################################################
+#
+# python-simpleaudio
+#
+#############################################################
+
+PYTHON_SIMPLEAUDIO_VERSION = 1.0.1
+PYTHON_SIMPLEAUDIO_SOURCE = simpleaudio-$(PYTHON_SIMPLEAUDIO_VERSION).tar.gz
+PYTHON_SIMPLEAUDIO_SITE = https://pypi.python.org/packages/12/f6/327c1af94062a6a6a5ff06dcf9dc689ed81aa07ae757cca3438c3c9e50fe
+PYTHON_SIMPLEAUDIO_LICENSE = MIT
+PYTHON_SIMPLEAUDIO_LICENSE_FILES = LICENSE.txt
+PYTHON_SIMPLEAUDIO_SETUP_TYPE = setuptools
+PYTHON_SIMPLEAUDIO_DEPENDENCIES = alsa-lib
+
+$(eval $(python-package))