Subject: [bug#67902] [PATCH v5 11/54] gnu: Add php-doctrine-persistence.

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

* gnu/packages/php-bootstrap.scm (php-doctrine-persistence): New variable.
---
 gnu/packages/php-bootstrap.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/php-bootstrap.scm b/gnu/packages/php-bootstrap.scm
index f55f0d6360..7fa4cb7d4b 100644
--- a/gnu/packages/php-bootstrap.scm
+++ b/gnu/packages/php-bootstrap.scm
@@ -227,3 +227,30 @@ (define-public php-doctrine-lexer
 in Top-Down, Recursive Descent Parsers in PHP.")
     (home-page "https://www.doctrine-project.org/projects/lexer")
     (license license:expat)))
+
+(define-public php-doctrine-persistence
+  (package
+    (name "php-doctrine-persistence")
+    (version "3.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/doctrine/persistence")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1fynsqafdbajbjirqzhj5gjwkfc7yz45nadgqbhrmh29i0q952bq"))))
+    (build-system composer-build-system)
+    ;; Native-inputs would make us include the whole symfony package chain.
+    (arguments
+     '(#:tests? #f
+       #:test-flags '("--bootstrap" "vendor/autoload.php")))
+    (inputs
+     (list php-doctrine-event-manager php-psr-cache))
+    (synopsis "Shared functionality between the Doctrine object mappers")
+    (description
+     "This package provides a set of shared interfaces and functionality that
+the different Doctrine object mappers share.")
+    (home-page "https://www.doctrine-project.org/projects/persistence")
+    (license license:expat)))
-- 
2.46.0