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

commit fbb2fcb5a3e6cf9031d60aa44d9d12a4c89b8277
Author: Nicolas Graves <[email protected]>
AuthorDate: Mon Mar 31 08:18:47 2025 +0200

    gnu: cpplint: Update to 2.0.0.
    
    * gnu/packages/cpp.scm (cpplint): Update to 2.0.0.
    [arguments]{phases}: Add phase 'patch-build-system.
    [native-inputs]: Add python-parameterized, python-pytest-timeout.
    
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/cpp.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index afcd810548..a102a5d468 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1605,7 +1605,7 @@ library.")
 (define-public cpplint
   (package
     (name "cpplint")
-    (version "1.5.5")
+    (version "2.0.0")
     (source
      (origin
        (method git-fetch)
@@ -1615,7 +1615,7 @@ library.")
              (url "https://github.com/cpplint/cpplint";)
              (commit version)))
        (sha256
-        (base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15"))
+        (base32 "06km4wh4944az1hk61g5w8pjhbvbccpgarz1dy7vhwkhfvmvggnk"))
        (file-name (git-file-name name version))))
     (build-system pyproject-build-system)
     (arguments
@@ -1624,6 +1624,11 @@ library.")
                        ,@%pyproject-build-system-modules)
            #:phases
            #~(modify-phases (@ (guix build pyproject-build-system) 
%standard-phases)
+               (add-after 'unpack 'patch-build-system
+                 (lambda _
+                   (substitute* "pyproject.toml"
+                     (("setuptools\\.build_meta:__legacy__")
+                      "setuptools.build_meta"))))
                (add-before 'wrap 'reduce-GUIX_PYTHONPATH
                  (lambda _
                    ;; Hide the transitive native inputs from GUIX_PYTHONPATH
@@ -1650,9 +1655,11 @@ library.")
                            (getenv "TMP_PYTHONPATH")))))))
     (native-inputs
      (list python-coverage
+           python-parameterized
            python-pytest
            python-pytest-cov
            python-pytest-runner
+           python-pytest-timeout
            python-setuptools
            python-testfixtures
            python-wheel))

Reply via email to