guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-cmarkgfm: Don't depend on a specific CFFI version.


From: guix-commits
Subject: 01/02: gnu: python-cmarkgfm: Don't depend on a specific CFFI version.
Date: Wed, 16 Feb 2022 17:05:04 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit f37eb24df5ecb3a14bd42507076854cc979ddecf
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Feb 16 22:53:48 2022 +0100

    gnu: python-cmarkgfm: Don't depend on a specific CFFI version.
    
    Fixes <https://bugs.gnu.org/53883>.
    Reported by Dr. Arne Babenhauserheide <arne_bab@web.de>.
    
    * gnu/packages/markup.scm (python-cmarkgfm)[arguments]: Add phase.
    [propagated-inputs]: Change from PYTHON-CFFI-1.15 to PYTHON-CFFI.
---
 gnu/packages/markup.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index ce131a5835..0292c02a7f 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -269,6 +269,13 @@ implementation.
     (arguments
      (list #:phases
            #~(modify-phases %standard-phases
+               (add-after 'unpack 'relax-requirements
+                 (lambda _
+                   ;; Don't depend on bleeding-edge CFFI, as it is
+                   ;; apparently only needed for Python >= 3.10.
+                   (substitute* "setup.py"
+                     (("cffi>=1\\.15\\.0")
+                      "cffi>=1.0"))))
                (add-after 'unpack 'copy-cmark-gfm
                  (lambda _
                    ;; This package needs the cmark-gfm source files
@@ -291,7 +298,7 @@ implementation.
                    (when tests? (invoke "pytest" "-vv" "tests")))))))
     (native-inputs (list python-pytest))
     (inputs (list cmark-gfm))
-    (propagated-inputs (list python-cffi-1.15))
+    (propagated-inputs (list python-cffi))
     (home-page "https://github.com/theacodes/cmarkgfm";)
     (synopsis "Python bindings for GitHub's fork of cmark")
     (description



reply via email to

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