From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyO5z-000335-If for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyO5y-0006e2-Dg for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34744) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyO5y-0006dy-9G 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-0007G0-8f for guix-patches@gnu.org; Sun, 02 Feb 2020 17:52:02 -0500 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-Message-ID: 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 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 --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--