From 85ccc0c281d8ebbe5f08b978925be7eed557284a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 23 Apr 2018 00:01:56 +0200 Subject: gnu: Add python-pycares. * gnu/packages/python-web.scm (python-pycares): New variable. --- gnu/packages/python-web.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6e8d9ab954d..9105afeb37e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2015, 2016 David Thompson ;;; Copyright © 2017 Mark Meyer ;;; Copyright © 2018 Tomáš Čech +;;; Copyright © 2018 Nicolas Goaziou ;;; ;;; This file is part of GNU Guix. ;;; @@ -2511,3 +2512,23 @@ protocols, it supports features like HTTP keep-alive, reget, throttling and more.") (license license:lgpl2.1+))) +(define-public python-pycares + (package + (name "python-pycares") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pycares" version)) + (sha256 + (base32 + "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;tests require internet access + (home-page "http://github.com/saghul/pycares") + (synopsis "Python interface for @code{c-ares}") + (description "@code{pycares} is a Python module which provides an +interface to @code{c-ares}, a C library that performs DNS requests and +name resolutions asynchronously.") + (license license:expat))) -- cgit v1.3 From f90f4c9c925286044dde72272e48848b1e84bcf6 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 27 Apr 2018 00:23:07 +0200 Subject: gnu: Add python-aiodns. * gnu/packages/python-web.scm (python-aiodns): New variable. --- gnu/packages/python-web.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9105afeb37e..de1a6c32df3 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -61,6 +61,29 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (srfi srfi-1)) +(define-public python-aiodns + (package + (name "python-aiodns") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiodns" version)) + (sha256 + (base32 + "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq")))) + (build-system python-build-system) + (inputs + `(("python-pycares" ,python-pycares))) + (arguments + `(#:tests? #f)) ;tests require internet access + (home-page "http://github.com/saghul/aiodns") + (synopsis "Simple DNS resolver for asyncio") + (description "@code{aiodns} provides a simple way for doing +asynchronous DNS resolutions with a synchronous looking interface by +using @url{https://github.com/saghul/pycares,pycares}.") + (license license:expat))) + (define-public python-furl (package (name "python-furl") -- cgit v1.3 From 2eccb41493c8970e1379134bd97aebc22239d1d5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 27 Apr 2018 00:23:46 +0200 Subject: gnu: Add python-yarl. * gnu/packages/python-web.scm (python-yarl): New variable. --- gnu/packages/python-web.scm | 24 ++++++++++++++++++++++++ gnu/packages/python.scm | 1 + 2 files changed, 25 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index de1a6c32df3..dc571e187b7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2555,3 +2555,27 @@ more.") interface to @code{c-ares}, a C library that performs DNS requests and name resolutions asynchronously.") (license license:expat))) + +(define-public python-yarl + (package + (name "python-yarl") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "yarl" version)) + (sha256 + (base32 + "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (propagated-inputs + `(("python-idna" ,python-idna) + ("python-multidict" ,python-multidict))) + (home-page "https://github.com/aio-libs/yarl/") + (synopsis "Yet another URL library") + (description "@code{yarl} module provides handy @code{URL} class +for URL parsing and changing.") + (license license:asl2.0))) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 13d73b55c5a..f942a2be449 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13296,3 +13296,4 @@ generators and Python 3.7's context managers into Python 3.5.") (description "@code{async-timeout} provides a timeout timeout context manager compatible with @code{asyncio}.") (license license:asl2.0))) + -- cgit v1.3 From 321ba5683bc61711c2464aee2bdc24fda878b1fc Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 23 Apr 2018 00:20:58 +0200 Subject: gnu: Add python-aiohttp. * gnu/packages/python-web.scm (python-aiohttp): New variable. --- gnu/packages/python-web.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index dc571e187b7..8ebae2e4b7e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -61,6 +61,47 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (srfi srfi-1)) +(define-public python-aiohttp + (package + (name "python-aiohttp") + (version "3.1.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp" version)) + (sha256 + (base32 + "1b888lggmyf2d08rfayq9khszzc0pav1z70ssc0b4d9kkr4g1klz")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;FIXME: 2 errors, 2084 passed + (native-inputs + `(("python-async-generator" ,python-async-generator) + ("python-pytest" ,python-pytest) + ("python-pytest-capturelog" ,python-pytest-capturelog) + ("python-pytest-mock" ,python-pytest-mock))) + (propagated-inputs + `(("python-aiodns" ,python-aiodns) + ("python-async-timeout" ,python-async-timeout) + ("python-attrs" ,python-attrs) + ("python-chardet" ,python-chardet) + ("python-idna-ssl" ,python-idna-ssl) + ("python-multidict" ,python-multidict) + ("python-yarl" ,python-yarl))) + (home-page "https://github.com/aio-libs/aiohttp/") + (synopsis "Async HTTP client/server framework (asyncio)") + (description "@code{aiohttp} is an asynchronous HTTP client/server +framework. + +Its main features are: +@itemize +@item Supports both client and server side of HTTP protocol. +@item Supports both client and server Web-Sockets out-of-the-box without the +Callback Hell. +@item Web-server has middlewares and pluggable routing. +@end itemize") + (license license:asl2.0))) + (define-public python-aiodns (package (name "python-aiodns") -- cgit v1.3 From 1ceca46b0605426885caf4f7f7321203261a4789 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Wed, 23 May 2018 10:02:22 +0200 Subject: gnu: Add python2-oauth2client. * gnu/packages/python-web.scm (python2-oauth2client): New variable. --- gnu/packages/python-web.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8ebae2e4b7e..dc1f9a15acc 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2017 Mark Meyer ;;; Copyright © 2018 Tomáš Čech ;;; Copyright © 2018 Nicolas Goaziou +;;; Copyright © 2018 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; @@ -2090,6 +2091,9 @@ users' sessions over extended periods of time.") library for Python") (license license:asl2.0))) +(define-public python2-oauth2client + (package-with-python2 python-oauth2client)) + (define-public python-flask-oidc (package (name "python-flask-oidc") -- cgit v1.3 From 961bcdf5aca36bd8d1fcd856a569fedd10cb91c5 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Wed, 23 May 2018 10:06:25 +0200 Subject: gnu: Add python-google-api-client. * gnu/packages/python-web.scm (python-google-api-client): New variable, (python2-google-api-client): new variable. --- gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index dc1f9a15acc..4868baa928a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2624,3 +2624,30 @@ name resolutions asynchronously.") (description "@code{yarl} module provides handy @code{URL} class for URL parsing and changing.") (license license:asl2.0))) + +(define-public python-google-api-client + (package + (name "python-google-api-client") + (version "1.6.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-api-python-client" version)) + (sha256 + (base32 + "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; tests require internet access + (native-inputs + `(("python-httplib2" ,python-httplib2) + ("python-six" ,python-six) + ("python-oauth2client" ,python-oauth2client) + ("python-uritemplate" ,python-uritemplate))) + (home-page "https://github.com/google/google-api-python-client") + (synopsis "Core Python library for accessing Google APIs") + (description "Python client library for Google's discovery based APIs") + (license license:asl2.0))) + +(define-public python2-google-api-client + (package-with-python2 python-google-api-client)) -- cgit v1.3 From 0d35a954174050485e0cdf3793a05b9d0d7b1b73 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 5 Jun 2018 02:53:50 +0200 Subject: gnu: python-pycurl: Update to 7.43.0.2. * gnu/packages/python-web.scm (python-pycurl): Update to 7.43.0.2. --- gnu/packages/python-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4868baa928a..9523ff3734a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -312,14 +312,14 @@ C, yielding parse times that can be a thirtieth of the html5lib parse times.") (define-public python-pycurl (package (name "python-pycurl") - (version "7.43.0.1") + (version "7.43.0.2") (source (origin (method url-fetch) (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-" version ".tar.gz")) (sha256 - (base32 "1ali1gjs9iliwjra7w0y5hwg79a2fd0f4ydvv6k27sgxpbr1n8s3")))) + (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g")))) (build-system python-build-system) (arguments ;; The tests attempt to access external web servers, so we cannot run -- cgit v1.3