diff mbox series

[bug#67902,v4,91/98] gnu: Add php-doctrine-annotations.

Message ID 20241007214530.4420-91-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v4,01/98] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 7, 2024, 9:44 p.m. UTC
* gnu/packages/php-xyz.scm (php-doctrine-annotations): New variable.

Change-Id: Ifd8f2f247f94b47833e6ef8b80788f3a3e9dcca4
---
 gnu/packages/php-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 03f99b6fe7..0b273fabaf 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -2441,3 +2441,32 @@  (define-public php-doctrine-cache
     (home-page "https://www.doctrine-project.org/projects/cache")
     (license license:expat)))
 
+;; This package is placed here because it needs to be defined after
+;; php-symfony-cache due to package inheritance.
+(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)
+    (inputs
+     (list php-doctrine-lexer php-psr-cache))
+    (native-inputs
+     (list php-phpunit-phpunit
+           (package/inherit php-symfony-cache
+             (arguments '(#:tests? #f))
+             (native-inputs '()))))
+    (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)))
+