From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: python: add pyserial. Date: Mon, 15 Aug 2016 14:25:01 +0200 Message-ID: <20160815122501.2433-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.1" Return-path: 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 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 This is a multi-part message in MIME format. --------------2.9.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable * gnu/packages/python.scm (python-pyserial, python-pyserial2): New variab= les. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0001-gnu-python-add-pyserial.patch" Content-Disposition: attachment; filename="0001-gnu-python-add-pyserial.patch" Content-Transfer-Encoding: quoted-printable 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.") =20 (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/a9fa247ca60b02b3bebbd61766b4f321393b57b13c53b18f6f62= cf172c08/" + "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.= =20 +It supports different byte sizes, stop bits, parity and flow control wit= h +RTS/CTS and/or Xon/Xoff.=20 +The port is accessed in RAW mode.") + (license license:bsd-3))) + +(define-public python2-pyserial + (let ((base (package-with-python2 (strip-python2-variant python-pyseri= al)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) --------------2.9.1--