From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH 1/3] gnu: Add python-pytest-pep8. Date: Sun, 11 Sep 2016 15:07:35 +0100 Message-ID: <20160911140737.24248-1-mbakke@fastmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj5QJ-00089r-Ds for guix-devel@gnu.org; Sun, 11 Sep 2016 10:07:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj5QF-0000bR-U1 for guix-devel@gnu.org; Sun, 11 Sep 2016 10:07:55 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:48228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj5QD-0000Wi-Eh for guix-devel@gnu.org; Sun, 11 Sep 2016 10:07:51 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EE401203E7 for ; Sun, 11 Sep 2016 10:07:38 -0400 (EDT) Received: from localhost (169.243.187.81.in-addr.arpa [81.187.243.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 86C70F2988 for ; Sun, 11 Sep 2016 10:07:38 -0400 (EDT) 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: guix-devel@gnu.org * gnu/packages/python.scm (python-pytest-pep8, python2-pytest-pep8): New variables. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8b9273c..21eda38 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10327,3 +10327,36 @@ Python to manipulate OpenDocument 1.2 files.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-pytest-pep8 + (package + (name "python-pytest-pep8") + (version "1.0.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-pep8" version)) + (sha256 + (base32 + "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12. + ;; Prevent creation of the egg. This works around + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . + #:configure-flags '("--single-version-externally-managed" "--root=/"))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-pep8" ,python-pep8))) + (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") + (synopsis "Py.test plugin to check PEP8 requirements") + (description "Pytest plugin for efficiently checking PEP8 compliance") + (license license:expat) + (properties `((python2-variant . ,(delay python2-pytest-pep8)))))) + +(define-public python2-pytest-pep8 + (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.3