diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-24 07:39:05 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:42 +0100 |
| commit | ff77d323cbc33490dba3a3c2f53293d9bb5d2a8d (patch) | |
| tree | f428aeff0dbf8eb34204ad954484740e476b7711 /gnu/packages/python-xyz.scm | |
| parent | b6827b3dd616753ea32b93e297d1a94173a98b13 (diff) | |
gnu: python-pycparser: Improve style.
* gnu/packages/python-xyz.scm (python-pycparser): Use G-expressions, fix
indentation.
Change-Id: I006ae084642e0e15468a2717a59e64cfdf050108
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 86506f7382..9134572e5a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13013,30 +13013,31 @@ a multithreaded image-processing system with low memory needs.") (version "2.21") (source (origin - (method url-fetch) - (uri (pypi-uri "pycparser" version)) - (sha256 - (base32 - "01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76")))) + (method url-fetch) + (uri (pypi-uri "pycparser" version)) + (sha256 + (base32 + "01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76")))) (outputs '("out" "doc")) (build-system python-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "python" "-m" "unittest" "discover"))) - (add-after 'install 'install-doc - (lambda* (#:key outputs #:allow-other-keys) - (let* ((data (string-append (assoc-ref outputs "doc") "/share")) - (doc (string-append data "/doc/" ,name "-" ,version)) - (examples (string-append doc "/examples"))) - (mkdir-p examples) - (for-each (lambda (file) - (copy-file (string-append "." file) - (string-append doc file))) - '("/README.rst" "/CHANGES" "/LICENSE")) - (copy-recursively "examples" examples))))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "python" "-m" "unittest" "discover"))) + (add-after 'install 'install-doc + (lambda _ + (let* ((data (string-append #$output:doc "/share")) + (doc (string-append data "/doc/" #$name "-" #$version)) + (examples (string-append doc "/examples"))) + (mkdir-p examples) + (for-each (lambda (file) + (copy-file (string-append "." file) + (string-append doc file))) + '("/README.rst" "/CHANGES" "/LICENSE")) + (copy-recursively "examples" examples))))))) (home-page "https://github.com/eliben/pycparser") (synopsis "C parser in Python") (description |
