From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: [PATCH 3/9] gnu: Add python-httpbin. Date: Sun, 05 Feb 2017 15:16:15 -0800 Message-ID: <87bmug8c00.fsf@gmail.com> References: <20170204163506.16758-1-contact.ng0@cryptolab.net> <20170204163506.16758-4-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caW2d-00007y-OI for guix-devel@gnu.org; Sun, 05 Feb 2017 18:16:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caW2c-0001lU-Jh for guix-devel@gnu.org; Sun, 05 Feb 2017 18:16:19 -0500 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:34837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caW2c-0001lF-D5 for guix-devel@gnu.org; Sun, 05 Feb 2017 18:16:18 -0500 Received: by mail-pg0-x242.google.com with SMTP id 204so7366144pge.2 for ; Sun, 05 Feb 2017 15:16:18 -0800 (PST) In-Reply-To: <20170204163506.16758-4-contact.ng0@cryptolab.net> (contact's message of "Sat, 4 Feb 2017 16:35:00 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: contact.ng0@cryptolab.net Cc: guix-devel@gnu.org, ng0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi ng0, contact.ng0@cryptolab.net writes: > From: ng0 > > * gnu/packages/web.scm (python-httpbin): New variable. > --- > gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index 1803f58e9..244672c9d 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -4044,3 +4044,37 @@ used to start services with both privileged and no= n-privileged port numbers.") >=20=20 > (define-public python2-gunicorn > (package-with-python2 python-gunicorn)) > + > +(define-public python-httpbin > + (package > + (name "python-httpbin") > + (version "0.5.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "httpbin" version)) > + (sha256 > + (base32 > + "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr")))) > + (build-system python-build-system) > + (inputs > + `(("python-decorator" ,python-decorator) > + ("python-flask" ,python-flask) > + ("python-gevent" ,python-gevent) > + ("python-greenlet" ,python-greenlet) > + ("python-gunicorn" ,python-gunicorn) > + ("python-itsdangerous" ,python-itsdangerous) > + ("python-jinja2" ,python-jinja2) > + ("python-markupsafe" ,python-markupsafe) > + ("python-six" ,python-six) > + ("python-werkzeug" ,python-werkzeug))) Shouldn't those be propagated-inputs, as recommended in the guix texinfo manual for the new python-build-system? > + (home-page "https://httpbin.org/") > + (synopsis "HTTP Request and Response Service") > + (description > + "@code{httpbin} covers all kinds of HTTP scenarios for testing > +HTTP libraries. Additional endpoints are being considered. > +All endpoint responses are JSON-encoded, it can be run as a WSGI App.") > + (license l:expat))) > + > +(define-public python2-httpbin > + (package-with-python2 python-httpbin)) Regards, Maxim --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAliXsj8ACgkQEmDkZILm NWIALQ/3eMGT3MQ8olYU0+B28ZyHaoAcDpqH6Jbf/BQXT2yJvclazKN2B8cQFMk8 BmtCXZudDjrO72edcNI9xzTN6FFEGPYFB3gwmnhZBZQdxssloaqt72Em6LgjkabD xDBdoWz7KVa/Zj3IjeEV64AJRzLpHRBrl2EgTq+7dT5v84ptO3afL5XCmWDxDskL m/Ei/3iG/oiBxNCK3Ofie9CCQs8quDGZPv8+JDWu4KWAG8OKeaMSYjaH0ATJp+te j0Kp9CQ66r5SA6V9KFWXntxDj9F05+ppvRUNMSxkfUfjsgiJSMX6HicNg6QY0DqS u3Br6DFI/gTjGQWSu7rVpKomaquXAs//SHpVXvPIa/9kXI/Va9BVGd3SE7vMfJ6Q /aK1DedmtiUB/O6PAPLst1uG1JcN5YGOHttTmvl92dxTNdZ+FSAmBVoJ3BW58dzd JvUvrQ+us7lASWY+oW0bfb7jjHsJDlSo7ow2WcfggVG1TR5mRhT19gAilYZLYTpv 73YtaIFzzL3quu+boLet2hdwlAhpzUojLkhxW8vQMl7VDzZ4Ceo5lLbf3/B9GNCS PJ7iC9a6pS5RSqt39Hy7ppa/Y0OuZN0B0oisB57T+nEvA1PcfdkC94uqeZ1H0gaR +Mu5TzhmekMK5VdwwvbpG6rTkTo6SRJmL1i7CTyojLtL0In5rQ== =wVPu -----END PGP SIGNATURE----- --=-=-=--