From patchwork Wed Mar 10 13:02:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 27598 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 362F327BC51; Wed, 10 Mar 2021 13:03:25 +0000 (GMT) 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_H3,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 2467E27BC50 for ; Wed, 10 Mar 2021 13:03:23 +0000 (GMT) Received: from localhost ([::1]:42014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJyUk-000356-BC for patchwork@mira.cbaines.net; Wed, 10 Mar 2021 08:03:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJyUQ-00034k-7N for guix-patches@gnu.org; Wed, 10 Mar 2021 08:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJyUQ-0000gE-0j for guix-patches@gnu.org; Wed, 10 Mar 2021 08:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJyUP-00049U-Tk for guix-patches@gnu.org; Wed, 10 Mar 2021 08:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46862] Giara - A free-software client for Reddit (v2) Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Mar 2021 13:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46862 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Efraim Flashner Cc: 46862@debbugs.gnu.org Received: via spool by 46862-submit@debbugs.gnu.org id=B46862.161538136015930 (code B ref 46862); Wed, 10 Mar 2021 13:03:01 +0000 Received: (at 46862) by debbugs.gnu.org; 10 Mar 2021 13:02:40 +0000 Received: from localhost ([127.0.0.1]:49103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJyTw-00048l-7V for submit@debbugs.gnu.org; Wed, 10 Mar 2021 08:02:40 -0500 Received: from out2.migadu.com ([188.165.223.204]:20901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJyTs-00048Z-Hj for 46862@debbugs.gnu.org; Wed, 10 Mar 2021 08:02:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1615381346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4tTSDPauXlvfhATTusQRwa3uIQyM3nH29vAksx4lNHM=; b=RcDYduZF9YEbHDbxEeaA4qYJ7wMlI5GSJx6WJX2ZAwr4FXp4yNe/0kWsq6d5jAsobmt4CK tWQqJoN4zOF07Knd3qAlBYLC3Q72mU/fKdeZwddC2MtDrmpoQ4frAvG2WXwuIl6l5DldiQ CDWuOzB5BQ4fk2TRlovtfaqrbXZdxOMx75kdlsjNW12Jc+3QIRD/W5yUbVevXeXy+D21DP DZoPjDAnvRkWFZyFSb9zHyud+eJflJMW2Ai52ofYFirsDSIcffCv0wAD+t4T5DmKWgjWyT jHgJNSRrXK6xYY6lBllG5lF1QqDmKBXnoJbtYfDM9sX6wNtpnAkdkDCHydmhDA== References: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Message-ID: <5aab6d48-b245-018c-65e7-aede1bc139e0@raghavgururajan.name> Date: Wed, 10 Mar 2021 08:02:24 -0500 MIME-Version: 1.0 In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name 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: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches Hi Efraim! > It definitely launched much faster than on my pinephone. A couple of comments inlined. > > Also, I wasn't able to login to giara. I got redirected to icecat and > was able to login and press authorize as expected, but nothing happened > with the giara window and it stayed at 'waiting for authorization'. I'm > not sure if it's because I'm not running a GTK desktop, but I didn't > investigate too far. It appears to be an API issue. Probably reddit changed something in their back-end, like youtube. I'll contact Giara's author. I have applied your suggested changes and attached v2 with this email. Regards, RG. From 249a4ece2948a3ba2f9edb1f7db0f0f07d1831e7 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 10 Mar 2021 07:54:40 -0500 Subject: [PATCH 5/5] gnu: Add giara. * gnu/packages/syndication.scm (giara): New variable. --- gnu/packages/syndication.scm | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 79dbb77018..8e0b871e3d 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -23,6 +23,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (guix build-system cargo) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) @@ -36,6 +37,7 @@ #:use-module (gnu packages crates-io) #:use-module (gnu packages curl) #:use-module (gnu packages documentation) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) @@ -59,6 +61,63 @@ #:use-module (gnu packages xml) #:use-module (srfi srfi-1)) +(define-public giara + (package + (name "giara") + (version "0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.gnome.org/World/giara") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "004qmkfrgd37axv0b6hfh6v7nx4pvy987k5yv4bmlmkj9sbqm6f9")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (lib (string-append out "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages"))) + (wrap-program (string-append bin "giara") + `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH") ,lib)) + `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))) + #t))))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk+:bin" ,gtk+ "bin") + ("pkg-config" ,pkg-config) + ("xmllint" ,libxml2))) + (inputs + `(("glib" ,glib) + ("gtk+" ,gtk+) + ("gtksourceview" ,gtksourceview) + ("libhandy" ,libhandy) + ("python" ,python) + ("python-beautifulsoup" ,python-beautifulsoup4) + ("python-dateutil" ,python-dateutil) + ("python-mistune" ,python-mistune) + ("python-pillow" ,python-pillow) + ("python-praw" ,python-praw) + ("python-pycairo" ,python-pycairo) + ("python-pygobject" ,python-pygobject) + ("python-requests" ,python-requests) + ("webkitgtk" ,webkitgtk))) + (synopsis "Client for Reddit") + (description "Giara is a reddit app, built with Python, GTK and Handy.") + (home-page "https://giara.gabmus.org/") + (license license:gpl3+))) + (define-public newsboat (package (name "newsboat") -- 2.30.1