From patchwork Sat Sep 18 19:12:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33192 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 03BA027BBE3; Sat, 18 Sep 2021 20:21:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7CDA527BBE1 for ; Sat, 18 Sep 2021 20:21:02 +0100 (BST) Received: from localhost ([::1]:41000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRftV-0006g6-I9 for patchwork@mira.cbaines.net; Sat, 18 Sep 2021 15:21:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRflm-00051o-Da for guix-patches@gnu.org; Sat, 18 Sep 2021 15:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRflm-00080p-41 for guix-patches@gnu.org; Sat, 18 Sep 2021 15:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRfll-0004zj-W4 for guix-patches@gnu.org; Sat, 18 Sep 2021 15:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50663] [PATCH 19/19] gnu: Add python-mycroft-core. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 19:13: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" <50663@debbugs.gnu.org> Received: via spool by 50663-submit@debbugs.gnu.org id=B50663.163199237419180 (code B ref 50663); Sat, 18 Sep 2021 19:13:01 +0000 Received: (at 50663) by debbugs.gnu.org; 18 Sep 2021 19:12:54 +0000 Received: from localhost ([127.0.0.1]:36955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRfle-0004zG-2X for submit@debbugs.gnu.org; Sat, 18 Sep 2021 15:12:54 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:41031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRflc-0004z4-5M for 50663@debbugs.gnu.org; Sat, 18 Sep 2021 15:12:52 -0400 Date: Sat, 18 Sep 2021 19:12:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631992361; bh=BSQAzbsI/pzxp6pjNfIwgjFBunHsVVKiFjFtSvjzu5k=; h=Date:To:From:Reply-To:Subject:From; b=tIg3U1WvBJYxc/piAndKDl4MMBabirfujEsTHi72SDq32qqGEvMRZ2+pNoCUZB1mr W6yHhwfnmfaRoPDUcTZ/nD63ogF+w2K0SXlcGRIbXcgVPsoEe87Grm7YnGtZ9R3euz D0FOGUae8U/d5YSjxAxNME+YdzBX4fnGmHcQYmsw= Message-ID: MIME-Version: 1.0 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-mycroft-core): New variable. --- 2.32.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0af13a0423..fcb936e31e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -202,6 +202,7 @@ #: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) @@ -20725,6 +20726,87 @@ working with iterables.") (propagated-inputs `(("python2-six" ,python2-six-bootstrap))))) +(define-public python-mycroft-core + (package + (name "python-mycroft-core") + (version "21.2.1") + (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)) + (modules '((guix build utils))) + (snippet '(begin + ;; Use newer version of pkg + (substitute* "requirements/requirements.txt" + (("tornado==") "tornado>=")) + (substitute* "requirements/requirements.txt" + (("pyserial==") "pyserial>=")) + (substitute* "requirements/requirements.txt" + (("psutil==") "psutil>=")) + (substitute* "requirements/requirements.txt" + (("pocketsphinx==") "pocketsphinx>=")) + (substitute* "requirements/requirements.txt" + (("python-dateutil==") "python-dateutil>=")) + (substitute* "requirements/requirements.txt" + (("fasteners==") "fasteners>=")) + (substitute* "requirements/requirements.txt" + (("PyYAML==5.4") "PyYAML>=5.3.1")) + (substitute* "requirements/requirements.txt" + (("pyxdg==") "pyxdg>=")) + #t)) + (sha256 + (base32 + "1v5yb48y3zr4s0cgkid8y1zsi6x1wrhy1jfb9axzi090ammgy700")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append "./build/lib:" (getenv "PYTHONPATH")))))))) + (inputs `(("mycroft-mimic" ,mycroft-mimic) + ("pocketsphinx" ,pocketsphinx))) + (propagated-inputs + `(("python-fasteners" ,python-fasteners) + ("python-inflection" ,python-inflection) + ("python-pyxdg" ,python-pyxdg) + ("python-mycroft-messagebus-client" + ,python-mycroft-messagebus-client) + ("python-psutil" ,python-psutil) + ("python-tornado" ,python-tornado-6) + ("python-petact" ,python-petact) + ("python-precise-runner" ,python-precise-runner) + ("python-padaos" ,python-padaos) + ("python-speech-recoginition" ,python-speech-recognition) + ("python-padatious" ,python-padatious) + ("python-msk" ,python-msk) + ("python-pillow" ,python-pillow) + ("python-gtts" ,python-gtts) + ("python-requests-futures" ,python-requests-futures) + ("python-pyserial" ,python-pyserial) + ("python-pocketsphinx" ,python-pocketsphinx) + ("python-adapt-parser" ,python-adapt-parser) + ("python-lingua-franca" ,python-lingua-franca) + ("python-pyyaml" ,python-pyyaml) + ("python-fasteners" ,python-fasteners) + ("python-pyee" ,python-pyee) + ("python-psutil" ,python-psutil) + ("python-fann2" ,python-fann2) + ("python-pyxdg" ,python-pyxdg) + ("python-websocket-client" ,python-websocket-client) + ("python-requests" ,python-requests) + ("python-requests-futures" + ,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")