the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: pyserial-py%type_pkg[python]
Version: 2.5
Revision: 1
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python(2.3 2.4 2.5 2.6 2.7 3.1)
Description: Python access to serial ports
License: OSI-Approved
Homepage: http://pyserial.sourceforge.net/
Maintainer: Kurt Schwehr
# Dependencies.
Depends: python%type_pkg[python]
# Unpack Phase.
#Source: mirror:sourceforge:pyserial/pyserial-%v.zip
Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%v.tar.gz
Source-MD5: 34340820710239bea2ceca7f43ef8cab
# Patch Phase.
# Change CRLF line endings to LR line endings.
PatchScript: find . -type f -print0 | xargs -0 perl -w -p -i -e 's/\s+$/\n/'
# Compile Phase.
CompileScript: <<
#!/bin/bash -ev
if [ "%type_pkg[python]" -ge "31" ]; then
2to3-%type_raw[python] -w --no-diffs examples test serial
fi
%p/bin/python%type_raw[python] setup.py build
<<
# Install Phase.
InstallScript: <<
#!/bin/bash -ev
%p/bin/python%type_raw[python] setup.py install --root=%d
mv %i/bin/miniterm.py{,-%type_pkg[python]}
<<
PostInstScript: <<
update-alternatives --install %p/bin/miniterm.py miniterm.py %p/bin/miniterm.py-%type_pkg[python] %type_pkg[python]
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove miniterm.py %p/bin/miniterm.py-%type_pkg[python]
fi
<<
DocFiles: CHANGES.txt LICENSE.txt README.txt
# Documentation.
DescDetail: <<
pySerial
--------
This module encapsulates the access for the serial port. It provides
backends for standard Python running on Windows, Linux, BSD (possibly
any POSIX compliant system) and Jython. The module named "serial"
automatically selects the appropriate backend.
Features
--------
- Same class based interface on all supported platforms.
- Access to the port settings through Python properties.
- Port numbering starts at zero, no need to know the platform dependent port
name in the user program.
- Port name can be specified if access through numbering is inappropriate.
- Support for different bytesizes, stopbits, parity and flow control
with RTS/CTS and/or Xon/Xoff.
- Working with or without receive timeout, blocking or non-blocking.
- File like API with "read" and "write" ("readline" etc. also supported).
- The files in this package are 100% pure Python.
They depend on non standard but common packages on Windows (win32all) and
Jython (JavaComm). POSIX (Linux, BSD) uses only modules from the standard
Python distribution).
- The port is set up for binary transmission. No NULL byte stripping, CR-LF
translation etc (which are many times enabled for POSIX). This makes this
the module universally useful.
<<
<<