Subject: [bug#67902] [PATCH v3 90/96] gnu: Add php-doctrine-cache.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 02:00:25 +0200

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

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

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 9b3f052ba0..03f99b6fe7 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -2407,3 +2407,37 @@ (define-public php-symfony-yaml
     (home-page "https://symfony.com")
     (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-cache
+  (package
+    (name "php-doctrine-cache")
+    (version "2.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/doctrine/cache")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dq1sylirjhps485s748qmb79cz64njs9wy9qxj10h3r01b6knz6"))))
+    (build-system composer-build-system)
+    (arguments
+     '(#:test-flags '("--bootstrap" "vendor/autoload.php")))
+    (native-inputs
+     (list php-phpunit-phpunit
+           php-psr-cache
+           php-cache-integration-tests
+           (package/inherit php-symfony-cache
+             (arguments '(#:tests? #f))
+             (native-inputs '()))
+           php-symfony-var-exporter))
+    (synopsis "PHP cache library")
+    (description
+     "This package provides a PHP cache popular library.  This implementation
+supports many different drivers such as redis, memcache, apc, mongodb and
+others.")
+    (home-page "https://www.doctrine-project.org/projects/cache")
+    (license license:expat)))
+
-- 
2.46.0