From unknown Sun Jun 22 00:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39396] [PATCH] gnu: Add grip. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2020 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39396@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158067213526166 (code B ref -1); Sun, 02 Feb 2020 19:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2020 19:35:35 +0000 Received: from localhost ([127.0.0.1]:40569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyL1q-0006ny-O1 for submit@debbugs.gnu.org; Sun, 02 Feb 2020 14:35:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:52088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyL1p-0006no-0f for submit@debbugs.gnu.org; Sun, 02 Feb 2020 14:35:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33329) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyL1m-0004Lf-ET for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyL1k-00047P-So for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:30 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:50348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iyL1k-0003wi-Jm for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:28 -0500 Received: (qmail 26671 invoked by uid 1009); 2 Feb 2020 20:35:20 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25713. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.023534 secs); 02 Feb 2020 19:35:20 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 2 Feb 2020 20:35:20 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Sun, 2 Feb 2020 20:35:45 +0100 Message-Id: <20200202193545.17621-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 37.59.186.212 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/python-web.scm (grip, python-path-and-address): New variables. --- gnu/packages/python-web.scm | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9464021d82..a6b1e97ba1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2019 Brendan Tildesley ;;; Copyright © 2019 Pierre Langlois ;;; Copyright © 2019 Tanguy Le Carrour +;;; Copyright © 2020 Jakub Kądziołka ;;; ;;; This file is part of GNU Guix. ;;; @@ -3494,3 +3495,61 @@ is part of the Weblate translation platform.") (description "This package provides an extended library for interacting with GitLab instances through their API.") (license license:lgpl3+))) + +(define-public python-path-and-address + (package + (name "python-path-and-address") + (version "2.0.1") + (source + (origin + ;; Use git-fetch because pypi-url fails. + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/path-and-address") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6")))) + (build-system python-build-system) + (home-page "https://github.com/joeyespo/path-and-address") + (synopsis "Functions for command-line server tools used by humans") + (description "Path-and-address resolves ambiguities of command-line +interfaces, inferring which argument is the path, and which is the address.") + (license license:expat))) + +(define-public grip + ;; No release by upstream for quite some time, some bugs fixed since. See: + ;; https://github.com/joeyespo/grip/issues/304 + (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) + (package + (name "grip") + (version (git-version "4.5.2" "1" commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/grip") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-docopt" ,python-docopt) + ("python-flask" ,python-flask) + ("python-markdown" ,python-markdown) + ("python-path-and-address" ,python-path-and-address) + ("python-pygments" ,python-pygments) + ("python-requests" ,python-requests))) + (native-inputs + `(("python-responses" ,python-responses))) + (home-page "https://github.com/joeyespo/grip") + (synopsis "Preview Markdown files using the GitHub API") + (description "Grip is a command-line server application written in Python +that uses the GitHub Markdown API to render a local Markdown file. The styles +and rendering come directly from GitHub, so you'll know exactly how it will +appear. Changes you make to the file will be instantly reflected in the browser +without requiring a page refresh.") + (license license:expat)))) -- 2.25.0 From unknown Sun Jun 22 00:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39396] [PATCH] gnu: Add grip. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2020 19:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: 39396@debbugs.gnu.org Received: via spool by 39396-submit@debbugs.gnu.org id=B39396.158067342828309 (code B ref 39396); Sun, 02 Feb 2020 19:58:01 +0000 Received: (at 39396) by debbugs.gnu.org; 2 Feb 2020 19:57:08 +0000 Received: from localhost ([127.0.0.1]:40579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyLMe-0007MT-TX for submit@debbugs.gnu.org; Sun, 02 Feb 2020 14:57:08 -0500 Received: from flashner.co.il ([178.62.234.194]:38362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyLMd-0007Lx-AU for 39396@debbugs.gnu.org; Sun, 02 Feb 2020 14:57:03 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id B02E740045; Sun, 2 Feb 2020 19:56:56 +0000 (UTC) Date: Sun, 2 Feb 2020 21:56:25 +0200 From: Efraim Flashner Message-ID: <20200202195625.GJ9517@E5400> References: <20200202193545.17621-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AYsPlKobQGgtCvjI" Content-Disposition: inline In-Reply-To: <20200202193545.17621-1-kuba@kadziolka.net> 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-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --AYsPlKobQGgtCvjI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2020 at 08:35:45PM +0100, Jakub K=C4=85dzio=C5=82ka wrote: > * gnu/packages/python-web.scm (grip, python-path-and-address): New > variables. Please split this into two patches. > --- > gnu/packages/python-web.scm | 59 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 59 insertions(+) >=20 > diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm > index 9464021d82..a6b1e97ba1 100644 > --- a/gnu/packages/python-web.scm > +++ b/gnu/packages/python-web.scm > @@ -31,6 +31,7 @@ > ;;; Copyright =C2=A9 2019 Brendan Tildesley > ;;; Copyright =C2=A9 2019 Pierre Langlois > ;;; Copyright =C2=A9 2019 Tanguy Le Carrour > +;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -3494,3 +3495,61 @@ is part of the Weblate translation platform.") > (description "This package provides an extended library for interact= ing > with GitLab instances through their API.") > (license license:lgpl3+))) > + > +(define-public python-path-and-address > + (package > + (name "python-path-and-address") > + (version "2.0.1") > + (source > + (origin > + ;; Use git-fetch because pypi-url fails. I managed to get the pypi importer to work: guix environment --ad-hoc unzip -- guix import pypi path-and-address just make sure to add the ".zip" at the end of the uri of the generated package. > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/joeyespo/path-and-address") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6")))) > + (build-system python-build-system) This package didn't show any tests run, so after some experimentation I ended up with the following addition: (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) (invoke "py.test")))))) (native-inputs `(("python-pytest" ,python-pytest))) > + (home-page "https://github.com/joeyespo/path-and-address") > + (synopsis "Functions for command-line server tools used by humans") > + (description "Path-and-address resolves ambiguities of command-line > +interfaces, inferring which argument is the path, and which is the addre= ss.") > + (license license:expat))) > + This package I also didn't see run any tests. I'd suggest checking out the .travis.yml file to see what they do for the tests. > +(define-public grip > + ;; No release by upstream for quite some time, some bugs fixed since. = See: > + ;; https://github.com/joeyespo/grip/issues/304 > + (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) > + (package > + (name "grip") > + (version (git-version "4.5.2" "1" commit)) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/joeyespo/grip") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-docopt" ,python-docopt) > + ("python-flask" ,python-flask) > + ("python-markdown" ,python-markdown) > + ("python-path-and-address" ,python-path-and-address) > + ("python-pygments" ,python-pygments) > + ("python-requests" ,python-requests))) > + (native-inputs > + `(("python-responses" ,python-responses))) > + (home-page "https://github.com/joeyespo/grip") > + (synopsis "Preview Markdown files using the GitHub API") > + (description "Grip is a command-line server application written in= Python > +that uses the GitHub Markdown API to render a local Markdown file. The = styles > +and rendering come directly from GitHub, so you'll know exactly how it w= ill > +appear. Changes you make to the file will be instantly reflected in the= browser > +without requiring a page refresh.") > + (license license:expat)))) > --=20 > 2.25.0 >=20 >=20 >=20 >=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 --AYsPlKobQGgtCvjI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl43KWUACgkQQarn3Mo9 g1GlCQ/9Hho8IqnBsQx2EEKyYSq6IIruydZT2w18x4mDpaeCfd/Y2CXPwsbvZIey b510cdHAIYoJoHqAwpO3lemGb0tWIN/Lbjjq5Sqy76sFDDsbz/WUjVXfSDCvrtCx 76WdubrlEhrugJL0mbs/rZjQlibnPmnJDDK7PBIKhHRfntUEMnvqCRN4tNWIQzw6 se5eCcSxp+ZHnoLePcqNws8EQhGbeE6QhMWW2uwiO2BSR/szearkBBytXkZO7aO5 w8HK/kE4GMM2XKz9KyfZZLv4OILB63ajRkuVTW5xgQxC088Kzyriinzra6PFtoae nEbqMnb2/acVCmM/GKPwu15xHAymPHD5XBREYKt1rrh0dXWArlbjyNtVJLGkrLw0 B+9GiVjianwlf+fWMdbHLVJsw7CJmWn+TyIs1Mk0841GIqIYXZVnzbUy4sZCZV8N fmvadInVRJV4P8bGuw6okQtBAtH/ARaJdSH9eRfBGx78cKdauM1cx4c8XqfYiPnU Rp2Yik3PrOioPb2sYyQiyYPBl2a6gJY7rwVYtou0Co31XdXAYMdlBHFBMZbGsDzR MIToVuYSPmxts2G3U0P+F9lRJEEtg+lHF7ZkIQLZ1Ct7Tca3vhcwidxgQDQCh4ic uyzj2i0U7d9xC3rVoSTFQYE82T3ywmvEgkRwwQDa8JC2llYXNpk= =vkUJ -----END PGP SIGNATURE----- --AYsPlKobQGgtCvjI-- From unknown Sun Jun 22 00:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39396] [PATCH v2 1/2] gnu: Add python-path-and-address. References: <20200202193545.17621-1-kuba@kadziolka.net> In-Reply-To: <20200202193545.17621-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2020 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39396@debbugs.gnu.org, efraim@flashner.co.il Received: via spool by 39396-submit@debbugs.gnu.org id=B39396.158068388027836 (code B ref 39396); Sun, 02 Feb 2020 22:52:02 +0000 Received: (at 39396) by debbugs.gnu.org; 2 Feb 2020 22:51:20 +0000 Received: from localhost ([127.0.0.1]:40714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyO5H-0007Er-KD for submit@debbugs.gnu.org; Sun, 02 Feb 2020 17:51:19 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:46634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyO5E-0007Ej-S0 for 39396@debbugs.gnu.org; Sun, 02 Feb 2020 17:51:17 -0500 Received: (qmail 18310 invoked by uid 1009); 2 Feb 2020 23:51:14 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25713. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.028742 secs); 02 Feb 2020 22:51:14 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 2 Feb 2020 23:51:14 +0100 Date: Sun, 2 Feb 2020 23:51:39 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200202225139.ju24rglulvgromcq@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="neam24niamn5njev" Content-Disposition: inline X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --neam24niamn5njev Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * gnu/packages/python-web.scm (python-path-and-address): New variable. --- I believe I have addressed all of your concerns, Efraim. I wouldn't have thought to check if tests are being ran, nice catch. [git am will remove this note automatically] --- gnu/packages/python-web.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9464021d82..3e5253489b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -31,6 +31,7 @@ ;;; Copyright =C2=A9 2019 Brendan Tildesley ;;; Copyright =C2=A9 2019 Pierre Langlois ;;; Copyright =C2=A9 2019 Tanguy Le Carrour +;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka ;;; ;;; This file is part of GNU Guix. ;;; @@ -3494,3 +3495,35 @@ is part of the Weblate translation platform.") (description "This package provides an extended library for interacting with GitLab instances through their API.") (license license:lgpl3+))) + +(define-public python-path-and-address + (package + (name "python-path-and-address") + (version "2.0.1") + (source + (origin + ;; Use git-fetch because the source distributed on PyPI doesn't inc= lude + ;; tests. + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/path-and-address") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "py.test")))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/joeyespo/path-and-address") + (synopsis "Functions for command-line server tools used by humans") + (description "Path-and-address resolves ambiguities of command-line +interfaces, inferring which argument is the path, and which is the address= =2E") + (license license:expat))) --=20 2.25.0 --neam24niamn5njev Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl43UnsACgkQ4xWnWEYT FWRxxg/9EdvPKp6rkBv1kp4nu18rNjvYQjll3RaBBJNt/izy7SlT8xS8tvVoegFX 26pugwpq0xuPFgBjfO2Ja1zvgY5aOODqMJ7I3OwoicnBPbEoZQ4gl8+kdlpEIO+O 0ilAxiXi3ZA2oaxFUEQkobjt6lFSMKcwVGQOhCwhfKSjb0Uy7hh0BKUBQ8fTYMl+ kC0YmwhZWEcHgTClyyZ7LAtEet1/IuPpEHhGhPzAmCuAFI5Ru2xBeQJxQp/9snJW KeYYn62RtdGYCuIpZeE1xAT4FMx6WEwt5VCzsYjuuGuLFi3IqG9xw45wR3hribNW 7Pa1lW2AzHQUzuW+jgXSpaYzO7HLaQos0N5FlRUSv8WdMzuYAxbRNnTFEnED6igP ObXnnx80rq/fLUNhye1jErLh2iIEUsssbZMFGkpInz+u3/N2iVa7xa8U29ecT3kM PpqoefF7CZI5iIx6dDoItqVXAhi7WpSXxZdRsVaijDKP7Olmcr+YF0Ee0Zx83yxJ TzfZGElTuUMcJSvBeZQI4WLHBwWqWt+zsyFrT/b5DjU63rr8foTlGSCYRsQRPbDp J2maxMaG7nayCmQi6bObH6b9HCEKjcDluSkToBfDVf4Fe4KfissEcx40MY9pVCt4 f8KffKArNLaVbkqqX4A1MjgUFWx7ARFzO9PegZW2JQadl3Ie+v8= =fZL7 -----END PGP SIGNATURE----- --neam24niamn5njev-- From unknown Sun Jun 22 00:20:40 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39396] [PATCH v2 2/2] gnu: Add grip. References: <20200202193545.17621-1-kuba@kadziolka.net> In-Reply-To: <20200202193545.17621-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2020 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39396@debbugs.gnu.org, efraim@flashner.co.il Received: via spool by 39396-submit@debbugs.gnu.org id=B39396.158068389527861 (code B ref 39396); Sun, 02 Feb 2020 22:52:02 +0000 Received: (at 39396) by debbugs.gnu.org; 2 Feb 2020 22:51:35 +0000 Received: from localhost ([127.0.0.1]:40717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyO5W-0007FJ-Uq for submit@debbugs.gnu.org; Sun, 02 Feb 2020 17:51:35 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:46770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyO5V-0007FB-Dv for 39396@debbugs.gnu.org; Sun, 02 Feb 2020 17:51:33 -0500 Received: (qmail 18428 invoked by uid 1009); 2 Feb 2020 23:51:32 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25713. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.024118 secs); 02 Feb 2020 22:51:32 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 2 Feb 2020 23:51:32 +0100 Date: Sun, 2 Feb 2020 23:51:57 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200202225157.ncrok6nfrp2dgwhz@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qucg7rglcqzwomzm" Content-Disposition: inline X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --qucg7rglcqzwomzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * gnu/packages/python-web.scm (grip): New variable. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3e5253489b..35c168948c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3527,3 +3527,52 @@ with GitLab instances through their API.") (description "Path-and-address resolves ambiguities of command-line interfaces, inferring which argument is the path, and which is the address= =2E") (license license:expat))) + +(define-public grip + ;; No release by upstream for quite some time, some bugs fixed since. Se= e: + ;; https://github.com/joeyespo/grip/issues/304 + (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) + (package + (name "grip") + (version (git-version "4.5.2" "1" commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/grip") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-docopt" ,python-docopt) + ("python-flask" ,python-flask) + ("python-markdown" ,python-markdown) + ("python-path-and-address" ,python-path-and-address) + ("python-pygments" ,python-pygments) + ("python-requests" ,python-requests))) + (native-inputs + `(("python-responses" ,python-responses) + ("python-pytest" ,python-pytest))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Run 'check after 'install so that the grip binary is availab= le. + (delete 'check) + (add-after 'install 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (setenv "PATH" (string-append + (getenv "PATH") ":" + (assoc-ref %outputs "out") "/bin")) + (invoke "py.test" "-m" "not assumption")))))) + (home-page "https://github.com/joeyespo/grip") + (synopsis "Preview Markdown files using the GitHub API") + (description "Grip is a command-line server application written in P= ython +that uses the GitHub Markdown API to render a local Markdown file. The st= yles +and rendering come directly from GitHub, so you'll know exactly how it will +appear. Changes you make to the file will be instantly reflected in the b= rowser +without requiring a page refresh.") + (license license:expat)))) --=20 2.25.0 --qucg7rglcqzwomzm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl43Uo0ACgkQ4xWnWEYT FWQnMQ//RofeYN3dMPwE2xtBCiVbx/2pP9e3lV97rQvmuI+AnCiGCwtPa5ztO0tX rPlz+wb5BW9kK96X8I7XOucMhMRv9LCOf3a298Sr/QmwJPZxvOzNF+EWwDMIGfxd eLgdVazdtloIZMfckNAXEgbXF0QnHLu256nNHg6RbSKJWaARdVhQlW33MR91s9gO 0RheT5syHFKynRk/0FMepNqi2+Ews8UbJLQm0tOb7eU1BuNnWSTD1C9YcnsG6+vo ND83Ptkv0lF2paIDHV2I48OGYTyiFtOkTDff5Z2TAKZqKmOH8cN7233Bcb7YbtGv fvVxjFjQz630LdQf3/oQIPrkVcxccrE8Gojcwu3wrtVSVWQ7VmwWnoFKrc1gYecz 3Zs0B2x6k6wkcs8cKRXJUCtihXmzRFfcaF78M9Ei5M1ud2p8kv8kV2eUhGbZOvZJ 3WNo258Yr3qun4xK8XCq58/wxZslJbdtc9i31CeIu+c2tR5+N4yjhfKOsvLwPs3Z JkopWEs3z0mv5qabdcLp7fwqgFgGMbpfYaMbcz6JRda1Pr2qT1CoIZpSPerdTrV9 T40GU043w8QzKDLsNwLFLaiNx+AKramExjP7wkSrzD+M7Ke0S3W6vrtd8r/bsvtq FFbx8XzkDNiW1FHWnO8ZCOAHGLpCYPmjcSLCC7KmCj+Jno9tnK8= =zwrY -----END PGP SIGNATURE----- --qucg7rglcqzwomzm-- From unknown Sun Jun 22 00:20:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Subject: bug#39396: closed (Re: [PATCH v2 2/2] gnu: Add grip.) Message-ID: References: <20200204101311.GB19864@E5400> <20200202193545.17621-1-kuba@kadziolka.net> X-Gnu-PR-Message: they-closed 39396 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 39396@debbugs.gnu.org Date: Tue, 04 Feb 2020 10:14:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1580811241-2917-1" This is a multi-part message in MIME format... ------------=_1580811241-2917-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39396: [PATCH] gnu: Add grip. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 39396@debbugs.gnu.org. --=20 39396: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39396 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1580811241-2917-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39396-done) by debbugs.gnu.org; 4 Feb 2020 10:13:50 +0000 Received: from localhost ([127.0.0.1]:42627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyvDJ-0000kZ-Uc for submit@debbugs.gnu.org; Tue, 04 Feb 2020 05:13:50 -0500 Received: from flashner.co.il ([178.62.234.194]:47580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyvDI-0000kL-Di for 39396-done@debbugs.gnu.org; Tue, 04 Feb 2020 05:13:49 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 609944002B; Tue, 4 Feb 2020 10:13:42 +0000 (UTC) Date: Tue, 4 Feb 2020 12:13:11 +0200 From: Efraim Flashner To: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= Subject: Re: [PATCH v2 2/2] gnu: Add grip. Message-ID: <20200204101311.GB19864@E5400> References: <20200202225157.ncrok6nfrp2dgwhz@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+pHx0qQiF2pBVqBT" Content-Disposition: inline In-Reply-To: <20200202225157.ncrok6nfrp2dgwhz@gravity> 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 39396-done Cc: 39396-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I re-ordered the native-inputs so they'd be alphabetical and I changed the custom 'check phase to replace the stock 'check phase. It's been a while now that in the python-build-system the 'check phase comes after the 'install phase. Patches pushed. Thanks! --=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 --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl45Q7cACgkQQarn3Mo9 g1HOeRAAoFa9CbJ57xETlfnMAcViLdEtQavWAInxkF2BhFDS/7OR3h4Eds1n5hV1 Z9B8vemMc/bQDZLpo/4ZC/5gFtmeJ4WjgzVUUyFSOSxWvbRJ14PlfL+rz+AIsOSK pK4qhPDXt+8mnQo1j0RP3rb5WnLXi0nFH2vEwk6xCu3fANdX6CLMJ/jRDpIvr9kb UJbbYKFY4TSrujqosEz/zoEOsE/9iLlYig8OHvAK71p4NH0Zfw1oIsMm0DIKpMYU xwpEVQMDW8j23iXSzETo3a0MhMp2Jr/651boTpeenagrws5oEk4xAngiieIAqTGm p6VAa5nLSWVEnIycqSxaNjLSeSKki8xI9IWhkoYLEq9elaRFg8IzYHLDzxFSnRiJ Q3eLVAML310f5U11igB00wh5FmSGAXcrvY0s1ggXrGlO9JxhofwlGPpSPdz7iYZ8 LiFhkzNx6lxS1XyQifR1u64+h1Y+5UfvnZ1DLzrQkynpU2fFgtVTgnc/4/N99JPH axlWDFXOp9F4GOZw1xvI6+54aqsgOAnZ6rA5ivOh6RCDx+S6oo1xvYY86CzJJxhM 75j+/e74u+L/CyYpHdcY/jpIN0KE1KfAMjzU+XnhpXg36goO8MXSupZTlK4QS9m1 1MJqMLLzY3L7Yn6dAOUwlQvWFKq/g5GM+YROk7lwKvCYp5Joqac= =mMkO -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT-- ------------=_1580811241-2917-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Feb 2020 19:35:35 +0000 Received: from localhost ([127.0.0.1]:40569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyL1q-0006ny-O1 for submit@debbugs.gnu.org; Sun, 02 Feb 2020 14:35:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:52088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyL1p-0006no-0f for submit@debbugs.gnu.org; Sun, 02 Feb 2020 14:35:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33329) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyL1m-0004Lf-ET for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyL1k-00047P-So for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:30 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:50348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iyL1k-0003wi-Jm for guix-patches@gnu.org; Sun, 02 Feb 2020 14:35:28 -0500 Received: (qmail 26671 invoked by uid 1009); 2 Feb 2020 20:35:20 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25713. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.023534 secs); 02 Feb 2020 19:35:20 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 2 Feb 2020 20:35:20 +0100 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= To: guix-patches@gnu.org Subject: [PATCH] gnu: Add grip. Date: Sun, 2 Feb 2020 20:35:45 +0100 Message-Id: <20200202193545.17621-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 37.59.186.212 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/python-web.scm (grip, python-path-and-address): New variables. --- gnu/packages/python-web.scm | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9464021d82..a6b1e97ba1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2019 Brendan Tildesley ;;; Copyright © 2019 Pierre Langlois ;;; Copyright © 2019 Tanguy Le Carrour +;;; Copyright © 2020 Jakub Kądziołka ;;; ;;; This file is part of GNU Guix. ;;; @@ -3494,3 +3495,61 @@ is part of the Weblate translation platform.") (description "This package provides an extended library for interacting with GitLab instances through their API.") (license license:lgpl3+))) + +(define-public python-path-and-address + (package + (name "python-path-and-address") + (version "2.0.1") + (source + (origin + ;; Use git-fetch because pypi-url fails. + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/path-and-address") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6")))) + (build-system python-build-system) + (home-page "https://github.com/joeyespo/path-and-address") + (synopsis "Functions for command-line server tools used by humans") + (description "Path-and-address resolves ambiguities of command-line +interfaces, inferring which argument is the path, and which is the address.") + (license license:expat))) + +(define-public grip + ;; No release by upstream for quite some time, some bugs fixed since. See: + ;; https://github.com/joeyespo/grip/issues/304 + (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) + (package + (name "grip") + (version (git-version "4.5.2" "1" commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/grip") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-docopt" ,python-docopt) + ("python-flask" ,python-flask) + ("python-markdown" ,python-markdown) + ("python-path-and-address" ,python-path-and-address) + ("python-pygments" ,python-pygments) + ("python-requests" ,python-requests))) + (native-inputs + `(("python-responses" ,python-responses))) + (home-page "https://github.com/joeyespo/grip") + (synopsis "Preview Markdown files using the GitHub API") + (description "Grip is a command-line server application written in Python +that uses the GitHub Markdown API to render a local Markdown file. The styles +and rendering come directly from GitHub, so you'll know exactly how it will +appear. Changes you make to the file will be instantly reflected in the browser +without requiring a page refresh.") + (license license:expat)))) -- 2.25.0 ------------=_1580811241-2917-1--