guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: python-mysqlclient: Update to 2.2.4.


From: guix-commits
Subject: 02/02: gnu: python-mysqlclient: Update to 2.2.4.
Date: Wed, 27 Mar 2024 11:20:59 -0400 (EDT)

hako pushed a commit to branch master
in repository guix.

commit 517c13624a9643c4f47b8e5bc623b39e68db8027
Author: Marco Rimoldi <rimarko@libero.it>
AuthorDate: Sun Feb 18 23:12:07 2024 +0100

    gnu: python-mysqlclient: Update to 2.2.4.
    
    * gnu/packages/databases.scm (python-mysqlclient): Update to 2.2.4.
    [arguments]<#:phases>: Remove 'fix-test phase.
    [native-inputs]: Add pkg-config.
    
    Change-Id: I57a0b84eb0d56f9cea619b226090cc1ccd84812b
    Signed-off-by: Hilton Chain <hako@ultrarare.space>
---
 gnu/packages/databases.scm | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 9b3d6ffbed..238ba34053 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4201,26 +4201,19 @@ files or Python scripts that define a list of migration 
steps.")
 (define-public python-mysqlclient
   (package
     (name "python-mysqlclient")
-    (version "2.0.1")
+    (version "2.2.4")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "mysqlclient" version))
        (sha256
-        (base32 "1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv"))))
+        (base32 "0hdznfz9095d2qhl7awbp39s7wpqbxn37xzan487qzaf8srrzg1k"))))
     (build-system pyproject-build-system)
     (arguments
-     (list #: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
+     (list #:test-flags
            #~'("tests/test__mysql.py"   ;tests not needing a live db
                "tests/test_MySQLdb_times.py")))
-    (native-inputs (list python-pytest))
+    (native-inputs (list pkg-config python-pytest))
     (inputs (list mariadb-connector-c))
     (home-page "https://github.com/PyMySQL/mysqlclient";)
     (synopsis "MySQLdb is an interface to the popular MySQL database server 
for Python")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]