From 194d0d9843c515b4aa33a89994b64a583cf0a86a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 24 Apr 2016 20:41:15 +0300 Subject: gnu: python2-itsdangerous: Use 'strip-python2-variant'. * gnu/packages/python.scm (python2-itsdangerous): Use 'strip-python2-variant'. [native-inputs]: Add python2-setuptools. (python-itsdangerous)[inputs]: Remove python-setuptools. [properties]: Define python2-variant. --- gnu/packages/python.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 296f51ab59..4fbbb7ff2a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2401,17 +2401,21 @@ OAuth request-signing logic.") (base32 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) (build-system python-build-system) - (inputs - `(("python-setuptools" ,python-setuptools))) (home-page "http://github.com/mitsuhiko/itsdangerous") (synopsis "Python library for passing data to/from untrusted environments") (description "Itsdangerous provides various helpers to pass trusted data to untrusted environments and back.") - (license bsd-3))) + (license bsd-3) + (properties `((python2-variant . ,(delay python2-itsdangerous)))))) (define-public python2-itsdangerous - (package-with-python2 python-itsdangerous)) + (let ((base (package-with-python2 + (strip-python2-variant python-itsdangerous)))) + (package + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) (define-public python-pyyaml (package -- cgit 1.4.1