From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 01/10] gnu: Add python-pytest-cov. Date: Thu, 3 Dec 2015 16:43:22 +0200 Message-ID: <1449153811-32039-2-git-send-email-efraim@flashner.co.il> References: <1449153811-32039-1-git-send-email-efraim@flashner.co.il> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4V6p-0006GH-El for guix-devel@gnu.org; Thu, 03 Dec 2015 09:43:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4V6l-0000hv-9K for guix-devel@gnu.org; Thu, 03 Dec 2015 09:43:47 -0500 Received: from flashner.co.il ([178.62.234.194]:60933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4V6l-0000hh-2W for guix-devel@gnu.org; Thu, 03 Dec 2015 09:43:43 -0500 Received: from debian-netbook.jct.ac.il (unknown [213.151.53.59]) by flashner.co.il (Postfix) with ESMTPSA id 0759F40556 for ; Thu, 3 Dec 2015 14:43:41 +0000 (UTC) In-Reply-To: <1449153811-32039-1-git-send-email-efraim@flashner.co.il> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-pytest-cov, python2-pytest-cov): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3385393..d8fca79 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1630,6 +1630,34 @@ and many external plugins.") (define-public python2-pytest (package-with-python2 python-pytest)) +(define-public python-pytest-cov + (package + (name "python-pytest-cov") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-cov" version)) + (sha256 + (base32 + "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92")))) + (build-system python-build-system) + (inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/pytest-dev/pytest-cov") + (synopsis "Pytest plugin for measuring coverage") + (description + "Pytest-cov produces coverage reports. It supports centralised testing and +distributed testing in both load and each modes. It also supports coverage +of subprocesses.") + (license license:expat))) + +(define-public python2-pytest-cov + (package-with-python2 python-pytest-cov)) + (define-public python-pytest-runner (package (name "python-pytest-runner") -- 2.6.2