guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 9f31f50ad3034bf9654a5e82554f17d878783c5e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jun 24 12:35:43 2025 +0100

    gnu: python-cantools: Update to 40.2.3.
    
    Fixing #787.
    
    * gnu/packages/python-xyz.scm (python-cantools): Update to 40.2.3.
    [arguments] <phases>: Remove 'build-doc and 'install-doc; add
    'set-version.
    [propagated-inputs]: Remove python-parameterized.
    [native-inputs]: Remove python-sphinx and texinfo; add
    python-parameterized, python-pytest, python-setuptools,
    python-setuptools-scm, and python-wheel.
    
    Change-Id: I57b20e8df1406795c8a22a38bec470e6294dabbf
---
 gnu/packages/python-xyz.scm | 34 +++++++++++++++-------------------
 1 file changed, 15 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 43a312c265..5b82b19828 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5086,7 +5086,7 @@ of primitive data types like @code{char}, @code{int}, 
etc.")
 (define-public python-cantools
   (package
     (name "python-cantools")
-    (version "37.0.7")
+    (version "40.2.3")
     (source
      (origin
        ;; We take the sources from the Git repository as the documentation is
@@ -5097,28 +5097,25 @@ of primitive data types like @code{char}, @code{int}, 
etc.")
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "1qcf1fcwif7w70qmhxw2b8kqh420igbinq60p1chzf98xcb0ansx"))))
-    (build-system python-build-system)
+        (base32 "09cpsma0qgra7yjvcppripsrhr70ivc2bgcg1vqi64125dpi8a3x"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
       #:phases
+      ;; TODO: Build documentation, it's failing with error:
+      ;; importlib.metadata.PackageNotFoundError: No package metadata was
+      ;; found for cantools.
+      ;; See: https://github.com/eerimoq/cantools/issues/190.
       #~(modify-phases %standard-phases
-          (add-after 'build 'build-doc
+          (add-before 'build 'set-version
             (lambda _
-              ;; See: https://github.com/eerimoq/cantools/issues/190.
-              (substitute* "README.rst"
-                (("https://github.com/eerimoq/cantools/raw/master\
-/docs/monitor.png")
-                 "monitor.png"))
-              (invoke "make" "-C" "docs" "man" "info")))
-          (add-after 'install 'install-doc
-            (lambda* (#:key outputs #:allow-other-keys)
-              (let* ((info (string-append #$output "/share/info"))
-                     (man1 (string-append #$output "/share/man/man1")))
-                (install-file "docs/_build/texinfo/cantools.info" info)
-                (install-file "docs/_build/man/cantools.1" man1)))))))
-    (native-inputs (list python-sphinx texinfo))
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-parameterized
+           python-pytest
+           python-setuptools
+           python-setuptools-scm
+           python-wheel))
     (propagated-inputs
      (list python-argparse-addons
            python-bitstruct
@@ -5126,7 +5123,6 @@ of primitive data types like @code{char}, @code{int}, 
etc.")
            python-crccheck
            python-diskcache
            python-matplotlib
-           python-parameterized
            python-textparser))
     (home-page "https://github.com/eerimoq/cantools";)
     (synopsis "Tools for the Controller Area Network (CAN) bus protocol")

Reply via email to