From patchwork Mon Aug 15 12:25:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Milosavljevic X-Patchwork-Id: 14583 Received: (qmail 107237 invoked by uid 89); 15 Aug 2016 12:26:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=3.1.1 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Aug 2016 12:26:01 +0000 Received: from localhost ([::1]:36643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZGxr-0004D3-E8 for patchwork@sourceware.org; Mon, 15 Aug 2016 08:25:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZGxN-0003vx-Gf for guix-devel@gnu.org; Mon, 15 Aug 2016 08:25:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZGxI-0008IO-Bn for guix-devel@gnu.org; Mon, 15 Aug 2016 08:25:28 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:45272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZGxI-0008IE-41 for guix-devel@gnu.org; Mon, 15 Aug 2016 08:25:24 -0400 Received: from dayas.3.home (77.116.250.13.wireless.dyn.drei.com [77.116.250.13]) by dd1012.kasserver.com (Postfix) with ESMTPSA id D0AEE1CA00E7; Mon, 15 Aug 2016 14:25:21 +0200 (CEST) From: Danny Milosavljevic To: guix-devel@gnu.org Subject: [PATCH] gnu: python: add pyserial. Date: Mon, 15 Aug 2016 14:25:01 +0200 Message-Id: <20160815122501.2433-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.9.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 85.13.128.8 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/python.scm (python-pyserial, python-pyserial2): New variables. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5cc54d0..36c5d52 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9886,3 +9886,37 @@ 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 (string-append + "https://pypi.python.org/packages/" + "3c/d8/a9fa247ca60b02b3bebbd61766b4f321393b57b13c53b18f6f62cf172c08/" + "pyserial-" version ".tar.gz")) + (sha256 + (base32 + "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (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 license:bsd-3))) + +(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))))))