From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH] gnu: Add python-stem. Date: Thu, 11 Aug 2016 16:26:03 +0000 Message-ID: <87eg5vtgpw.fsf@we.make.ritual.n0.is> References: <87d1lftmys.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXso5-0008Ef-1y for guix-devel@gnu.org; Thu, 11 Aug 2016 12:26:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXso3-0005J9-Ob for guix-devel@gnu.org; Thu, 11 Aug 2016 12:26:09 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:40420 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXso3-0005H7-9F for guix-devel@gnu.org; Thu, 11 Aug 2016 12:26:07 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 9816c0ce TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Thu, 11 Aug 2016 16:26:04 +0000 (UTC) In-Reply-To: <87d1lftmys.fsf@we.make.ritual.n0.is> 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-stem.patch >From d6a5487d361eb667448871c42c96d9007a264214 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 11 Aug 2016 13:42:22 +0000 Subject: [PATCH] gnu: Add python-stem. * gnu/packages/python.scm (python-stem): New variable. --- gnu/packages/python.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ff1c5c..e044698 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -45,7 +45,7 @@ #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style gpl2 gpl2+ gpl3 gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+ isc mpl2.0 psfl public-domain repoze unlicense x11-style - zpl2.1)) + zpl2.1 lgpl3)) #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages algebra) @@ -9852,3 +9852,34 @@ etc.") (package (inherit base) (name "ptpython2")))) + +(define-public python-stem + (package + (name "python-stem") + (version "1.4.1b") + (source + (origin + (method url-fetch) + (uri (pypi-uri "stem" version ".tar.bz2")) + (sha256 + (base32 + "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7")))) + (build-system python-build-system) + (arguments + `(#:phases + (alist-replace + 'check + (lambda _ + (zero? (system* "./run_tests.py" "--unit"))) + %standard-phases))) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-mock" ,python-mock))) + (home-page "https://stem.torproject.org/") + (synopsis + "Stem is a Python controller library that allows applications to interact with Tor") + (description + "Stem is a Python controller library for Tor. With it you can use Tor's +control protocol to script against the Tor process and read descriptor data relays +publish about themselves.") + (license lgpl3))) -- 2.9.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python2-stem.patch >From e62145984db9dc694f242e2618b9644c06144a7d Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 11 Aug 2016 16:23:34 +0000 Subject: [PATCH] gnu: Add python2-stem. * gnu/packages/python.scm (python2-stem): New variable. --- gnu/packages/python.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e044698..d893f57 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9883,3 +9883,6 @@ etc.") control protocol to script against the Tor process and read descriptor data relays publish about themselves.") (license lgpl3))) + +(define-public python2-stem + (package-with-python2 python-stem)) -- 2.9.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit -- ♥Ⓐ ng0 For non-prism friendly talk find me on http://www.psyced.org --=-=-=--