From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH 2/3] gnu: Add python-pytest-flakes. Date: Sun, 11 Sep 2016 15:07:36 +0100 Message-ID: <20160911140737.24248-2-mbakke@fastmail.com> References: <20160911140737.24248-1-mbakke@fastmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj5QJ-00089t-Dv 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 1bj5QG-0000be-7m for guix-devel@gnu.org; Sun, 11 Sep 2016 10:07:55 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj5QD-0000Wt-V0 for guix-devel@gnu.org; Sun, 11 Sep 2016 10:07:52 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 25D7F205A0 for ; Sun, 11 Sep 2016 10:07:40 -0400 (EDT) Received: from localhost (169.243.187.81.in-addr.arpa [81.187.243.169]) by mail.messagingengine.com (Postfix) with ESMTPA id BE30AF2988 for ; Sun, 11 Sep 2016 10:07:39 -0400 (EDT) In-Reply-To: <20160911140737.24248-1-mbakke@fastmail.com> 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-flakes, python2-pytest-flakes): New variables. --- gnu/packages/python.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 21eda38..bd70cb6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10360,3 +10360,45 @@ Python to manipulate OpenDocument 1.2 files.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-pytest-flakes + (package + (name "python-pytest-flakes") + (version "1.0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-flakes" version)) + (sha256 + (base32 + "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) + (build-system python-build-system) + (arguments + `(;; Prevent creation of the egg. This works around + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . + #:configure-flags '("--single-version-externally-managed" "--root=/") + #:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda _ ; It's easier to run tests after install. + (zero? (system* "py.test" "-vv"))))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest) + ("python-pytest-cache" ,python-pytest-cache) + ("python-pytest-pep8" ,python-pytest-pep8))) + (propagated-inputs + `(("python-pyflakes" ,python-pyflakes))) + (home-page "https://github.com/fschulze/pytest-flakes") + (synopsis "Py.test plugin to check source code with pyflakes") + (description "Pytest plugin for efficiently checking python source +with pyflakes.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-pytest-flakes)))))) + +(define-public python2-pytest-flakes + (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.3