guix_mirror_bot pushed a commit to branch master
in repository guix.
commit c575697e8f8d99365d1222f906a8dd1fffb33de1
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Nov 22 12:00:01 2025 +0100
gnu: python-esprima: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-esprima):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Configure but disable tests with a comment.
[native-inputs]: Add python-setuptools.
[synopsis, description]: Improve style.
Change-Id: I27793284c263032dcb929ca1de6302f4663e148f
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++---------
1 file changed, 35 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4598ca7b79..33c61742b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34322,17 +34322,43 @@ supports any Galois field higher than 2^3, but not
binary streams.")
(name "python-esprima")
(version "4.0.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "esprima" version))
- (sha256
- (base32 "1vi32g991lxcxzmncfiszh8m9bwkh4887szskkdi0a9wdn3imnq8"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Kronuz/esprima-python")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0yk80j63mds4qvdjk79yp6a831vl5kc17cwkxamir1wp2w4hznas"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: pytest fails to collect tests, and a few tests are failing
+ ;; using unittest backend. In particular, offsets with math characters
+ ;; and uncompiled regexps.
+ #:tests? #f
+ #:test-backend #~'unittest
+ #:test-flags
+ #~(list "-k"
+ (string-join (list
+ ;; XXX: Character offsets with maths.
+ "not test_math_alef"
+ "test_math_dal_part"
+ "test_math_kaf_lam"
+ "test_math_zain_start"
+ ;; XXX: Uncompiled regexps.
+ "test_yield_arg_regexp1"
+ "test_yield_arg_regexp2"
+ "test_migrated_0005_source"
+ "test_u_flag_valid_range"
+ "test_migrated_0049"
+ "test_migrated_0050_source")
+ " and not "))))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/Kronuz/esprima-python")
- (synopsis
- "ECMAScript parsing infrastructure for analysis in Python")
+ (synopsis "ECMAScript parsing infrastructure for analysis in Python")
(description
- "This package provides ECMAScript parsing infrastructure for
+ "This package provides ECMAScript parsing infrastructure for
multipurpose analysis in Python.")
(license license:bsd-3)))