gnu: python-lzo: Use G-expressions.

* gnu/packages/python-compression.scm (python-lzo)[arguments]:
Rewrite as G-expressions.
This commit is contained in:
Tobias Geerinckx-Rice 2022-08-21 02:00:00 +02:00
parent 504e060126
commit 0337b65284
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -204,17 +204,18 @@ (define-public python-lzo
(base32 "0315nq6r39n51n8qqamb7xv0ib0qrh76q7g3a1977172mbndijw3")))) (base32 "0315nq6r39n51n8qqamb7xv0ib0qrh76q7g3a1977172mbndijw3"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:test-target "check" (list
#:phases #:test-target "check"
(modify-phases %standard-phases #:phases
(add-after 'unpack 'patch-setuppy #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'patch-setuppy
(substitute* "setup.py" (lambda _
(("include_dirs.append\\(.*\\)") (substitute* "setup.py"
(string-append "include_dirs.append('" (("include_dirs.append\\(.*\\)")
(assoc-ref %build-inputs "lzo") (string-append "include_dirs.append('"
"/include/lzo" #$(this-package-input "lzo")
"')")))))))) "/include/lzo"
"')"))))))))
(inputs (inputs
(list lzo)) (list lzo))
(home-page "https://github.com/jd-boyd/python-lzo") (home-page "https://github.com/jd-boyd/python-lzo")