summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorng0 <ng0@we.make.ritual.n0.is>2016-08-11 13:42:22 +0000
committerLeo Famulari <leo@famulari.name>2016-08-12 13:56:17 -0400
commitb227f0be8931831a574966c9a69667e81debb580 (patch)
treebc7b458d8caae581777ff23d5b32ffabb6039179 /gnu
parent939111ca9eefe80f03f649dc768da6d064db45e3 (diff)
gnu: Add python-stem.
* gnu/packages/python.scm (python-stem, python2-stem): New variables. Co-authored-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm38
1 files changed, 37 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9d5ff749e7..5cc54d001b 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)
@@ -9850,3 +9850,39 @@ 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
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (zero? (system* "./run_tests.py" "--unit")))))))
+ (native-inputs
+ `(("python-mock" ,python-mock)
+ ("python-pep8" ,python-pep8)
+ ("python-pyflakes" ,python-pyflakes)))
+ (inputs
+ `(("python-pycrypto" ,python-pycrypto)))
+ (home-page "https://stem.torproject.org/")
+ (synopsis
+ "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)))
+
+(define-public python2-stem
+ (package-with-python2 python-stem))