guix-devel
[Top][All Lists]
Advanced

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

[PATCH v2 01/10] gnu: Add python2-pytest-cache.


From: Ben Woodcroft
Subject: [PATCH v2 01/10] gnu: Add python2-pytest-cache.
Date: Sun, 24 Apr 2016 23:06:15 +1000

* gnu/packages/python.scm (python-pytest-cache)[properties]: New field.
(python2-pytest-cache): New variable.
---
 gnu/packages/python.scm | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0379352..ecd16c5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2015 Eric Dvorsak <address@hidden>
 ;;; Copyright © 2015, 2016 David Thompson <address@hidden>
 ;;; Copyright © 2015, 2016 Leo Famulari <address@hidden>
-;;; Copyright © 2015 Ben Woodcroft <address@hidden>
+;;; Copyright © 2015, 2016 Ben Woodcroft <address@hidden>
 ;;; Copyright © 2015, 2016 Erik Edrosa <address@hidden>
 ;;; Copyright © 2015, 2016 Efraim Flashner <address@hidden>
 ;;; Copyright © 2015 Kyle Meyer <address@hidden>
@@ -6965,7 +6965,17 @@ minimal and fast API targetting the following uses:
     (description "The pytest-cache plugin provides tools to rerun failures from
 the last py.test invocation.")
     (home-page "https://bitbucket.org/hpk42/pytest-cache/";)
-    (license license:expat)))
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-pytest-cache))))))
+
+(define-public python2-pytest-cache
+  (let ((base (package-with-python2
+                  (strip-python2-variant python-pytest-cache))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))
 
 (define-public python-pytest-localserver
   (package
-- 
2.5.0




reply via email to

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