From patchwork Thu Aug 12 01:31:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32070 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9283227BC82; Thu, 12 Aug 2021 02:33:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4C13827BC78 for ; Thu, 12 Aug 2021 02:33:19 +0100 (BST) Received: from localhost ([::1]:45936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDzaw-0006Ty-DX for patchwork@mira.cbaines.net; Wed, 11 Aug 2021 21:33:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDzag-0006D1-3U for guix-patches@gnu.org; Wed, 11 Aug 2021 21:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDzaf-0003Lu-TV for guix-patches@gnu.org; Wed, 11 Aug 2021 21:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDzaf-0003up-Pi for guix-patches@gnu.org; Wed, 11 Aug 2021 21:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50021] [PATCH 6/7] gnu: python-translate-toolkit: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Aug 2021 01:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50021 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50021@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50021-submit@debbugs.gnu.org id=B50021.162873192814968 (code B ref 50021); Thu, 12 Aug 2021 01:33:01 +0000 Received: (at 50021) by debbugs.gnu.org; 12 Aug 2021 01:32:08 +0000 Received: from localhost ([127.0.0.1]:37032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDzZj-0003sw-5S for submit@debbugs.gnu.org; Wed, 11 Aug 2021 21:32:08 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDzZh-0003sB-82 for 50021@debbugs.gnu.org; Wed, 11 Aug 2021 21:32:01 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 92DF1240101 for <50021@debbugs.gnu.org>; Thu, 12 Aug 2021 03:31:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628731915; bh=lq/ODj18sUqOGfdoamJx8ClUN1s+91Nq0UJLjZRrz1M=; h=From:To:Cc:Subject:Date:From; b=R3MkhoV5U2JclwyO+rTAnQq6SF1caP0Ui6mS7zUxxIOnihr8JR2YXnTWoQa2wKsJa Aa6xG56H5M9rfXvhhhimozXiavdFz7CKntFojfkAgWlr4Phpjv7XGkEtxtML0PUN7v pTs70WWWABmde7qjI0H/FXqcMoler6SMVU3LHupGTFMuRq4QffC3bNWEEtwZvCpBzz 05Z3kA9F9uZBXLXXrW+xKAwbJV5t9gvyw2Pr6G/phUGsmO9li49kfabvGHZiA9SHWA 2sgReWi3g/lIrxyiN4kbIYd6ti/iCT9n+NzovOP7Z1Gf+ug++cWqOFMNbKiAGSucrT AQ6Oi7UM5Fkjg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlTgZ5td1z6tm5; Thu, 12 Aug 2021 03:31:54 +0200 (CEST) From: Vinicius Monego Date: Thu, 12 Aug 2021 01:31:22 +0000 Message-Id: <20210812013123.44869-6-monego@posteo.net> In-Reply-To: <20210812013123.44869-1-monego@posteo.net> References: <20210812013123.44869-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-translate-toolkit)[arguments]: Remove \#:tests?. [native-inputs]: Remove python-sphinx. Add python-iniparse, python-phply, python-ruamel.yaml, python-vobject. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fbacc02c14..0e17657ce9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17772,16 +17772,39 @@ when data is updated. (sha256 (base32 "0q0qvs4sk1yhbsl9ja8ivvw0083bvfylbhnbbnx17833qmd83imb")))) (build-system python-build-system) - (native-inputs - `(("python-pytest" ,python-pytest) - ("python-sphinx" ,python-sphinx))) - (propagated-inputs (arguments - ;; TODO: tests are not run, because they end with - ;; TypeError: parse() missing 2 required positional arguments: 'tree' and - ;; 'parse_funcs' - ;; during test setup. - `(#:tests? #f)) + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; TODO: Requires python-cheroot. + (delete-file "translate/services/test_tmserver.py") + ;; Requires gaupol which brings in video dependencies. + (delete-file "translate/storage/test_subtitles.py"))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "-k" + (string-append + ;; XMLSchemaParseError. + "not test_open_office_to_xliff" + " and not test_po_to_xliff" + ;; AssertionError. + " and not test_language_iso_fullname" + " and not test_country_iso_name" + " and not test_language_iso_name" + " and not test_timezones" + ;; FIXME: Requires msgfmt from gettext, but + ;; libgettextpo.so is not found by setup.py. + " and not test_output")))))))) + (native-inputs + `(("python-iniparse" ,python-iniparse) + ("python-phply" ,python-phply) + ("python-pytest" ,python-pytest) + ("python-ruamel.yaml" ,python-ruamel.yaml) + ("python-vobject" ,python-vobject))) + (propagated-inputs `(("python-lxml" ,python-lxml))) (home-page "https://toolkit.translatehouse.org") (synopsis "Tools and API for translation and localization engineering")