Subject: [PATCH v5 04/54] gnu: Add php-doctrine-annotations.

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

* gnu/packages/php-bootstrap.scm (php-doctrine-annotations): 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 d5672aacbb..1c9da52a55 100644
--- a/gnu/packages/php-bootstrap.scm
+++ b/gnu/packages/php-bootstrap.scm
@@ -57,3 +57,27 @@ (define-public composer-classloader
 build its autoloading feature.  This package is used by the composer-build-system
 to build its own store-aware autoloading feature.")
     (license license:expat)))
+
+(define-public php-doctrine-annotations
+  (package
+    (name "php-doctrine-annotations")
+    (version "2.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/doctrine/annotations")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "04hsykqcigvmv6rvwjay5scvjji6rcqzwdw9clzfa3xx50mbz38n"))))
+    (build-system composer-build-system)
+    ;; Native-inputs would make us include the whole symfony package chain.
+    (arguments (list #:tests? #f))
+    (inputs
+     (list php-doctrine-lexer php-psr-cache))
+    (synopsis "Docblock PHP Annotations Parser")
+    (description
+     "This package provides a Docblock PHP Annotations Parser.")
+    (home-page "https://www.doctrine-project.org/projects/annotations")
+    (license license:expat)))
-- 
2.46.0