diff mbox series

[bug#67902,v3,06/96] gnu: Add php-doctrine-common.

Message ID 20241007000046.25625-6-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v3,01/96] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 6, 2024, 11:59 p.m. UTC
* 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 mbox series

Patch

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)))
+