From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GpC-0002rX-1d for guix-patches@gnu.org; Fri, 12 May 2017 16:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Gp8-0003Vi-F8 for guix-patches@gnu.org; Fri, 12 May 2017 16:06:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9Gp8-0003VW-Ap for guix-patches@gnu.org; Fri, 12 May 2017 16:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9Gp8-000245-4k for guix-patches@gnu.org; Fri, 12 May 2017 16:06:02 -0400 Subject: bug#26900: [PATCH] gnu: Enable python-parse-type tests. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GoY-0002XS-If for guix-patches@gnu.org; Fri, 12 May 2017 16:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9GoV-0003GO-9U for guix-patches@gnu.org; Fri, 12 May 2017 16:05:26 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50848) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9GoV-0003Fn-3I for guix-patches@gnu.org; Fri, 12 May 2017 16:05:23 -0400 From: Danny Milosavljevic Date: Fri, 12 May 2017 22:05:18 +0200 Message-Id: <20170512200518.29872-1-dannym@scratchpost.org> 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: 26900@debbugs.gnu.org * gnu/packages/python.scm (python-parse-type)[arguments]: Enable tests. [native-inputs]: Add python-pytest, python-pytest-runner. [properties]: Add python2-variant. (python2-parse-type): New variable. --- 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 dc7adf24e..e32397b59 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1488,13 +1488,25 @@ backported for previous versions of Python from 2.4 to 3.3.") (propagated-inputs `(("python-six" ,python-six) ("python-parse" ,python-parse))) - (arguments '(#:tests? #f)) ;TODO: tests require pytest + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) (home-page "https://github.com/jenisys/parse_type") (synopsis "Extended parse module") (description "Parse_type extends the python parse module.") + (properties + `((python2-variant . ,(delay python2-parse-type)))) (license license:bsd-3))) +(define-public python2-parse-type + (let ((base (package-with-python2 + (strip-python2-variant python-parse-type)))) + (package (inherit base) + (propagated-inputs + `(("python2-enum34" ,python2-enum34) + ,@(package-propagated-inputs base)))))) + (define-public python-parse (package (name "python-parse")