* [bug#33131] [PATCH 2/4] gnu: Add python-reparser.
2018-10-23 19:10 ` [bug#33131] [PATCH 1/4] gnu: Add python-readlike Tobias Geerinckx-Rice
@ 2018-10-23 19:10 ` Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 3/4] gnu: Add python-mechanicalsoup Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 4/4] gnu: Add hangups Tobias Geerinckx-Rice
2 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-10-23 19:10 UTC (permalink / raw)
To: 33131
* gnu/packages/python.scm (python-reparser, python2-reparser):
New public variable.
---
gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d9f3ebfc5..fbb280224 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14551,3 +14551,29 @@ are not supported.")
(define-public python2-readlike
(package-with-python2 python-readlike))
+
+(define-public python-reparser
+ (package
+ (name "python-reparser")
+ (version "1.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ReParser" version))
+ (sha256
+ (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/xmikos/reparser")
+ (synopsis "Simple lexer/parser for inline markup based on regular expressions")
+ (description
+ "This Python library provides a simple lexer/parser for inline markup based
+on regular expressions.")
+ (license license:expat)))
+
+(define-public python2-reparser
+ (let ((reparser (package-with-python2
+ (strip-python2-variant python-reparser))))
+ (package (inherit reparser)
+ (propagated-inputs
+ `(("python2-enum34" ,python2-enum34)
+ ,@(package-propagated-inputs reparser))))))
--
2.18.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#33131] [PATCH 3/4] gnu: Add python-mechanicalsoup.
2018-10-23 19:10 ` [bug#33131] [PATCH 1/4] gnu: Add python-readlike Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 2/4] gnu: Add python-reparser Tobias Geerinckx-Rice
@ 2018-10-23 19:10 ` Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 4/4] gnu: Add hangups Tobias Geerinckx-Rice
2 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-10-23 19:10 UTC (permalink / raw)
To: 33131
* gnu/packages/python-web.scm (python-mechanicalsoup)
(python2-mechanicalsoup): New public variable.
---
gnu/packages/python-web.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index f8052458a..eda796e01 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -60,6 +60,7 @@
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages tls)
#:use-module (gnu packages time)
+ #:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (srfi srfi-1))
@@ -255,6 +256,43 @@ other HTTP libraries.")
(define-public python2-httplib2
(package-with-python2 python-httplib2))
+(define-public python-mechanicalsoup
+ (package
+ (name "python-mechanicalsoup")
+ (version "0.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "MechanicalSoup" version))
+ (sha256
+ (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
+ (build-system python-build-system)
+ (arguments
+ ;; TODO: Enable tests when python-flake8@3.5 hits master.
+ `(#:tests? #f))
+ (propagated-inputs
+ `(("python-beautifulsoup4" ,python-beautifulsoup4)
+ ("python-lxml" ,python-lxml)
+ ("python-requests" ,python-requests)
+ ("python-six" ,python-six)))
+ ;; (native-inputs
+ ;; ;; For tests.
+ ;; `(("python-pytest-flake8" ,python-pytest-flake8)
+ ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
+ ;; ("python-pytest-mock" ,python-pytest-mock)
+ ;; ("python-pytest-runner" ,python-pytest-runner)
+ ;; ("python-requests-mock" ,python-requests-mock)))
+ (home-page "https://mechanicalsoup.readthedocs.io/")
+ (synopsis "Python library for automating website interaction")
+ (description
+ "MechanicalSoup is a Python library for automating interaction with
+websites. It automatically stores and sends cookies, follows redirects, and can
+follow links and submit forms. It doesn’t do JavaScript.")
+ (license license:expat)))
+
+(define-public python2-mechanicalsoup
+ (package-with-python2 python-mechanicalsoup))
+
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.18.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#33131] [PATCH 4/4] gnu: Add hangups.
2018-10-23 19:10 ` [bug#33131] [PATCH 1/4] gnu: Add python-readlike Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 2/4] gnu: Add python-reparser Tobias Geerinckx-Rice
2018-10-23 19:10 ` [bug#33131] [PATCH 3/4] gnu: Add python-mechanicalsoup Tobias Geerinckx-Rice
@ 2018-10-23 19:10 ` Tobias Geerinckx-Rice
2 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-10-23 19:10 UTC (permalink / raw)
To: 33131
* gnu/packages/messaging.scm (hangups): New public variable.
---
gnu/packages/messaging.scm | 44 ++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 3f050391b..711b7d0fa 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -71,8 +71,10 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages photo)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages protobuf)
#:use-module (gnu packages python)
#:use-module (gnu packages python-crypto)
+ #:use-module (gnu packages python-web)
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
#:use-module (gnu packages tcl)
@@ -1719,4 +1721,46 @@ QMatrixClient project.")
(license (list license:gpl3+ ; all source code
license:lgpl3+)))) ; icons/breeze
+(define-public hangups
+ (package
+ (name "hangups")
+ (version "0.4.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "hangups" version))
+ (sha256
+ (base32 "0mvpfd5dc3zgcvwfidcd2qyn59xl5biv728mxifw0ls5rzkc9chs"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'relax-dependencies
+ ;; Relax overly strict package version specifications.
+ (lambda _
+ (substitute* "setup.py"
+ (("==") ">="))
+ #t)))))
+ (propagated-inputs
+ `(("python-aiohttp" ,python-aiohttp)
+ ("python-appdirs" ,python-appdirs)
+ ("python-async-timeout" ,python-async-timeout)
+ ("python-configargparse" ,python-configargparse)
+ ("python-mechanicalsoup" ,python-mechanicalsoup)
+ ("python-protobuf" ,python-protobuf)
+ ("python-readlike" ,python-readlike)
+ ("python-reparser" ,python-reparser)
+ ("python-requests" ,python-requests)
+ ("python-urwid" ,python-urwid)))
+ (home-page "https://hangups.readthedocs.io/")
+ (synopsis "Instant messaging client for Google Hangouts")
+ (description
+ "Hangups is an instant messaging client for Google Hangouts. It includes
+both a Python library and a reference client with a text-based user interface.
+
+Hangups is implements a reverse-engineered version of Hangouts' proprietary,
+non-interoperable protocol, which allows it to support features like group
+ messaging that aren’t available to clients that connect over XMPP.")
+ (license license:expat)))
+
;;; messaging.scm ends here
--
2.18.0
^ permalink raw reply related [flat|nested] 7+ messages in thread