From c7685fdbccf842e6cd13712729de0c6084c93774 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 6 Nov 2025 11:15:47 +0000 Subject: [PATCH] gnu: python-speg: Update to 0.3-0.877acdd. * gnu/packages/python-xyz.scm (python-speg): Update to 877acddfd5ac5ae8b4a4592d045e74e108477643 commit. [source]: Switch to git-fetch providing tests. [arguments] : Enable. [propagated-inputs]: Add python-six. [native-inputs]: Remove python-wheel and unzip; add python-pytest. Change-Id: Ied063f1dc7660680a053012c8e7d99bb2b047375 --- gnu/packages/python-xyz.scm | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2657f6dac1b01e731e87e92f969fab108f376a53..a98a46dde85ace24d14d50d2761213b84ecf551f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30098,18 +30098,27 @@ that take parsers as their arguments and return them as result values.") (define-public python-speg (package (name "python-speg") - (version "0.3") + ;; 0.3 was released in 2017, the latest change on master HEAD is from 2018. + (properties '((commit . "877acddfd5ac5ae8b4a4592d045e74e108477643") + (revision . "0"))) + (version (git-version "0.3" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) (source (origin - (method url-fetch) - (uri (pypi-uri "speg" version ".zip")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/avakar/speg") + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) (sha256 - (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh")))) + (base32 "0lhms1sfvmnplcwq8qwwvkrcz4sgi9yprvrkjz7p84fjhk86n4sb")))) (build-system pyproject-build-system) - (arguments - `(#:tests? #f)) ;FIXME: tests fail, not sure why (native-inputs - (list python-setuptools python-wheel unzip)) + (list python-pytest + python-setuptools)) + (propagated-inputs + (list python-six)) (home-page "https://github.com/avakar/speg") (synopsis "PEG-based parser interpreter with memoization") (description "This package is a PEG-based parser and interpreter with