diff options
author | leot <leot@pkgsrc.org> | 2017-09-04 13:58:24 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2017-09-04 13:58:24 +0000 |
commit | ac9d65ea71b4b4ed6073392ddf1dd95020b1c413 (patch) | |
tree | 1db3ab1ef669958a35aceb8e5a7e19d748b6e62c /chat | |
parent | 7e2f3c3bda3517ec304c64559f2d0d1699729936 (diff) | |
download | pkgsrc-ac9d65ea71b4b4ed6073392ddf1dd95020b1c413.tar.gz |
Import py-hangups-0.4.3 as chat/py-hangups
hangups is the first third-party instant messaging client for Google
Hangouts. It includes both a Python library and a reference client
with a text-based user interface.
Unlike its predecessor Google Talk, Hangouts uses a proprietary,
non-interoperable protocol. hangups is implemented by reverse-engineering
this protocol, which allows it to support features like group
messaging that aren't available in clients that connect via XMPP.
hangups is still in an early stage of development. The reference
client is usable for basic chatting, but the API is undocumented
and subject to change.
Originally packaged by myself in pkgsrc-wip.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/py-hangups/DESCR | 12 | ||||
-rw-r--r-- | chat/py-hangups/Makefile | 28 | ||||
-rw-r--r-- | chat/py-hangups/PLIST | 68 | ||||
-rw-r--r-- | chat/py-hangups/distinfo | 7 | ||||
-rw-r--r-- | chat/py-hangups/patches/patch-setup.py | 39 |
5 files changed, 154 insertions, 0 deletions
diff --git a/chat/py-hangups/DESCR b/chat/py-hangups/DESCR new file mode 100644 index 00000000000..3d657dfad9f --- /dev/null +++ b/chat/py-hangups/DESCR @@ -0,0 +1,12 @@ +hangups is the first third-party instant messaging client for Google +Hangouts. It includes both a Python library and a reference client +with a text-based user interface. + +Unlike its predecessor Google Talk, Hangouts uses a proprietary, +non-interoperable protocol. hangups is implemented by reverse-engineering +this protocol, which allows it to support features like group +messaging that aren't available in clients that connect via XMPP. + +hangups is still in an early stage of development. The reference +client is usable for basic chatting, but the API is undocumented +and subject to change. diff --git a/chat/py-hangups/Makefile b/chat/py-hangups/Makefile new file mode 100644 index 00000000000..e4c3b0da6dd --- /dev/null +++ b/chat/py-hangups/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2017/09/04 13:58:24 leot Exp $ + +DISTNAME= hangups-0.4.3 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= chat python +MASTER_SITES= ${MASTER_SITE_PYPI:=h/hangups/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/tdryer/hangups +COMMENT= Third-party instant messaging client for Google Hangouts +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-MechanicalSoup>=0.6.0:../../www/py-MechanicalSoup +DEPENDS+= ${PYPKGPREFIX}-aiohttp>=1.2:../../www/py-aiohttp +DEPENDS+= ${PYPKGPREFIX}-appdirs>=1.4.0:../../devel/py-appdirs +DEPENDS+= ${PYPKGPREFIX}-configargparse>=0.11.0:../../devel/py-configargparse +DEPENDS+= ${PYPKGPREFIX}-protobuf>=3.1.0:../../devel/py-protobuf +DEPENDS+= ${PYPKGPREFIX}-readlike>=0.1.2:../../devel/py-readlike +DEPENDS+= ${PYPKGPREFIX}-reparser>=1.4.3:../../devel/py-reparser +DEPENDS+= ${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests +DEPENDS+= ${PYPKGPREFIX}-urwid>=1.3.1:../../devel/py-urwid + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/py-hangups/PLIST b/chat/py-hangups/PLIST new file mode 100644 index 00000000000..d33f6e20157 --- /dev/null +++ b/chat/py-hangups/PLIST @@ -0,0 +1,68 @@ +@comment $NetBSD: PLIST,v 1.1 2017/09/04 13:58:24 leot Exp $ +bin/hangups +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/hangups/__init__.py +${PYSITELIB}/hangups/__init__.pyc +${PYSITELIB}/hangups/__init__.pyo +${PYSITELIB}/hangups/auth.py +${PYSITELIB}/hangups/auth.pyc +${PYSITELIB}/hangups/auth.pyo +${PYSITELIB}/hangups/channel.py +${PYSITELIB}/hangups/channel.pyc +${PYSITELIB}/hangups/channel.pyo +${PYSITELIB}/hangups/client.py +${PYSITELIB}/hangups/client.pyc +${PYSITELIB}/hangups/client.pyo +${PYSITELIB}/hangups/conversation.py +${PYSITELIB}/hangups/conversation.pyc +${PYSITELIB}/hangups/conversation.pyo +${PYSITELIB}/hangups/conversation_event.py +${PYSITELIB}/hangups/conversation_event.pyc +${PYSITELIB}/hangups/conversation_event.pyo +${PYSITELIB}/hangups/event.py +${PYSITELIB}/hangups/event.pyc +${PYSITELIB}/hangups/event.pyo +${PYSITELIB}/hangups/exceptions.py +${PYSITELIB}/hangups/exceptions.pyc +${PYSITELIB}/hangups/exceptions.pyo +${PYSITELIB}/hangups/hangouts_pb2.py +${PYSITELIB}/hangups/hangouts_pb2.pyc +${PYSITELIB}/hangups/hangouts_pb2.pyo +${PYSITELIB}/hangups/http_utils.py +${PYSITELIB}/hangups/http_utils.pyc +${PYSITELIB}/hangups/http_utils.pyo +${PYSITELIB}/hangups/message_parser.py +${PYSITELIB}/hangups/message_parser.pyc +${PYSITELIB}/hangups/message_parser.pyo +${PYSITELIB}/hangups/parsers.py +${PYSITELIB}/hangups/parsers.pyc +${PYSITELIB}/hangups/parsers.pyo +${PYSITELIB}/hangups/pblite.py +${PYSITELIB}/hangups/pblite.pyc +${PYSITELIB}/hangups/pblite.pyo +${PYSITELIB}/hangups/ui/__init__.py +${PYSITELIB}/hangups/ui/__init__.pyc +${PYSITELIB}/hangups/ui/__init__.pyo +${PYSITELIB}/hangups/ui/__main__.py +${PYSITELIB}/hangups/ui/__main__.pyc +${PYSITELIB}/hangups/ui/__main__.pyo +${PYSITELIB}/hangups/ui/emoticon.py +${PYSITELIB}/hangups/ui/emoticon.pyc +${PYSITELIB}/hangups/ui/emoticon.pyo +${PYSITELIB}/hangups/ui/notify.py +${PYSITELIB}/hangups/ui/notify.pyc +${PYSITELIB}/hangups/ui/notify.pyo +${PYSITELIB}/hangups/ui/utils.py +${PYSITELIB}/hangups/ui/utils.pyc +${PYSITELIB}/hangups/ui/utils.pyo +${PYSITELIB}/hangups/user.py +${PYSITELIB}/hangups/user.pyc +${PYSITELIB}/hangups/user.pyo +${PYSITELIB}/hangups/version.py +${PYSITELIB}/hangups/version.pyc +${PYSITELIB}/hangups/version.pyo diff --git a/chat/py-hangups/distinfo b/chat/py-hangups/distinfo new file mode 100644 index 00000000000..d447ad57ac5 --- /dev/null +++ b/chat/py-hangups/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2017/09/04 13:58:24 leot Exp $ + +SHA1 (hangups-0.4.3.tar.gz) = 9d8b94893a684158602e2f1b61f824cd41ae5e6f +RMD160 (hangups-0.4.3.tar.gz) = c75b0dd872d58653f14cac2187546a8f9159042c +SHA512 (hangups-0.4.3.tar.gz) = 5fe9c3bb36eeee3bd0cc6b1e27c9ab2185974c45e5fc40b4e7b0aaecd014588830716622687139ec21e24466cf709b3598f8a1954e768d02466dc70e8e48eb79 +Size (hangups-0.4.3.tar.gz) = 83330 bytes +SHA1 (patch-setup.py) = b553978ca42696d620ef674b2bac2c81b44cb4e6 diff --git a/chat/py-hangups/patches/patch-setup.py b/chat/py-hangups/patches/patch-setup.py new file mode 100644 index 00000000000..1dabf8003dd --- /dev/null +++ b/chat/py-hangups/patches/patch-setup.py @@ -0,0 +1,39 @@ +$NetBSD: patch-setup.py,v 1.1 2017/09/04 13:58:24 leot Exp $ + +Avoid too strict version requirements. + +--- setup.py.orig 2017-07-30 23:31:42.000000000 +0000 ++++ setup.py +@@ -23,22 +23,22 @@ with open('README.rst') as f: + # hangups from breaking when new versions of dependencies are released, + # especially for end-users (non-developers) who use pip to install hangups. + install_requires = [ +- 'ConfigArgParse==0.11.0', +- 'aiohttp>=1.3,<3', +- 'appdirs>=1.4,<1.5', +- 'readlike==0.1.2', +- 'requests>=2.6.0,<3', # uses semantic versioning (after 2.6) +- 'ReParser==1.4.3', +- 'protobuf>=3.1.0,<3.2.0', +- 'urwid==1.3.1', +- 'MechanicalSoup==0.6.0', ++ 'ConfigArgParse>=0.11.0', ++ 'aiohttp>=1.3', ++ 'appdirs>=1.4', ++ 'readlike>=0.1.2', ++ 'requests>=2.6.0', # uses semantic versioning (after 2.6) ++ 'ReParser>=1.4.3', ++ 'protobuf>=3.1.0', ++ 'urwid>=1.3.1', ++ 'MechanicalSoup>=0.6.0', + ] + + + if sys.version_info < (3, 4, 3): + # For Python earlier than 3.4.3, use a backported asyncio that fixes an + # issue with an exception being logged on exit. +- install_requires.append('asyncio==3.4.3') ++ install_requires.append('asyncio>=3.4.3') + + + setup( |