gnu: python-pycparser: Improve style.

* gnu/packages/python-xyz.scm (python-pycparser): Use G-expressions, fix
indentation.

Change-Id: I006ae084642e0e15468a2717a59e64cfdf050108
This commit is contained in:
Sharlatan Hellseher 2025-07-24 07:39:05 +01:00
parent 38c3886e50
commit e5c22a9fba
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -13037,30 +13037,31 @@ a multithreaded image-processing system with low memory needs.")
(version "2.21") (version "2.21")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pycparser" version)) (uri (pypi-uri "pycparser" version))
(sha256 (sha256
(base32 (base32
"01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76")))) "01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76"))))
(outputs '("out" "doc")) (outputs '("out" "doc"))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(replace 'check #~(modify-phases %standard-phases
(lambda _ (replace 'check
(invoke "python" "-m" "unittest" "discover"))) (lambda _
(add-after 'install 'install-doc (invoke "python" "-m" "unittest" "discover")))
(lambda* (#:key outputs #:allow-other-keys) (add-after 'install 'install-doc
(let* ((data (string-append (assoc-ref outputs "doc") "/share")) (lambda _
(doc (string-append data "/doc/" ,name "-" ,version)) (let* ((data (string-append #$output:doc "/share"))
(examples (string-append doc "/examples"))) (doc (string-append data "/doc/" #$name "-" #$version))
(mkdir-p examples) (examples (string-append doc "/examples")))
(for-each (lambda (file) (mkdir-p examples)
(copy-file (string-append "." file) (for-each (lambda (file)
(string-append doc file))) (copy-file (string-append "." file)
'("/README.rst" "/CHANGES" "/LICENSE")) (string-append doc file)))
(copy-recursively "examples" examples))))))) '("/README.rst" "/CHANGES" "/LICENSE"))
(copy-recursively "examples" examples)))))))
(home-page "https://github.com/eliben/pycparser") (home-page "https://github.com/eliben/pycparser")
(synopsis "C parser in Python") (synopsis "C parser in Python")
(description (description