From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: python: Add pyserial. Date: Tue, 16 Aug 2016 03:40:43 +0200 Message-ID: <20160816014043.21149-1-dannym@scratchpost.org> References: <20160816002940.GA16946@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZTNJ-0001K9-F0 for guix-devel@gnu.org; Mon, 15 Aug 2016 21:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZTNE-000259-FY for guix-devel@gnu.org; Mon, 15 Aug 2016 21:41:05 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:56430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZTNE-000252-8W for guix-devel@gnu.org; Mon, 15 Aug 2016 21:41:00 -0400 In-Reply-To: <20160816002940.GA16946@jasmine> 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: python: Add pyserial. * gnu/packages/python.scm (python-pyserial, python-pyserial2): New variab= les. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..8a2f094 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9886,3 +9886,32 @@ 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 (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.= =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 bsd-3) + (properties `((python2-variant . ,(delay python2-pyserial)))))) + +(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--