From patchwork Wed Feb 27 07:16:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 1248 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 E144916C93; Wed, 27 Feb 2019 07:18:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 62D8316C48 for ; Wed, 27 Feb 2019 07:18:13 +0000 (GMT) Received: from localhost ([127.0.0.1]:39365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gytTp-0002wT-0o for patchwork@mira.cbaines.net; Wed, 27 Feb 2019 02:18:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gytTj-0002wE-Nx for guix-patches@gnu.org; Wed, 27 Feb 2019 02:18:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gytTi-0007se-9B for guix-patches@gnu.org; Wed, 27 Feb 2019 02:18:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gytTe-0007pA-2i for guix-patches@gnu.org; Wed, 27 Feb 2019 02:18:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gytTd-0003yO-Oh for guix-patches@gnu.org; Wed, 27 Feb 2019 02:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34673] [PATCH] gnu: Add toot. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Feb 2019 07:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34673@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155125183615220 (code B ref -1); Wed, 27 Feb 2019 07:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2019 07:17:16 +0000 Received: from localhost ([127.0.0.1]:53493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gytSt-0003xP-PD for submit@debbugs.gnu.org; Wed, 27 Feb 2019 02:17:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gytSr-0003xB-7F for submit@debbugs.gnu.org; Wed, 27 Feb 2019 02:17:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:34002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gytSm-0007Cv-1D for submit@debbugs.gnu.org; Wed, 27 Feb 2019 02:17:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gytSk-0002pz-U0 for guix-patches@gnu.org; Wed, 27 Feb 2019 02:17:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gytSj-0007BX-Tl for guix-patches@gnu.org; Wed, 27 Feb 2019 02:17:06 -0500 Received: from flashner.co.il ([178.62.234.194]:40646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gytSh-00078g-Vd for guix-patches@gnu.org; Wed, 27 Feb 2019 02:17:05 -0500 Received: from localhost (unknown [188.120.128.87]) by flashner.co.il (Postfix) with ESMTPSA id 4AD15400C5; Wed, 27 Feb 2019 07:16:57 +0000 (UTC) From: Efraim Flashner Date: Wed, 27 Feb 2019 09:16:50 +0200 Message-Id: <20190227071650.5367-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/syndication.scm (toot): New variable. --- gnu/packages/syndication.scm | 45 +++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index a9ccfcd274..d2132ecdf8 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2016, 2017 Efraim Flashner +;;; Copyright © 2016, 2017, 2019 Efraim Flashner ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; ;;; This file is part of GNU Guix. @@ -22,12 +22,16 @@ #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages) + #:use-module (gnu packages check) #:use-module (gnu packages curl) #:use-module (gnu packages documentation) #:use-module (gnu packages gettext) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages python-web) #:use-module (gnu packages sqlite) #:use-module (gnu packages web) #:use-module (gnu packages xml)) @@ -88,3 +92,42 @@ It started life as a fork of the currently unmaintained Newsbeuter.") (define-public newsbeuter ;; Newsbeuter is unmaintained with multiple CVEs, and was forked as Newsboat. (deprecated-package "newsbeuter" newsboat)) + +(define-public toot + (package + (name "toot") + (version "0.21.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "toot" version)) + (sha256 + (base32 + "1dqv5jckaw3r7dnfns3iygwbfnf27x513qrw2rryzl5y79xrzs1x")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "py.test")))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-requests" ,python-requests) + ("python-wcwidth" ,python-wcwidth))) + (home-page "https://github.com/ihabunek/toot/") + (synopsis "Mastodon CLI client") + (description "Interact with Mastodon social network from the command line. +Features include: +@itemize +@item Posting, replying, deleting statuses +@item Support for media uploads, spoiler text, sensitive content +@item Search by account or hash tag +@item Following, muting and blocking accounts +@item Simple switching between authenticated in Mastodon accounts +@end itemize") + (license license:gpl3)))