guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python-cheetah: Update to 3.2.4.


From: guix-commits
Subject: 01/02: gnu: python-cheetah: Update to 3.2.4.
Date: Sun, 10 May 2020 04:09:33 -0400 (EDT)

glv pushed a commit to branch master
in repository guix.

commit 6528f3e0b60855b1396086935d23f32afbadb60e
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Sun May 10 09:51:19 2020 +0200

    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.
---
 gnu/packages/python-xyz.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e953dc4..29b3305 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13109,14 +13109,14 @@ possible on all supported Python versions.")
 (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 @@ possible on all supported Python versions.")
                         (("#!/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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]