From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 5/8] gnu: Add python-geventhttpclient. Date: Tue, 17 Jan 2017 23:48:21 +0100 Message-ID: <8760ldb8wa.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20170117222548.13995-1-dannym@scratchpost.org> <20170117222548.13995-6-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTcYG-0002xQ-Sc for guix-devel@gnu.org; Tue, 17 Jan 2017 17:48:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTcYC-0002D0-Aq for guix-devel@gnu.org; Tue, 17 Jan 2017 17:48:28 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55417) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTcYC-0002CK-7D for guix-devel@gnu.org; Tue, 17 Jan 2017 17:48:24 -0500 In-Reply-To: <20170117222548.13995-6-dannym@scratchpost.org> 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: Danny Milosavljevic , guix-devel@gnu.org --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Danny Milosavljevic writes: > * gnu/packages/python.scm (python-geventhttpclient, python2-geventhttpcli= ent): > New variables. > --- > gnu/packages/python.scm | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index deb801631..8c81eae64 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -12656,6 +12656,29 @@ Features: > @end enumerate") > (license (license:x11-style "file://LICENSE")))) >=20=20 > +(define-public python-geventhttpclient > + (package > + (name "python-geventhttpclient") > + (version "1.3.1") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "geventhttpclient" version)) > + (sha256 > + (base32 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"= )))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-gevent" ,python-gevent) > + ("python-six" ,python-six) > + ("python-certifi" ,python-certifi))) > + (home-page "http://github.com/gwik/geventhttpclient") > + (synopsis "HTTP client library for gevent") > + (description "This package provides an HTTP client library for geven= t in Python.") > + (license license:expat))) > + > +(define-public python2-geventhttpclient > + (package-with-python2 python-geventhttpclient)) 'python setup.py test' doesn't actually do anything on this package. In addition, the tarball comes with .pyc files for the tests and breaks. Here is a patch with .pyc files removed and tests enabled: --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlh+nzYACgkQoqBt8qM6 VPr4Ngf/d1qwQAWXcwEKBelzNH6qmKEfTM4FPPWM5DXGIaY/9+rIEw9lNrnWeT9/ POME09BiZs1ke1/G5z2nFklxlBit4V+W+F8u+OXaVyQguUDlthyRkPVnqJgM82bw 5lk3OUGPDHtWhoPDnzYY2XkD8v20iGflwPWNKXkIRZ9MiaOR02LmxJVcXqSu1M4/ u6Nnb3cQQDLO1LoGpJBk6zgFw5kXaVSVvRpnbEvUJMXFE2GUKaqAN5AsxcAk/pdM tEZN0i3PNCHtnnyAJoLhHxwyKU/gljWNaFaD78UyusyRwMTZ+1lSY1+qW2pAerDw f4gNAofBYSwchbdYibxaSr0vlUmTkA== =iHJ4 -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-geventhttpclient.patch >From b991e2e4981bf8c05bf524f6eb87d47adebc2090 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 17 Jan 2017 23:13:19 +0100 Subject: [PATCH] gnu: Add python-geventhttpclient. * gnu/packages/python.scm (python-geventhttpclient, python2-geventhttpclient): New variables. --- gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a3a3c6c45..afbb3a367 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10515,6 +10515,51 @@ to provide a high-level synchronous API on top of the libev event loop.") (define-public python2-gevent (package-with-python2 python-gevent)) +(define-public python-geventhttpclient + (package + (name "python-geventhttpclient") + (version "1.3.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "geventhttpclient" version)) + (sha256 + (base32 + "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete pre-compiled files. + (for-each delete-file (find-files "src/geventhttpclient" + ".*\\.pyc")) + #t)))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'delete-network-tests + (lambda _ + (delete-file "src/geventhttpclient/tests/test_client.py") + #t)) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (zero? (system* "py.test" "src/geventhttpclient/tests" "-v"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-gevent" ,python-gevent) + ("python-six" ,python-six))) + (home-page "http://github.com/gwik/geventhttpclient") + (synopsis "HTTP client library for gevent") + (description "@code{python-geventhttpclient} is a high performance, +concurrent HTTP client library for python using @code{gevent}.") + (license license:expat))) + +(define-public python2-geventhttpclient + (package-with-python2 python-geventhttpclient)) + (define-public python-twisted (package (name "python-twisted") -- 2.11.0 --=-=-=--