summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-03-11 22:24:38 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-03-11 22:43:45 +0100
commit6bd7d4cb7488d345187090b9f393728c2865257e (patch)
tree21e92e808e9e6ff2b3bdd3273c6d04d1a0b376a8 /gnu
parent6006727974c8adfe6eea198a0191c313b3089e4f (diff)
downloadguix-6bd7d4cb7488d345187090b9f393728c2865257e.tar.gz
gnu: python2-radon: Fix build.
* gnu/packages/python-xyz.scm (python-radon)[properties]: New field.
* gnu/packages/python-xyz.scm (python2-radon)[propagated-inputs]: Add
PYTHON2-CONFIGPARSER and PYTHON2-FUTURE.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 58d09ced57..eb40abe619 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13459,10 +13459,17 @@ Supported metrics are:
 @item Halstead metrics (all of them)
 @item the Maintainability Index (a Visual Studio metric)
 @end itemize")
+    (properties `((python2-variant . ,(delay python2-radon))))
     (license license:expat)))
 
 (define-public python2-radon
-  (package-with-python2 python-radon))
+  (let ((base (package-with-python2 (strip-python2-variant python-radon))))
+    (package
+      (inherit base)
+      (propagated-inputs
+       `(("python-configparser" ,python2-configparser)
+         ("python-future" ,python2-future)
+         ,@(package-propagated-inputs base))))))
 
 (define-public python-sure
   (package