From patchwork Thu Apr 15 13:57:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Gibb X-Patchwork-Id: 28575 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 9CD4C27BC77; Thu, 15 Apr 2021 14:59:13 +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, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 CC34327BC76 for ; Thu, 15 Apr 2021 14:59:12 +0100 (BST) Received: from localhost ([::1]:43848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX2WV-0005Af-SZ for patchwork@mira.cbaines.net; Thu, 15 Apr 2021 09:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX2WN-00057A-01 for guix-patches@gnu.org; Thu, 15 Apr 2021 09:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX2WM-0001yR-K5 for guix-patches@gnu.org; Thu, 15 Apr 2021 09:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX2WM-0001vf-Hj for guix-patches@gnu.org; Thu, 15 Apr 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47730] [PATCH 4/4] gnu: Add watson. References: <20210412154600.10122-1-mail@sebastiangibb.de> In-Reply-To: <20210412154600.10122-1-mail@sebastiangibb.de> Resent-From: Sebastian Gibb Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Apr 2021 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47730 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47730@debbugs.gnu.org Cc: Sebastian Gibb Received: via spool by 47730-submit@debbugs.gnu.org id=B47730.16184951267391 (code B ref 47730); Thu, 15 Apr 2021 13:59:02 +0000 Received: (at 47730) by debbugs.gnu.org; 15 Apr 2021 13:58:46 +0000 Received: from localhost ([127.0.0.1]:38764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2W4-0001v7-4B for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:58:46 -0400 Received: from www96.your-server.de ([213.133.104.96]:46594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2Vy-0001un-GX for 47730@debbugs.gnu.org; Thu, 15 Apr 2021 09:58:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sebastiangibb.de; s=default_1812; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=RsBFTXII9De5aXT579wyE3enqss80/YC3RSOrJaIRNg=; b=wMc0UT0Zxlj5vL5cnbmC+c+PWz bPpwKLMRvwOrQyW7n/MUe5m4fAfbypNKqm/QMMpl7lo/40xegE0rgMXps4mXQL0kpnUMRg3D4gMv0 H4tvwFO/WGrZYPIwWnUFM+JAS3UnbgelxyGyHF8h2l+MznyRfbR/kcfHjj5kdbaBuf6aNmNUus8a9 BWgZ3jpaMxA7ZZk4A4JWodZ1fvMOOqettbplLn1dW6W6dV2oprG1/vGip+89yyOWQU0QVgJs+MIN0 jprfrJ3xE24e9XniudeihqVYwI+qHet2EbeRLO5aiDkLatkkJ0vteJD2+QsWTOQRKWvQQj/U5i7AP xvu3MHqQ==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www96.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lX2Vr-0008Aj-R7; Thu, 15 Apr 2021 15:58:31 +0200 Received: from [2003:cb:8f24:7900:683a:27d9:5d00:3f71] (helo=localhost) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lX2Vr-000Mr3-Lo; Thu, 15 Apr 2021 15:58:31 +0200 Date: Thu, 15 Apr 2021 15:57:57 +0200 Message-Id: <20210415135757.16173-1-mail@sebastiangibb.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Authenticated-Sender: mail@sebastiangibb.de X-Virus-Scanned: Clear (ClamAV 0.102.4/26141/Thu Apr 15 13:13:26 2021) 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: Sebastian Gibb X-ACL-Warn: , Sebastian Gibb via Guix-patches X-Patchwork-Original-From: Sebastian Gibb via Guix-patches via From: Sebastian Gibb X-getmail-retrieved-from-mailbox: Patches * gnu/packages/time.scm (watson): New variable. --- Dear Maxime, thanks for your review. I removed the #t and the newline in the snyopsis as you suggested. gnu/packages/time.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index dfade604a3..ab9e66285f 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -41,6 +41,8 @@ #:use-module (gnu packages golang) #:use-module (gnu packages perl) #:use-module (gnu packages python) + #:use-module (gnu packages python-check) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages terminals) #:use-module (gnu packages textutils) @@ -540,3 +542,40 @@ calls.") from a starting point you provide. The user can pause and resume the countdown from the text user interface.") (license expat))) + +(define-public watson + (package + (name "watson") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tailordev/watson") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yxqjirv7cpg4hqj4l3a53p3p3kl82bcx6drgvl9v849vcc3l7s0")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest")))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-datafiles" ,python-pytest-datafiles) + ("python-pytest-mock" ,python-pytest-mock))) + (inputs + `(("python-arrow" ,python-arrow) + ("python-click" ,python-click) + ("python-click-didyoumean" ,python-click-didyoumean) + ("python-colorama" ,python-colorama) + ("python-requests" ,python-requests))) + (home-page "https://tailordev.github.io/Watson/") + (synopsis "Command-line time tracker") + (description + "Watson is command-line interface to manage your time. It supports + projects, tagging and reports.") + (license expat)))