mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: python-cheetah: Update to 3.2.4.
* gnu/packages/python-xyz.scm (python-cheetah): Update to 3.2.4. [arguments]: Add a 'fix-tests' phase.
This commit is contained in:
parent
c0792d77dd
commit
6528f3e0b6
1 changed files with 8 additions and 2 deletions
|
@ -13109,14 +13109,14 @@ (define-public python2-xopen
|
|||
(define-public python-cheetah
|
||||
(package
|
||||
(name "python-cheetah")
|
||||
(version "3.1.0")
|
||||
(version "3.2.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "Cheetah3" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1ihag9cxll6b86fc8v5lkhmr3brdbi4yiz16zpgw79yylmv8fgr9"))))
|
||||
"0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:modules ((guix build utils)
|
||||
|
@ -13131,6 +13131,12 @@ (define-public python-cheetah
|
|||
(("#!/usr/bin/env python")
|
||||
(string-append "#!" (which "python"))))
|
||||
#t))
|
||||
(add-after 'unpack 'fix-tests
|
||||
(lambda _
|
||||
(substitute* "Cheetah/Tests/ImportHooks.py"
|
||||
(("os.path.dirname\\(__file__\\)")
|
||||
(string-append "'" (getcwd) "/Cheetah/Tests'")))
|
||||
#t))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(let ((cwd (getcwd)))
|
||||
|
|
Loading…
Reference in a new issue