guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 0bf6c8b73e191ee41bfbfaed7de4a876625fb552
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Sep 20 23:33:20 2025 +0200

    gnu: python-zope-sqlalchemy: Switch to pyproject.
    
    * gnu/packages/python-web.scm (python-zope-sqlalchemy):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Replace 'check phase.
    [native-inputs]: Add python-setuptools, python-zope-testing,
    python-zope-testrunner.
    [description]: Improve style.
    
    Change-Id: Id8e4deb548ef3609102bdd4248f14f4a582ca567
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-web.scm | 44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 34ae0b131f..7baa725f84 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4713,24 +4713,36 @@ defining data schemas.")
   (package
     (name "python-zope-sqlalchemy")
     (version "1.6")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "zope.sqlalchemy" version))
-              (sha256
-               (base32
-                "1azm2awl2ra10xl6wps3yvy14jk2rpzvsyfsb9cncm97aydbwlww"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-sqlalchemy
-           python-transaction
-           python-zope-interface))
-    (native-inputs (list python-zope-testing))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/zopefoundation/zope.sqlalchemy";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1z4gw4i95dyqxsvrahk4fav008045n8kyxpn3fa887snmpvcjhng"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (if tests?
+                  (invoke "zope-testrunner" "--test-path=src")
+                  (format #t "test suite not run~%")))))))
+    (propagated-inputs (list python-sqlalchemy python-transaction
+                             python-zope-interface))
+    (native-inputs (list python-zope-testing python-zope-testrunner
+                         python-setuptools))
     (home-page "https://github.com/zopefoundation/zope.sqlalchemy";)
     (synopsis "Minimal SQLAlchemy transaction integration for Zope")
-    (description "The aim of this package is to unify the plethora of existing
-packages integrating SQLAlchemy with Zope's transaction management.  As such,
-it only provides a data manager and makes no attempt to define a @i{zopeish}
-way to configure engines.")
+    (description
+     "The aim of this package is to unify the plethora of existing packages
+integrating SQLAlchemy with Zope's transaction management.  As such,it only
+provides a data manager and makes no attempt to define a @i{zopeish} way to
+configure engines.")
     (license license:zpl2.1)))
 
 (define-public python-zope-configuration

Reply via email to