From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 06/11] gnu: Add python-sh. Date: Mon, 22 Aug 2016 15:20:13 +0200 Message-ID: <20160822132018.19828-6-david@craven.ch> References: <20160822132018.19828-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9d-0007wW-Mv for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbp9b-000580-D2 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:40 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:51940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9a-00055v-09 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:39 -0400 In-Reply-To: <20160822132018.19828-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-sh): New variable. (python2-sh): New variable. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a703be3..8720341 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10062,3 +10062,29 @@ binary or text.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-sh + (package + (name "python-sh") + (version "1.11") + (source (origin + (method url-fetch) + (uri (pypi-uri "sh" version)) + (sha256 + (base32 + "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; no tests + (home-page "https://github.com/amoffat/sh") + (synopsis "Python subprocess interface") + (description "Python subprocess interface.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-sh)))))) + +(define-public python2-sh + (let ((base (package-with-python2 (strip-python2-variant python-sh)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.0