From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sNFICOCA0mUopwAAqHPOHw:P1 (envelope-from ) for ; Sun, 18 Feb 2024 23:12:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sNFICOCA0mUopwAAqHPOHw (envelope-from ) for ; Sun, 18 Feb 2024 23:12:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libero.it header.s=s2021 header.b=ndSrS5BM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708294368; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Vg7TcepTk9obl+tNEbvtWx8oorTetRSUKgwBElKJCZs=; b=JyvghAH7NPrxQKA3vSg8hDLESEvpQhbk5cqxZcLIWNPf21X5PG/J1NVQP5EjVsoA/SvcK8 Q0sKFGVcLdQkCeGiLV9Km38UaIJcwLGgQskQ6ffTD1Y4IocwpPxw91JuT6nVgjvClhJh1O kKcmonwf/wiLtvDehAEQgZbqYtFF0PNluT0ZLGbto4iV61jbkwUoYbMZsbJ2KT4NUE3Gyq qIM/uqjzgrSgXs71LrkiQYTRKGXUIkKEYSHbTrCjIU+eYxdJM4+He5hH1fXNflonw7K8kO 63HTwraIXjGv6X0ysmTWeF/JbxzGkrjqllVDJISbrb/E7OVlVBN3up/5p7448g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libero.it header.s=s2021 header.b=ndSrS5BM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708294368; a=rsa-sha256; cv=none; b=bqE3siCS9AuxMC6BdniFcvt+d/0fiYOg8ZS+CRvp+277kjqrkzUv0ZiSBTNXcWjZPAY1uw CQ1W3I9Pwld0Mi7tu8QIVZEHr/aFD0S/KWD8hYCqNkZiJSBa7gncL09fGMSLdZO6ld83n4 0RqdEdV9kjjiUMnauaeTWeoa0x6pF4BSDWBzeii/5rz2BqLX2pKgFFvq286ngjzUKrnrfy jBWkyg5xtBh47RxN17sPnKQkycr1aDNpkUp4PneJxsTvZvldpcWdICI5YK/ZI2PxaSi9xV MBRDWEk1B0vpTYPCHQE6LtsbcivB+tYk8LNPxZChNguMfcfWC0vF3OWppmR+0g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DA7E341505 for ; Sun, 18 Feb 2024 23:12:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbpOv-0002bC-4A; Sun, 18 Feb 2024 17:12:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbpOt-0002aa-Ef for guix-patches@gnu.org; Sun, 18 Feb 2024 17:12:43 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rbpOr-0001yn-Fw for guix-patches@gnu.org; Sun, 18 Feb 2024 17:12:42 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbpPC-0005mg-4z for guix-patches@gnu.org; Sun, 18 Feb 2024 17:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69260] [PATCH 1/3] gnu: python-mysqlclient: Enable selected tests. Resent-From: rimarko@libero.it Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69260 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69260@debbugs.gnu.org Cc: Marco Rimoldi Received: via spool by 69260-submit@debbugs.gnu.org id=B69260.170829436622190 (code B ref 69260); Sun, 18 Feb 2024 22:13:02 +0000 Received: (at 69260) by debbugs.gnu.org; 18 Feb 2024 22:12:46 +0000 Received: from localhost ([127.0.0.1]:39858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbpOv-0005lq-Mg for submit@debbugs.gnu.org; Sun, 18 Feb 2024 17:12:46 -0500 Received: from smtp-32.italiaonline.it ([213.209.10.32]:41775 helo=libero.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbpOs-0005lS-Pk for 69260@debbugs.gnu.org; Sun, 18 Feb 2024 17:12:43 -0500 Received: from localhost ([93.38.119.137]) by smtp-32.iol.local with ESMTPA id bpONrWl2aQSiObpORrk9dE; Sun, 18 Feb 2024 23:12:15 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1708294335; bh=Vg7TcepTk9obl+tNEbvtWx8oorTetRSUKgwBElKJCZs=; h=From; b=ndSrS5BMTFma8IzRawbEhBtDLfEaLLMH2a3FF5gks/dECSShWg/DYbRo3jKR7SCUw 3yJLOutIr99+8jbHF5D0WxKxyADM4l2Azn9MFD00DpPnUeWyzQQpc+axYVbkp9bbiD cXdlfQ6ysbZRcdvw3Iecjp8tSd9Cd4komn9wZ4dQ8qqj9j4ejR38ApwIbnMZjd1Hc4 5NEDilCXEsc9itKku1rcwCimbqn32bZhmJFvCR1ec1mk65c0/GmRumpfw6ar8s0zMx GdFKIuDGQZxl9RkhmDTDuKwK6vl5cb3OKs2OFtqFPuQu/sQTsEpReBM7IW7JuZYRIA LAUcin4kJ+cuQ== X-CNFS-Analysis: v=2.4 cv=M6buKDws c=1 sm=1 tr=0 ts=65d280bf cx=a_exe a=zr5aN+YwjWvrDHBFAPbA8Q==:117 a=zr5aN+YwjWvrDHBFAPbA8Q==:17 a=NEAV23lmAAAA:8 a=w2sSfZO1tNF0gT-0X_sA:9 Date: Sun, 18 Feb 2024 23:12:05 +0100 Message-ID: <0bcd19d4aed0a520fb3686b297a9d095f5bea441.1708293210.git.rimarko@libero.it> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfHfOmwJcHIKdUXC6Blc1jIx50059djD6qp8YLP4Hk6/dv0ahQT5oFgV2Jr6DUyQ5bjsY8CBUWmxV9GSxIIid7Zl+mM30+aO8CdkaGFLljpUHsFSkErRc YWZLOYd+/nj+rLy+AML1ZNqSQq+hLCThBlxG04y59qbSk9aAubh00EEB9fEELLbdqNEZfy8UJ9FjaWvzrIIubyrHw2P5hl9AKss= 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: , Reply-to: rimarko@libero.it X-ACL-Warn: , Marco Rimoldi via Guix-patches From: Marco Rimoldi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: DA7E341505 X-Migadu-Scanner: mx13.migadu.com X-TUID: YYdxXenmThLc From: Marco Rimoldi * gnu/packages/databases.scm (python-mysqlclient) [build-system]: Change to pyproject-build-system. [arguments] <#:phases>: Add 'fix-test phase. <#:test-flags>: Specify tests to run. [native-inputs]: Add python-pytest. [homepage]: Updated. Change-Id: I5ae0873155f9a7cc90a318762b77864665fadc01 --- gnu/packages/databases.scm | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 5169795404..4bb992c97c 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -4155,15 +4155,24 @@ (define-public python-mysqlclient (method url-fetch) (uri (pypi-uri "mysqlclient" version)) (sha256 - (base32 - "1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ;XXX: requires a live database - (inputs - `(("mysql-dev" ,mariadb "dev"))) - (home-page "https://github.com/PyMySQL/mysqlclient-python") - (synopsis "MySQLdb is an interface to the popular MySQL database server for Python") - (description "MySQLdb is an interface to the popular MySQL database server + (base32 "1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv")))) + (build-system pyproject-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-before 'check 'fix-test + (lambda _ + (substitute* "tests/test_MySQLdb_times.py" + (("^import mock") + "from unittest import mock"))))) + #:test-flags '("tests/test__mysql.py" ;tests not needing a live db + "tests/test_MySQLdb_times.py"))) + (native-inputs (list python-pytest)) + (inputs `(("mysql-dev" ,mariadb "dev"))) + (home-page "https://github.com/PyMySQL/mysqlclient") + (synopsis + "MySQLdb is an interface to the popular MySQL database server for Python") + (description + "MySQLdb is an interface to the popular MySQL database server for Python. The design goals are: @enumerate @item Compliance with Python database API version 2.0 [PEP-0249], -- 2.41.0