From patchwork Mon Jan 24 22:45:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Goaziou X-Patchwork-Id: 36795 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3347327BBEB; Mon, 24 Jan 2022 22:47:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1B38927BBE9 for ; Mon, 24 Jan 2022 22:46:57 +0000 (GMT) Received: from localhost ([::1]:36886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC86y-0002C2-7T for patchwork@mira.cbaines.net; Mon, 24 Jan 2022 17:46:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC86L-0002AF-45 for guix-patches@gnu.org; Mon, 24 Jan 2022 17:46:18 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC865-00015y-Np for guix-patches@gnu.org; Mon, 24 Jan 2022 17:46:16 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC865-0001Do-NC for guix-patches@gnu.org; Mon, 24 Jan 2022 17:46:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50663] Add Mycroft - Voice Assistant Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jan 2022 22:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50663@debbugs.gnu.org Cc: phodina@protonmail.com X-Debbugs-Original-To: phodina via Guix-patches via X-Debbugs-Original-Cc: "50663@debbugs.gnu.org" <50663@debbugs.gnu.org>, phodina Received: via spool by submit@debbugs.gnu.org id=B.16430643344656 (code B ref -1); Mon, 24 Jan 2022 22:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jan 2022 22:45:34 +0000 Received: from localhost ([127.0.0.1]:46179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC85b-0001D0-Eo for submit@debbugs.gnu.org; Mon, 24 Jan 2022 17:45:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:38982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC85V-0001Cf-La for submit@debbugs.gnu.org; Mon, 24 Jan 2022 17:45:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC85V-00028u-8M for guix-patches@gnu.org; Mon, 24 Jan 2022 17:45:25 -0500 Received: from [2001:4b98:dc4:8::226] (port=34711 helo=relay6-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC85Q-0000y2-AG for guix-patches@gnu.org; Mon, 24 Jan 2022 17:45:24 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id E3CFCC0006; Mon, 24 Jan 2022 22:45:14 +0000 (UTC) From: Nicolas Goaziou References: Date: Mon, 24 Jan 2022 23:45:13 +0100 In-Reply-To: (phodina via Guix-patches via's message of "Wed, 08 Dec 2021 11:48:42 +0000") Message-ID: <87r18wbvnq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::226 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=mail@nicolasgoaziou.fr; helo=relay6-d.mail.gandi.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, phodina via Guix-patches via writes: > The aim of this patch set is to bring in the MyCroft - private and > open Voice Assistant. Thank you. I fixed some descriptions, removed labels from inputs, fixed compilation with GCC 10 (for Mimic). Then I tried to apply the patch set. Alas Mycroft core fails to build. You may want to have a look at it. I'm sending back the updated patches to you, if that helps. Regards, From 51e054b823c60442317bc3487a0c769f14de9d1f Mon Sep 17 00:00:00 2001 Message-Id: <51e054b823c60442317bc3487a0c769f14de9d1f.1643064269.git.mail@nicolasgoaziou.fr> In-Reply-To: References: From: Petr Hodina Date: Fri, 30 Jul 2021 17:21:07 +0200 Subject: [PATCH v2 19/19] gnu: Add python-mycroft-core. * gnu/packages/python-xyz.scm (python-mycroft-core): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/python-xyz.scm | 80 +++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4353797e83..1834152c3c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -210,6 +210,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages search) #:use-module (gnu packages serialization) #:use-module (gnu packages shells) + #:use-module (gnu packages speech) #:use-module (gnu packages sphinx) #:use-module (gnu packages ssh) #:use-module (gnu packages swig) @@ -21968,6 +21969,85 @@ (define-public python2-more-itertools (propagated-inputs `(("python2-six" ,python2-six-bootstrap))))) +(define-public python-mycroft-core + (package + (name "python-mycroft-core") + (version "21.2.2") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/MycroftAI/mycroft-core") + (commit (string-append "release/v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02r0vxw0hsihnvviwn4fyspwky3kwq42f9z455q1s70k0snzhb28")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-requirements + (lambda* (#:key inputs #:allow-other-keys) + ;; Use newer version of pkg + (substitute* "requirements/requirements.txt" + (("mycroft-messagebus-client==") "mycroft-messagebus-client>=") + (("tornado==") "tornado>=") + (("pyserial==") "pyserial>=") + (("psutil==") "psutil>=") + (("padaos==") "padaos>=") + (("precise-runner==") "precise-runner>=") + (("pocketsphinx==") "pocketsphinx>=") + (("python-dateutil==") "python-dateutil>=") + (("fasteners==") "fasteners>=") + (("requests-futures==") "requests-futures>=") + (("pillow==") "pillow>=") + (("PyYAML==5.4") "PyYAML>=5.3.1") + (("pyxdg==") "pyxdg>=") + (("requests>=2.20.0,<2.26.0") "requests>=2.20.0")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "PYTHONPATH" + (string-append "./build/lib:" + (or (getenv "PYTHONPATH") + ""))))))))) + (inputs (list mycroft-mimic pocketsphinx)) + (propagated-inputs + (list python-fasteners + python-inflection + python-pyxdg + python-mycroft-messagebus-client + python-psutil + python-tornado-6 + python-petact + python-precise-runner + python-padaos + python-speech-recognition + python-padatious + python-msk + python-pillow + python-gtts + python-requests-futures + python-pyserial + python-pocketsphinx + python-adapt-parser + python-lingua-franca + python-pyyaml + python-fasteners + python-pyee + python-psutil + python-fann2 + python-pyxdg + python-websocket-client + python-requests + python-requests-futures)) + (home-page "https://github.com/HelloChatterbox/HolmesIV") + (synopsis "Mycroft Core, the Mycroft Artificial Intelligence platform") + (description "This module provides a hackable open source voice assistant - Mycroft") + (license license:asl2.0))) + (define-public python-mycroft-messagebus-client (package (name "python-mycroft-messagebus-client") -- 2.34.0