From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmmpp-0000Gc-V5 for guix-patches@gnu.org; Tue, 29 Aug 2017 16:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmmpm-0002E4-M8 for guix-patches@gnu.org; Tue, 29 Aug 2017 16:10:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmmpm-0002Dn-HH for guix-patches@gnu.org; Tue, 29 Aug 2017 16:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmmpm-0001YS-6v for guix-patches@gnu.org; Tue, 29 Aug 2017 16:10:02 -0400 Subject: [bug#28282] [PATCH 2/3] gnu: python2-ttystatus: Enable tests. Resent-Message-ID: Message-Id: <01d4edd9.AEAAPIqN1rYAAAAAAAAAAAPmN94AAAACwQwAAAAAAAW9WABZpcn4@mailjet.com> From: Arun Isaac Date: Wed, 30 Aug 2017 01:39:04 +0530 In-Reply-To: <20170829200905.30771-1-arunisaac@systemreboot.net> References: <20170829200905.30771-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28282@debbugs.gnu.org * gnu/packages/python.scm (python2-ttystatus)[arguments]: Replace 'check' phase with custom function. --- gnu/packages/python.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b81e6e47c..675742696 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14031,8 +14031,20 @@ iterating over input files.") (base32 "0vivqbw7ddhsq1zj3g9cvvv4f0phl0pis2smsnwcr2szz2fk3hl6")))) (build-system python-build-system) + (native-inputs + `(("python2-coverage-test-runner" ,python2-coverage-test-runner) + ("python2-pep8" ,python2-pep8))) (arguments - `(#:python ,python-2)) + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + ;; check phase needs to be run before the build phase. If not, + ;; coverage-test-runner looks for tests for the built source file= s, + ;; and fails. + (delete 'check) + (add-before 'build 'check + (lambda _ + (zero? (system* "make" "check"))))))) (home-page "https://liw.fi/ttystatus/") (synopsis "Python library for showing progress reporting and status updates on terminals") --=20 2.13.4 =