From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2FxmIxorR2BDaAAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 08:00:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kLByHxorR2DIfwAAbx9fmQ (envelope-from ) for ; Tue, 09 Mar 2021 08:00:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9AE35154AD for ; Tue, 9 Mar 2021 09:00:25 +0100 (CET) Received: from localhost ([::1]:38274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJXI0-0008GG-JL for larch@yhetil.org; Tue, 09 Mar 2021 03:00:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXHe-0008FJ-Gz for guix-patches@gnu.org; Tue, 09 Mar 2021 03:00:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJXHe-0001Kh-8I for guix-patches@gnu.org; Tue, 09 Mar 2021 03:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJXHe-0000Pj-7U for guix-patches@gnu.org; Tue, 09 Mar 2021 03:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46862] Giara - A free-software client for Reddit Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Mar 2021 08:00:02 +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: Raghav Gururajan Cc: 46862@debbugs.gnu.org Received: via spool by 46862-submit@debbugs.gnu.org id=B46862.16152767981553 (code B ref 46862); Tue, 09 Mar 2021 08:00:02 +0000 Received: (at 46862) by debbugs.gnu.org; 9 Mar 2021 07:59:58 +0000 Received: from localhost ([127.0.0.1]:45536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJXHW-0000Ou-DU for submit@debbugs.gnu.org; Tue, 09 Mar 2021 02:59:58 -0500 Received: from flashner.co.il ([178.62.234.194]:43868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJXHT-0000Oc-Hk for 46862@debbugs.gnu.org; Tue, 09 Mar 2021 02:59:53 -0500 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 6E0484020F; Tue, 9 Mar 2021 07:59:45 +0000 (UTC) Date: Tue, 9 Mar 2021 09:59:12 +0200 From: Efraim Flashner Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D0zM8VZ6115KVi1s" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615276825; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=WhIU4MzS6vtemwMxv7yFkX07nmfvGYKzhCAtB1RRpCk=; b=F0zg0npyRlf/DlI5wse8D96zILhJfBanxCiKwtQPOrazLUqa/dPfyBqqs/jZ2Vf3FoGssV LjsNlsnVoxvvsMAW2eBHVBoTSGohENc3eTBghRThLxfhJlzG6TGPSyrKTuFxwl4qdYt0e7 0VkBssQJ7/yEe1Qd3Ow2ga3rHf7t+R1Qj2PAo0rUrKzIuGD4SlIiXsIfBWYptqAAl0FKtw qK5HLLN3NzledMeNlL1Ld+E4FGbZH2/gqKSDn6MRFvrZijvRzmM3BNxfEE1uWoZWjj+sTO W5a7y/FkbhKg7/IHnbrG7I4NQUL1jWz8MdI4qwwt6ABz4zXvdex+rTI6T0SDxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615276825; a=rsa-sha256; cv=none; b=MLz+ZWgWwia71u3XJBZyIO7vrGxqH97sBqca9oo746RHs4JcxsHemwHzMiwd/sLAvZdPdL 4rremgBNGgNZqiDOWf+T+Z6+BpHyBGI+f4VD2b4VJSyJQp7x+8LW3vYUPr7j44isUGgCoE TL0tEl1CH3dmOh0Xgrl9P/BoRUVokRmfae5P3T3DYk0ZfOXbdr6Z9HwTjXVkvOvYEpFQWV aobg+0GHcj/+pJXTqHX2wdK0qrKWk90HIHdEWtjoB2vtcifOY1QjumJieNlcEvuPDze+Hh EKsaSHVkYky4cLT6XFwZ6QAIeta+vJWT7tLjVnAXNsZDENRb0E6rqPG6Ce+Rsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 9AE35154AD X-Spam-Score: -3.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5/+uUa+cdeAV --D0zM8VZ6115KVi1s Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable It definitely launched much faster than on my pinephone. A couple of commen= ts 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. On Mon, Mar 01, 2021 at 04:44:23PM -0500, Raghav Gururajan via Guix-patches= via wrote: > From 20c12e445cdca94ca8277b89d16c69ad5cd1af79 Mon Sep 17 00:00:00 2001 > From: Raghav Gururajan > Date: Mon, 1 Mar 2021 15:10:06 -0500 > Subject: [PATCH 1/5] gnu: Add python-betamax-serializers. >=20 > * gnu/packages/python-check.scm (python-betamax-serializers): New variabl= e. > --- > gnu/packages/python-check.scm | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) >=20 > diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm > index c23741825b..ac96310cd0 100644 > --- a/gnu/packages/python-check.scm > +++ b/gnu/packages/python-check.scm > @@ -40,6 +40,27 @@ > #:use-module (guix download) > #:use-module (guix build-system python)) > =20 This package should be in python-web with the other python-betamax packages > +(define-public python-betamax-serializers > + (package > + (name "python-betamax-serializers") > + (version "0.2.1") > + (source > + (origin > + (method url-fetch) > + (uri > + (pypi-uri "betamax-serializers" version)) This can be on one line > + (sha256 > + (base32 "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l"))= )) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-betamax" ,python-betamax) > + ("python-pyyaml" ,python-pyyaml))) > + (synopsis "Set of third-party serializers for Betamax") > + (description "Betamax-Serializers are an experimental set of Seriali= zers for > +Betamax that may possibly end up in the main package.") > + (home-page "https://gitlab.com/betamax/serializers") > + (license license:asl2.0))) > + > (define-public python-coveralls > (package > (name "python-coveralls") > --=20 > 2.30.1 >=20 > From 2bc948be9324add1b6b15795c5d65dda2d956d6e Mon Sep 17 00:00:00 2001 > From: Raghav Gururajan > Date: Mon, 1 Mar 2021 15:33:33 -0500 > Subject: [PATCH 2/5] gnu: Add python-testfixtures. >=20 > * gnu/packages/python-check.scm (python-testfixtures): New variable. > --- > gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) >=20 > diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm > index ac96310cd0..10b35846f5 100644 > --- a/gnu/packages/python-check.scm > +++ b/gnu/packages/python-check.scm > @@ -28,7 +28,9 @@ > (define-module (gnu packages python-check) > #:use-module (gnu packages) > #:use-module (gnu packages check) > + #:use-module (gnu packages django) > #:use-module (gnu packages openstack) > + #:use-module (gnu packages python-build) > #:use-module (gnu packages python-web) > #:use-module (gnu packages python-xyz) > #:use-module (gnu packages web) > @@ -40,6 +42,32 @@ > #:use-module (guix download) > #:use-module (guix build-system python)) > =20 > +(define-public python-testfixtures > + (package > + (name "python-testfixtures") > + (version "6.17.1") > + (source > + (origin > + (method url-fetch) > + (uri > + (pypi-uri "testfixtures" version)) This can be on one line > + (sha256 > + (base32 "1nlv2hz20czjp4a811ichl5kwg99rh84l0mw9wq4rk3idzfs1hsy"))= )) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f)) ; PyTest-Django fails to build in master > + (native-inputs > + `(("python-pytest" ,python-pytest) > + ("python-pytest-cov" ,python-pytest-cov) > + ;;("python-pytest-django" ,python-pytest-django) > + ("python-twine" ,python-twine) > + ("python-wheel" ,python-wheel))) > + (synopsis "Tests components for Python") > + (description "Testfixtures is a collection of helpers and mock objec= ts that > +are useful when writing automated tests in Python.") > + (home-page "https://testfixtures.readthedocs.io/en/latest/") > + (license license:expat))) > + > (define-public python-betamax-serializers > (package > (name "python-betamax-serializers") > --=20 > 2.30.1 >=20 > From 8ff9766b7228d5772c5b7f5449031163e8e7ecd1 Mon Sep 17 00:00:00 2001 > From: Raghav Gururajan > Date: Mon, 1 Mar 2021 15:37:23 -0500 > Subject: [PATCH 3/5] gnu: Add python-prawcore. >=20 > * gnu/packages/python-web.scm (python-prawcore): New variable. > --- > gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) >=20 > diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm > index ab3769b360..27b31143ea 100644 > --- a/gnu/packages/python-web.scm > +++ b/gnu/packages/python-web.scm > @@ -91,6 +91,32 @@ > #:use-module ((guix licenses) #:prefix license:) > #:use-module (srfi srfi-1)) > =20 > +(define-public python-prawcore > + (package > + (name "python-prawcore") > + (version "2.0.0") > + (source > + (origin > + (method url-fetch) > + (uri > + (pypi-uri "prawcore" version)) This can be on one line > + (sha256 > + (base32 "1l9nrn4s03xl8fvkyybdk86bm9cyyk43alkxf9g014a9ynvdk65l"))= )) > + (build-system python-build-system) > + (native-inputs > + `(("python-betamax" ,python-betamax) > + ("python-betamax-matchers" ,python-betamax-matchers) > + ("python-betamax-serializers" ,python-betamax-serializers) > + ("python-mock" ,python-mock) > + ("python-pytest" ,python-pytest) > + ("python-testfixtures" ,python-testfixtures))) > + (propagated-inputs > + `(("python-requests" ,python-requests))) > + (synopsis "Core component of PRAW") > + (description "PRAWcore is a low-level communication layer used by PR= AW.") > + (home-page "https://praw.readthedocs.io/en/latest/") > + (license license:bsd-2))) > + > (define-public python-aiohttp > (package > (name "python-aiohttp") > --=20 > 2.30.1 >=20 > From a5e10670128fb2a7fcffa4a03e979231cc403a6d Mon Sep 17 00:00:00 2001 > From: Raghav Gururajan > Date: Mon, 1 Mar 2021 16:01:21 -0500 > Subject: [PATCH 4/5] gnu: Add python-praw. >=20 > * gnu/packages/python-web.scm (python-raw): New variable. > --- > gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) >=20 > diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm > index 27b31143ea..9acafd14e3 100644 > --- a/gnu/packages/python-web.scm > +++ b/gnu/packages/python-web.scm > @@ -117,6 +117,34 @@ > (home-page "https://praw.readthedocs.io/en/latest/") > (license license:bsd-2))) > =20 > +(define-public python-praw > + (package > + (name "python-praw") > + (version "7.2.0") > + (source > + (origin > + (method url-fetch) > + (uri > + (pypi-uri "praw" version)) This can be on one line > + (sha256 > + (base32 "0ll1a0n8xs8gykizdsfrw63jp6bc39ab0pk3yzwcak96fyxh0ij3"))= )) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f)) ; https://github.com/praw-dev/praw/issues/1699 There were a couple of failing tests, but I was able to run the test suite with the following code: (arguments `(;#:tests? #f #:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest")) #t))))) > + (native-inputs > + `(("python-betamax" ,python-betamax) > + ("python-betamax-matchers" ,python-betamax-matchers) > + ("python-pytest" ,python-pytest))) > + (propagated-inputs > + `(("python-prawcore" ,python-prawcore) > + ("python-websocket-client" ,python-websocket-client))) > + (synopsis "Python Reddit API Wrapper") > + (description "PRAW is a Python package that allows for simple access= to > +Reddit=E2=80=99s API. It aims to be easy to use and internally follows = all of Reddit=E2=80=99s > +API rules.") > + (home-page "https://praw.readthedocs.io/en/latest/") > + (license license:bsd-2))) > + > (define-public python-aiohttp > (package > (name "python-aiohttp") > --=20 > 2.30.1 >=20 > From d7a3665d04a70e1d0a09da805a3d3974e8c9ce5c Mon Sep 17 00:00:00 2001 > From: Raghav Gururajan > Date: Mon, 1 Mar 2021 16:40:12 -0500 > Subject: [PATCH 5/5] gnu: Add giara. This should probably be in syndication.scm >=20 > * gnu/packages/web.scm (giara): New variable. > --- > gnu/packages/web.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 67 insertions(+) >=20 > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index 3e9fdbb7f6..cbceb36dea 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -164,13 +164,80 @@ > #:use-module (gnu packages sphinx) > #:use-module (gnu packages texinfo) > #:use-module (gnu packages textutils) > + #:use-module (gnu packages time) > #:use-module (gnu packages tls) > #:use-module (gnu packages valgrind) > #:use-module (gnu packages version-control) > #:use-module (gnu packages vim) > + #:use-module (gnu packages webkit) > #:use-module (gnu packages xml) > #:use-module ((srfi srfi-1) #:select (delete-duplicates))) > =20 > +(define-public giara > + (package > + (name "giara") > + (version "0.3") > + (source > + (origin > + (method git-fetch) > + (uri > + (git-reference This can be on the previous line > + (url "https://gitlab.gnome.org/World/giara") > + (commit version))) > + (file-name > + (git-file-name name version)) Ditto > + (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"))) > + (for-each > + (lambda (program) > + (wrap-program program > + `("PYTHONPATH" =3D (,(getenv "PYTHONPATH") ,lib)) > + `("GI_TYPELIB_PATH" =3D (,(getenv "GI_TYPELIB_PATH")= )))) > + (append > + (map (lambda (prog) (string-append bin prog)) > + '("giara")))) There's only one binary to wrap, so this can be shorter (wrap-program (string-append bin "giara") `("PYTHONPATH" ... Also, should it be wrapped with prefix instead of an absolute value? Then other environment variables affecting those ones would be honored. > + #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 > + `( ;; ("appstream-cli" ,appstream-cli) > + ("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 Hand= y.") > + (home-page "https://giara.gabmus.org/") > + (license license:gpl3+))) > + > (define-public qhttp > (package > (name "qhttp") > --=20 > 2.30.1 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --D0zM8VZ6115KVi1s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBHKs4ACgkQQarn3Mo9 g1EEQg/8DuesgxMpp4U+ANsxZU8ZDQN8YZm27/rBU3TqZM038M8dEb9CqeXiVwqr 7hdWJ1KaATq320cmXBO4t1bJcECg5m5mcyln/DoOvexELoN3+1osnkElcgpFWQLF 1OB6Tu52fC/pyXI6meP3da9xQkOEvfCC93w5IWGEjyHMzfvW3GHEPofNLQDda5Od XhEPQyStfdiaCsvugUqLDLv4NBUMLQ8rBeYMSSdosit/PrkQs3T/wAgtXLq2jGsF EGE6IIA7up7VE2XA/V/9x1JPKlPZBsI+GlqMDBJ2pu70JFbTFs1shRplM7CSGhHR f53rt/gW139fs+ejJF6U9wgBmk2iOnowQ4nLt6iPmlb3RvZU/SE+JDjNploO+SeT omXmMlhMrzAKhk6YXaNKJbmq9jCfW4ag81e2AYfTUFstibOHvH7L48r39EXpOn7K blm7ncAucf3q+5NF8UfLs0nREeNyUdjS836w1UsIM15q0DVZ9OQ8OQudwJqB57Ko BODkWDDPJdug9CTMlDcyuFrYI/pRp9PMWxD4wq444xIZ08UplRdBEXQmnmRXErkB FNPoarCXip32BUISJZc4MxzCSDSybIPqmPFAqPNh5tWxLyxTLcwciHv8mjWUWz4a /6XUzfkBPw2RHuFKF+r97FlkRu+1z73GSjDQZbnI2jAQmUkICR8= =+3ar -----END PGP SIGNATURE----- --D0zM8VZ6115KVi1s--