all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH v2] gnu: python: Add pyserial.
Date: Tue, 16 Aug 2016 03:40:43 +0200	[thread overview]
Message-ID: <20160816014043.21149-1-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816002940.GA16946@jasmine>

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

gnu: python: Add pyserial.

* gnu/packages/python.scm (python-pyserial, python-pyserial2): New variables.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-python-Add-pyserial.patch --]
[-- Type: text/x-patch; name="0001-gnu-python-Add-pyserial.patch", Size: 1319 bytes --]

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5cc54d0..8a2f094 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9886,3 +9886,32 @@ relays publish about themselves.")
 
 (define-public python2-stem
   (package-with-python2 python-stem))
+
+(define-public python-pyserial
+ (package
+  (name "python-pyserial")
+  (version "3.1.1")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "pyserial" version))
+      (sha256
+        (base32
+          "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
+  (build-system python-build-system)
+  (home-page
+    "https://github.com/pyserial/pyserial")
+  (synopsis "Python Serial Port Bindings")
+  (description "@code{pyserial} provide serial port bindings for Python. 
+It supports different byte sizes, stop bits, parity and flow control with RTS/CTS and/or Xon/Xoff. 
+The port is accessed in RAW mode.")
+  (license bsd-3)
+  (properties `((python2-variant . ,(delay python2-pyserial))))))
+
+(define-public python2-pyserial
+  (let ((base (package-with-python2 (strip-python2-variant python-pyserial))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))

  reply	other threads:[~2016-08-16  1:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-15 12:25 [PATCH] gnu: python: add pyserial Danny Milosavljevic
2016-08-16  0:29 ` Leo Famulari
2016-08-16  1:40   ` Danny Milosavljevic [this message]
2016-08-16 17:19     ` [PATCH v2] gnu: python: Add pyserial 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=20160816014043.21149-1-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --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.