From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 1/6] gnu: Add python-pycodestyle. Date: Sat, 05 Nov 2016 15:39:07 +0000 Message-ID: <8760o26in8.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20161105112706.12089-1-dannym@scratchpost.org> <20161105112706.12089-2-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c333q-0000tJ-4f for guix-devel@gnu.org; Sat, 05 Nov 2016 11:39:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c333m-0003DF-Uv for guix-devel@gnu.org; Sat, 05 Nov 2016 11:39:14 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47673) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c333m-0003Cf-QI for guix-devel@gnu.org; Sat, 05 Nov 2016 11:39:10 -0400 In-Reply-To: <20161105112706.12089-2-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: text/plain Content-Transfer-Encoding: quoted-printable Danny Milosavljevic writes: > * gnu/packages/python.scm (python-pycodestyle, python2-pycodestyle): > New variables. > --- > gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index 518ab3a..cb314e2 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -3829,6 +3829,33 @@ simple and Pythonic domain language.") > (define-public python2-sqlalchemy > (package-with-python2 python-sqlalchemy)) >=20=20 > +(define-public python-pycodestyle > + (package > + (name "python-pycodestyle") > + (version "2.0.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pycodestyle" version)) > + (sha256 > + (base32 > + "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p")))) > + (build-system python-build-system) > + (home-page "https://pycodestyle.readthedocs.io/") > + (synopsis "Python style guide checker") > + (description "pycodestyle (formerly pep8) is a tool to check your Py= thon code against ^^^ Either capitalize or wrap it in @code{} here. > +some of the style conventions in @url{http://www.python.org/dev/peps/pep= -0008/ PEP 8}.") I think the @url syntax takes a comma rather than a space. Otherwise LGTM. > + (license license:expat) > + (properties `((python2-variant . ,(delay python2-pycodestyle)))))) > + > +(define-public python2-pycodestyle > + (let ((base (package-with-python2 (strip-python2-variant > + python-pycodestyle)))) > + (package (inherit base) > + (native-inputs > + `(("python2-setuptools" ,python2-setuptools) > + ,@(package-native-inputs base)))))) > + > (define-public python-sqlalchemy-utils > (package > (name "python-sqlalchemy-utils") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYHf0bAAoJEKKgbfKjOlT6LU4IANIR7PgEMFMPVYl3Sj8g0aac H2+eNjKe87T6pGhgkZyCrmv81Dxi5jYWLq23C+rWTedGZzi/ifMAR5YQaf6b8Ye4 ltb/yjFm65hb5MpUEVBg3jIVrRvaMBMugQqH4PhYATvkJ3H9KMQ36PhhhjBOjImr wyDGkZ+N76aiar7+WMaI6WywjpKK99cjEo0T56FFzqbNJjVeWnMvWD1gv8t6h9DH vWXfRi4JTm/3TjZ4RyLvecei3Xk015SG2MLtq/GTWuQbFNj2cPXoTyQzUGtaZiOy hcVo79YfR+in3CPRX8t+52eTHaHbgZhvKTfR3sD06ueM038KyAPQURI1bAtyhWI= =wpdF -----END PGP SIGNATURE----- --=-=-=--