Subject: [bug#67902] [PATCH v5 38/54] gnu: Add php-sebastian-complexity.

From: Nicolas Graves <[email-masked]>
Date: Fri, 18 Oct 2024 01:06:01 +0200

* gnu/packages/php-bootstrap.scm (php-sebastian-complexity): New variable.
---
 gnu/packages/php-bootstrap.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/php-bootstrap.scm b/gnu/packages/php-bootstrap.scm
index 8c6a630737..4304c95880 100644
--- a/gnu/packages/php-bootstrap.scm
+++ b/gnu/packages/php-bootstrap.scm
@@ -916,3 +916,27 @@ (define-public php-sebastian-comparator
 for equality.")
     (home-page "https://github.com/sebastianbergmann/comparator")
     (license license:bsd-3)))
+
+(define-public php-sebastian-complexity
+  (package
+    (name "php-sebastian-complexity")
+    (version "2.0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sebastianbergmann/complexity")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0mrivs3dxv4kyy9js6n33ardqnijg9v6jiiypb7b97xgmf4w694w"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (inputs
+     (list php-nikic-php-parser))
+    (synopsis "Calculate the complexity of PHP code")
+    (description "This package provides a PHP library for calculating the
+complexity of PHP code units.")
+    (home-page "https://github.com/sebastianbergmann/complexity")
+    (license license:bsd-3)))
-- 
2.46.0