summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-02 22:47:03 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-02 22:48:38 +0100
commit9b191b56ce6f74e22745684007105dfd80ebae7d (patch)
tree6f9231088c82f8cf6e107fcce619d4724b2231d3 /gnu/packages/python-xyz.scm
parente78a73d5dc973f2fa5d682c44fbef172ecde363a (diff)
gnu: python-yq: Refresh package style.
* gnu/packages/python-xyz.scm (python-yq): Use G-expressions, adjust indentation. [description]: Fix fill column. Change-Id: I6cca1515ce32319fce191d6560ec0b9da0ad8c1b
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm28
1 files changed, 13 insertions, 15 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5f25249d75..0fffeaa040 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28669,21 +28669,19 @@ style guide, even if the original code didn't violate the style guide.")
(method url-fetch)
(uri (pypi-uri "yq" version))
(sha256
- (base32
- "1wklgs3d9si475nffw9agq5kgk8bdicbsmlj4sx4kiw64ji4ma1h"))))
+ (base32 "1wklgs3d9si475nffw9agq5kgk8bdicbsmlj4sx4kiw64ji4ma1h"))))
(build-system python-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "yq/__init__.py"
- (("Popen\\(\\[\"jq")
- (string-append
- "Popen([\""
- (assoc-ref inputs "jq")
- "/bin/jq")))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "yq/__init__.py"
+ (("Popen\\(\\[\"jq")
+ (string-append
+ "Popen([\""
+ #$(this-package-input "jq") "/bin/jq"))))))))
(inputs
(list python-argcomplete python-pyyaml python-xmltodict python-toml jq))
(native-inputs
@@ -28692,8 +28690,8 @@ style guide, even if the original code didn't violate the style guide.")
(synopsis "Command-line YAML/XML processor")
(description
"This package provides @command{yq} and @command{xq} for processing YAML
-and XML respectively. The processing is done through @command{jq}, @command{jq}
-filters can be used to process the data as it passes through.")
+and XML respectively. The processing is done through @command{jq},
+@command{jq} filters can be used to process the data as it passes through.")
(license license:asl2.0)))
(define-public python-gyp