summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-10 01:33:23 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-11 21:34:59 +0000
commit4befed0e4181884f39b1e47695cceab999b29c11 (patch)
treef2634628cdf391d7d4db83f149d31049ace8bc11 /gnu/packages/python-xyz.scm
parentd895ba55b695be2cf10e125bbb39f2b3f9333eb6 (diff)
gnu: python-bashlex: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-bashlex): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-pytest, python-setuptools. [arguments, description]: Improve style. Change-Id: Id449a9d2381b8bc29246e23690c1dae83f857aaa Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm36
1 files changed, 20 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1ca21922490..60bf1440049 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30607,25 +30607,29 @@ in Python.")
(version "0.18")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "bashlex" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/idank/bashlex")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1vln4zszzdqkypiir2hxsvkhgbf816005lbgqcw66rymqq0kmc2v"))))
- (build-system python-build-system)
+ (base32 "00idgf9153jvp0g5ajbcfgpb6ffl2a8rcy3w5n9iirgxa7vlvmkm"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'pregenerate-yacc-tables
- (lambda _
- ;; parser.py caches tables, which attempts to write to site lib
- ;; see https://github.com/idank/bashlex/issues/51
- (invoke "python" "-c" "import bashlex"))))))
- (home-page
- "https://github.com/idank/bashlex")
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'pregenerate-yacc-tables
+ (lambda _
+ ;; parser.py caches tables, which attempts to write to site lib
+ ;; see https://github.com/idank/bashlex/issues/51
+ (invoke "python" "-c" "import bashlex"))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (home-page "https://github.com/idank/bashlex")
(synopsis "Python parser for bash")
- (description "@code{bashlex} is a Python port of the parser used
-internally by GNU bash.
+ (description
+ "@code{bashlex} is a Python port of the parser used internally by GNU
+bash.
For the most part it's transliterated from C, the major differences are: