From 55a8bac340399e39696590ec315bd585e0e3655d Mon Sep 17 00:00:00 2001 From: j1nx Date: Wed, 9 Jun 2021 20:30:26 +0200 Subject: [PATCH] Add skill-wikipedia-for-humans as pre installed skill --- buildroot-external/Config.in | 4 ++++ .../configs/rpi4_64-gui_defconfig | 3 ++- .../Config.in | 8 ++++++++ .../mycroft-skill-wikipedia-for-humans.mk | 20 +++++++++++++++++++ .../package/python-quebra-frases/Config.in | 6 ++++++ .../python-quebra-frases.hash | 5 +++++ .../python-quebra-frases.mk | 14 +++++++++++++ .../package/python-wikipedia-api/Config.in | 7 +++++++ .../python-wikipedia-api.hash | 5 +++++ .../python-wikipedia-api.mk | 14 +++++++++++++ .../python-wikipedia-for-humans/Config.in | 10 ++++++++++ .../python-wikipedia-for-humans.hash | 3 +++ .../python-wikipedia-for-humans.mk | 13 ++++++++++++ 13 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 buildroot-external/package/mycroft-skill-wikipedia-for-humans/Config.in create mode 100644 buildroot-external/package/mycroft-skill-wikipedia-for-humans/mycroft-skill-wikipedia-for-humans.mk create mode 100644 buildroot-external/package/python-quebra-frases/Config.in create mode 100644 buildroot-external/package/python-quebra-frases/python-quebra-frases.hash create mode 100644 buildroot-external/package/python-quebra-frases/python-quebra-frases.mk create mode 100644 buildroot-external/package/python-wikipedia-api/Config.in create mode 100644 buildroot-external/package/python-wikipedia-api/python-wikipedia-api.hash create mode 100644 buildroot-external/package/python-wikipedia-api/python-wikipedia-api.mk create mode 100644 buildroot-external/package/python-wikipedia-for-humans/Config.in create mode 100644 buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.hash create mode 100644 buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.mk diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in index 15c5b02e..1b76ba39 100644 --- a/buildroot-external/Config.in +++ b/buildroot-external/Config.in @@ -163,6 +163,7 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyowm/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyxdg/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-quantulum3/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-quebra-frases/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-rakekeywords/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-rapidfuzz/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ratelim/Config.in" @@ -181,6 +182,8 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-unidecode/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-uritemplate/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-vlc/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-wikipedia-api/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-wikipedia-for-humans/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-xmlrunner/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-xxhash/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-youtube-dl/Config.in" @@ -217,6 +220,7 @@ menu "Mycroft A.I. Skills" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-query/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-unknown/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-weather/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-wikipedia-for-humans/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-wolfie/Config.in" endmenu endmenu diff --git a/buildroot-external/configs/rpi4_64-gui_defconfig b/buildroot-external/configs/rpi4_64-gui_defconfig index 2b8df9b9..5b874259 100644 --- a/buildroot-external/configs/rpi4_64-gui_defconfig +++ b/buildroot-external/configs/rpi4_64-gui_defconfig @@ -335,7 +335,6 @@ BR2_PACKAGE_PYTHON_FLASK_JSONRPC=y BR2_PACKAGE_PYTHON_FLASK_LOGIN=y BR2_PACKAGE_PYTHON_FLASK_SQLALCHEMY=y BR2_PACKAGE_PYTHON_HUMANIZE=y -BR2_PACKAGE_PYTHON_INFLECTION=y BR2_PACKAGE_PYTHON_IPADDRESS=y BR2_PACKAGE_PYTHON_JSON_SCHEMA_VALIDATOR=y BR2_PACKAGE_PYTHON_JSONMODELS=y @@ -598,6 +597,7 @@ BR2_PACKAGE_PYTHON_SMMAP=y BR2_PACKAGE_PYTHON_SOURCE=y BR2_PACKAGE_PYTHON_TZLOCAL=y BR2_PACKAGE_PYTHON_VLC=y +BR2_PACKAGE_PYTHON_WIKIPEDIA_FOR_HUMANS=y BR2_PACKAGE_PYTHON_XMLRUNNER=y BR2_PACKAGE_PYTHON_YOUTUBE_DL=y BR2_PACKAGE_MYCROFT_EMBEDDED_SHELL=y @@ -627,4 +627,5 @@ BR2_PACKAGE_MYCROFT_SKILL_PARROT=y BR2_PACKAGE_MYCROFT_SKILL_QUERY=y BR2_PACKAGE_MYCROFT_SKILL_UNKNOWN=y BR2_PACKAGE_MYCROFT_SKILL_WEATHER=y +BR2_PACKAGE_MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS=y BR2_PACKAGE_MYCROFT_SKILL_WOLFIE=y diff --git a/buildroot-external/package/mycroft-skill-wikipedia-for-humans/Config.in b/buildroot-external/package/mycroft-skill-wikipedia-for-humans/Config.in new file mode 100644 index 00000000..58995e6c --- /dev/null +++ b/buildroot-external/package/mycroft-skill-wikipedia-for-humans/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS + bool "mycroft-skill-wikipedia-for-humans" + help + Query Wikipedia for answers to all your questions. + Get just a summary, or ask for more to get in-depth + information. + + https://github.com/JarbasSkills/skill-wikipedia-for-humans diff --git a/buildroot-external/package/mycroft-skill-wikipedia-for-humans/mycroft-skill-wikipedia-for-humans.mk b/buildroot-external/package/mycroft-skill-wikipedia-for-humans/mycroft-skill-wikipedia-for-humans.mk new file mode 100644 index 00000000..7baaa151 --- /dev/null +++ b/buildroot-external/package/mycroft-skill-wikipedia-for-humans/mycroft-skill-wikipedia-for-humans.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# mycroft-skill-wikipedia-for-humans +# +################################################################################ + +MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_VERSION = 66fd1e49b45e6db263fba5248131dffa765900fc +MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_SITE = git://github.com/JarbasSkills/skill-wikipedia-for-humans +MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_SITE_METHOD = git +MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRLOCATION = home/mycroft/.local/share/mycroft/skills +MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRNAME = skill-wikipedia-for-humans.jarbasskills + +define MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRLOCATION)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRNAME) + cp -dpfr $(@D)/* $(TARGET_DIR)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRLOCATION)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRNAME) + cp -dpfr $(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DL_DIR)/git/.git* \ + $(TARGET_DIR)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRLOCATION)/$(MYCROFT_SKILL_WIKIPEDIA_FOR_HUMANS_DIRNAME) +endef + +$(eval $(generic-package)) diff --git a/buildroot-external/package/python-quebra-frases/Config.in b/buildroot-external/package/python-quebra-frases/Config.in new file mode 100644 index 00000000..f23c9ef9 --- /dev/null +++ b/buildroot-external/package/python-quebra-frases/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_QUEBRA_FRASES + bool "python-quebra-frases" + help + quebra_frases chunks strings into byte sized pieces. + + https://github.com/OpenJarbas/quebra_frases diff --git a/buildroot-external/package/python-quebra-frases/python-quebra-frases.hash b/buildroot-external/package/python-quebra-frases/python-quebra-frases.hash new file mode 100644 index 00000000..d59a1fef --- /dev/null +++ b/buildroot-external/package/python-quebra-frases/python-quebra-frases.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/quebra_frases/json +md5 2a06b3ea100efacf1345d547982af60d quebra_frases-0.3.7.tar.gz +sha256 ec839ce8825a50ac671d2dff09f1a8563d1686f4954924ad0c6e3cde8e277ed0 quebra_frases-0.3.7.tar.gz +# Locally computed sha256 checksums +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE diff --git a/buildroot-external/package/python-quebra-frases/python-quebra-frases.mk b/buildroot-external/package/python-quebra-frases/python-quebra-frases.mk new file mode 100644 index 00000000..eaa56663 --- /dev/null +++ b/buildroot-external/package/python-quebra-frases/python-quebra-frases.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-quebra-frases +# +################################################################################ + +PYTHON_QUEBRA_FRASES_VERSION = 0.3.7 +PYTHON_QUEBRA_FRASES_SOURCE = quebra_frases-$(PYTHON_QUEBRA_FRASES_VERSION).tar.gz +PYTHON_QUEBRA_FRASES_SITE = https://files.pythonhosted.org/packages/04/8f/dcc0beeb6e164f44e03d1501b70733a1d7f069c9d59354911537d84b71e6 +PYTHON_QUEBRA_FRASES_SETUP_TYPE = setuptools +PYTHON_QUEBRA_FRASES_LICENSE = apache-2.0 +PYTHON_QUEBRA_FRASES_LICENSE_FILES = LICENSE + +$(eval $(python-package)) diff --git a/buildroot-external/package/python-wikipedia-api/Config.in b/buildroot-external/package/python-wikipedia-api/Config.in new file mode 100644 index 00000000..286e8402 --- /dev/null +++ b/buildroot-external/package/python-wikipedia-api/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_WIKIPEDIA_API + bool "python-wikipedia-api" + select BR2_PACKAGE_PYTHON_REQUESTS # runtime + help + Python Wrapper for Wikipedia. + + https://github.com/martin-majlis/Wikipedia-API diff --git a/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.hash b/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.hash new file mode 100644 index 00000000..7c413beb --- /dev/null +++ b/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/wikipedia-api/json +md5 e789ba86bcf9cb3492e6bce318e03a33 Wikipedia-API-0.5.4.tar.gz +sha256 5173d4db641cdb78d96f2b052df2232bcdc00cf32a424c43402958a40f783992 Wikipedia-API-0.5.4.tar.gz +# Locally computed sha256 checksums +sha256 b77333e912b18026a9e27136847f79e54f22e73ab7258a628b6096738d575db8 LICENSE diff --git a/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.mk b/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.mk new file mode 100644 index 00000000..0c0df03e --- /dev/null +++ b/buildroot-external/package/python-wikipedia-api/python-wikipedia-api.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-wikipedia-api +# +################################################################################ + +PYTHON_WIKIPEDIA_API_VERSION = 0.5.4 +PYTHON_WIKIPEDIA_API_SOURCE = Wikipedia-API-$(PYTHON_WIKIPEDIA_API_VERSION).tar.gz +PYTHON_WIKIPEDIA_API_SITE = https://files.pythonhosted.org/packages/ef/3d/289963bbf51f8d00cdf7483cdc2baee25ba877e8b4eb72157c47211e3b57 +PYTHON_WIKIPEDIA_API_SETUP_TYPE = setuptools +PYTHON_WIKIPEDIA_API_LICENSE = MIT +PYTHON_WIKIPEDIA_API_LICENSE_FILES = LICENSE + +$(eval $(python-package)) diff --git a/buildroot-external/package/python-wikipedia-for-humans/Config.in b/buildroot-external/package/python-wikipedia-for-humans/Config.in new file mode 100644 index 00000000..5f3721e5 --- /dev/null +++ b/buildroot-external/package/python-wikipedia-for-humans/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_WIKIPEDIA_FOR_HUMANS + bool "python-wikipedia-for-humans" + select BR2_PACKAGE_PYTHON_INFLECTION # runtime + select BR2_PACKAGE_PYTHON_QUEBRA_FRASES # runtime + select BR2_PACKAGE_PYTHON_REQUESTS # runtime + select BR2_PACKAGE_PYTHON_WIKIPEDIA_API # runtime + help + wikipedia for humans. + + https://github.com/OpenJarbas/wikipedia_for_humans diff --git a/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.hash b/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.hash new file mode 100644 index 00000000..cc6f55d1 --- /dev/null +++ b/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.hash @@ -0,0 +1,3 @@ +# md5, sha256 from https://pypi.org/pypi/wikipedia_for_humans/json +md5 36694417f18a88b0debf1bfcdbde462c wikipedia_for_humans-0.3.0.tar.gz +sha256 4890917442a2f25a733ed8e7d812e5dae864f021994d97d13f4ceaa76bf7221b wikipedia_for_humans-0.3.0.tar.gz diff --git a/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.mk b/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.mk new file mode 100644 index 00000000..694e48f8 --- /dev/null +++ b/buildroot-external/package/python-wikipedia-for-humans/python-wikipedia-for-humans.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# python-wikipedia-for-humans +# +################################################################################ + +PYTHON_WIKIPEDIA_FOR_HUMANS_VERSION = 0.3.0 +PYTHON_WIKIPEDIA_FOR_HUMANS_SOURCE = wikipedia_for_humans-$(PYTHON_WIKIPEDIA_FOR_HUMANS_VERSION).tar.gz +PYTHON_WIKIPEDIA_FOR_HUMANS_SITE = https://files.pythonhosted.org/packages/ef/f3/ceb5e80ad2faa5c18697dc64d7f1ea68bf94faf995def69eeb37b5a20c22 +PYTHON_WIKIPEDIA_FOR_HUMANS_SETUP_TYPE = setuptools +PYTHON_WIKIPEDIA_FOR_HUMANS_LICENSE = MIT + +$(eval $(python-package))