guix-commits
[Top][All Lists]
Advanced

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

04/04: gnu: python2-numpydoc: Add missing input.


From: guix-commits
Subject: 04/04: gnu: python2-numpydoc: Add missing input.
Date: Fri, 5 Feb 2021 17:34:04 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit c85f44431a08c161ca00e35d97d1ab23012749c5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Feb 5 23:29:45 2021 +0100

    gnu: python2-numpydoc: Add missing input.
    
    * gnu/packages/python-xyz.scm (python2-numpydoc)[propagated-inputs]: Add
    python2-jinja2.
    (python-numpydoc)[properties]: Record python2-variant.
---
 gnu/packages/python-xyz.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 572d48b..209bf5a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4995,10 +4995,17 @@ that client code uses to construct the grammar directly 
in Python code.")
      "Numpy's Sphinx extensions")
     (description
      "Sphinx extension to support docstrings in Numpy format.")
-    (license license:bsd-2)))
+    (license license:bsd-2)
+    (properties `((python2-variant . ,(delay python2-numpydoc))))))
 
 (define-public python2-numpydoc
-  (package-with-python2 python-numpydoc))
+  (let ((base (package-with-python2
+               (strip-python2-variant python-numpydoc))))
+    (package
+      (inherit base)
+      (propagated-inputs
+       `(("python2-jinja2" ,python2-jinja2)
+         ,@(package-propagated-inputs base))))))
 
 (define-public python-numexpr
   (package



reply via email to

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