* 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 <e...@dvorsak.fr> ;;; Copyright © 2015, 2016 David Thompson <da...@gnu.org> ;;; Copyright © 2015, 2016 Leo Famulari <l...@famulari.name> -;;; Copyright © 2015 Ben Woodcroft <donttrust...@gmail.com> +;;; Copyright © 2015, 2016 Ben Woodcroft <donttrust...@gmail.com> ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edr...@gmail.com> ;;; Copyright © 2015, 2016 Efraim Flashner <efr...@flashner.co.il> ;;; Copyright © 2015 Kyle Meyer <k...@kyleam.com> @@ -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