Subject: [bug#67902] [PATCH 70/95] gnu: Add php-symfony-lock.

From: Nicolas Graves <[email-masked]>
Date: Tue, 19 Dec 2023 14:57:51 +0100

* gnu/packages/php-xyz.scm (php-symfony-lock): New variable.

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

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 8104319e4c..a88ce09d63 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -1885,3 +1885,39 @@ (define-public php-symfony-intl
     (home-page "https://symfony.com")
     (license license:expat)))
 
+(define-public php-symfony-lock
+  (package
+    (name "php-symfony-lock")
+    (version "6.3.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/symfony/lock")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1ldnv0hlakxi3cs1x39swg7kr60rj8m55ivxfn7ggfw38b8725xz"))))
+    (build-system composer-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              (invoke "redis-server" "--daemonize" "yes"))))))
+    (inputs
+     (list php-psr-log php-symfony-deprecation-contracts))
+    (native-inputs
+     (list php-doctrine-dbal
+           php-phpunit-phpunit
+           php-predis-predis
+           redis
+           util-linux))
+    (synopsis "Manage PHP locks")
+    (description
+     "This package provides utilities to create and manage locks in PHP, a
+mechanism to provide exclusive access to a shared resource.")
+    (home-page "https://symfony.com")
+    (license license:expat)))
+
-- 
2.41.0