all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add python-stem.
Date: Thu, 11 Aug 2016 14:11:07 +0000	[thread overview]
Message-ID: <87d1lftmys.fsf@we.make.ritual.n0.is> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 51 bytes --]

These 2 patches add python-stem and python2-stem.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-stem.patch --]
[-- Type: text/x-patch, Size: 2182 bytes --]

From 422e5aea16aafbc76a1480b577eef1fecfbf45ec Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Thu, 11 Aug 2016 13:42:22 +0000
Subject: [PATCH 1/2] 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..f3245cc 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)))
+    (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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-python2-stem.patch --]
[-- Type: text/x-patch, Size: 741 bytes --]

From 5c2c742cddccfcfdef74aeb99f125fe4ee401a2e Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Thu, 11 Aug 2016 14:08:33 +0000
Subject: [PATCH 2/2] 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 f3245cc..cbdf0a6 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


[-- Attachment #1.4: Type: text/plain, Size: 82 bytes --]


-- 
♥Ⓐ  ng0
For non-prism friendly talk find me on http://www.psyced.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

             reply	other threads:[~2016-08-11 14:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11 14:11 ng0 [this message]
2016-08-11 16:12 ` [PATCH] gnu: Add python-stem ng0
2016-08-11 16:26 ` ng0
2016-08-12 17:56   ` Leo Famulari
2016-08-12 18:52     ` ng0
2016-08-12 22:47       ` Leo Famulari
2016-08-13  7:02         ` ng0
2016-08-13 12:57           ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1lftmys.fsf@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.