package/python-mwscrape: new package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 9 Oct 2016 12:46:21 +0000 (14:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 9 Oct 2016 20:58:49 +0000 (22:58 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Thomas: fix license, it's MPL-2.0, not BSD-3c.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-mwscrape/Config.in [new file with mode: 0644]
package/python-mwscrape/python-mwscrape.hash [new file with mode: 0644]
package/python-mwscrape/python-mwscrape.mk [new file with mode: 0644]

index 66dfb159bea12a2b9e3ef88e304cf4ce0d2bc21e..6172f0f7219e2f551044ed29eb83e47e3bbef9cf 100644 (file)
@@ -710,6 +710,7 @@ menu "External python modules"
        source "package/python-mistune/Config.in"
        source "package/python-msgpack/Config.in"
        source "package/python-mwclient/Config.in"
+       source "package/python-mwscrape/Config.in"
        source "package/python-netaddr/Config.in"
        source "package/python-netifaces/Config.in"
        source "package/python-networkmanager/Config.in"
diff --git a/package/python-mwscrape/Config.in b/package/python-mwscrape/Config.in
new file mode 100644 (file)
index 0000000..273ce9a
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_MWSCRAPE
+       bool "python-mwscrape"
+       depends on BR2_PACKAGE_PYTHON
+       select BR2_PACKAGE_PYTHON_COUCHDB # runtime
+       select BR2_PACKAGE_PYTHON_FUTURES # runtime
+       select BR2_PACKAGE_PYTHON_MWCLIENT # runtime
+       select BR2_PACKAGE_PYTHON_PYLRU # runtime
+       help
+         Download rendered articles from MediaWiki API to CouchDB
+
+         https://github.com/itkach/mwscrape
diff --git a/package/python-mwscrape/python-mwscrape.hash b/package/python-mwscrape/python-mwscrape.hash
new file mode 100644 (file)
index 0000000..b91ef69
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 8de8a5ef257851f6e1e41247f64710f48859a5e3f91ebc7200bb60769f02f296  python-mwscrape-6a58d7801eb1e884fd0516f1adbedbd4481c10e6.tar.gz
diff --git a/package/python-mwscrape/python-mwscrape.mk b/package/python-mwscrape/python-mwscrape.mk
new file mode 100644 (file)
index 0000000..47b943f
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-mwscrape
+#
+################################################################################
+
+PYTHON_MWSCRAPE_VERSION = 6a58d7801eb1e884fd0516f1adbedbd4481c10e6
+PYTHON_MWSCRAPE_SITE = $(call github,itkach,mwscrape,$(PYTHON_MWSCRAPE_VERSION))
+PYTHON_MWSCRAPE_LICENSE = MPL-2.0
+PYTHON_MWSCRAPE_LICENSE_FILES = LICENSE.txt
+PYTHON_MWSCRAPE_SETUP_TYPE = distutils
+
+$(eval $(python-package))