From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42131) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyO5z-000336-Sh for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyO5y-0006eM-PZ for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyO5y-0006eG-LX for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyO5y-0007G7-LZ for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:02 -0500 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-Message-ID: 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39396@debbugs.gnu.org, efraim@flashner.co.il --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--