Subject: [PATCH v4 06/98] gnu: Add php-doctrine-common.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 23:43:34 +0200

* gnu/packages/php-xyz.scm (php-doctrine-common): New variable.

Change-Id: I261b3f5e5aa32869bb6358064ac1cb049f018d6a
---
 gnu/packages/php-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 56b2ce9f7d..cfff0d2b1a 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -108,3 +108,30 @@ (define-public php-doctrine-collections
     (home-page "https://www.doctrine-project.org/projects/collections")
     (license license:expat)))
 
+(define-public php-doctrine-common
+  (package
+    (name "php-doctrine-common")
+    (version "3.4.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/doctrine/common")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1hivhghwmqs5jaiicayni35xkpclmdf5r9fb15y5jx7rl5wrsh7f"))))
+    (build-system composer-build-system)
+    (arguments
+     '(#:test-flags '("--bootstrap" "vendor/autoload.php")))
+    (inputs
+     (list php-doctrine-persistence))
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "PHP utility library for Doctrine projects")
+    (description
+     "This package provides additional functionality that other Doctrine
+projects depend on such as better reflection support, proxies and much more.")
+    (home-page "https://www.doctrine-project.org/projects/common")
+    (license license:expat)))
+
-- 
2.46.0