GNU bug report logs - #67902
[PATCH 00/95] PHP package chain.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Tue, 19 Dec 2023 13:48:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 67902 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [bug#67902] [PATCH v5 22/54] gnu: Add php-phpstan-phpdoc-parser.
Date: Fri, 18 Oct 2024 01:05:45 +0200
* gnu/packages/php-bootstrap.scm (php-phpstan-phpdoc-parser): New variable.
---
 gnu/packages/php-bootstrap.scm | 40 ++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/php-bootstrap.scm b/gnu/packages/php-bootstrap.scm
index bb687c25bc..179e33e197 100644
--- a/gnu/packages/php-bootstrap.scm
+++ b/gnu/packages/php-bootstrap.scm
@@ -543,3 +543,43 @@ (define-public php-phpspec-prophecy
 5.3+ projects.")
     (home-page "https://github.com/phpspec/prophecy")
     (license license:expat)))
+
+(define-public php-phpstan-phpdoc-parser
+  (package
+    (name "php-phpstan-phpdoc-parser")
+    (version "1.24.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/phpstan/phpdoc-parser")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0sdnij33y0baqi4wzspzr67id00vk1p0n851s2a056njpyym65lv"))
+       (snippet '(begin
+                   (delete-file "tests/abnfgen-0.20.tar.gz")
+                   (delete-file "build-abnfgen.sh")))))
+    (build-system composer-build-system)
+    (arguments
+     (list
+      #:test-flags ''("--bootstrap" "vendor/autoload.php")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'unbundle-abnfgen
+            (lambda _
+              (substitute* "tests/PHPStan/Parser/FuzzyTest.php"
+                (("__DIR__ \\. '/\\.\\./\\.\\./\\.\\./tools/abnfgen/abnfgen'")
+                 (string-append "'" #$(this-package-native-input "abnfgen")
+                                "/bin/abnfgen'"))))))))
+    (native-inputs
+     (list abnfgen
+           php-phpunit-phpunit
+           php-symfony-process
+           php-doctrine-annotations))
+    (synopsis "PHPDoc parser")
+    (description
+     "This package provides a PHPDoc parser with support for nullable,
+intersection and generic types.")
+    (home-page "https://github.com/phpstan/phpdoc-parser")
+    (license license:expat)))
-- 
2.46.0





This bug report was last modified 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.