From 24dba9c5e78c3586a8b53296b59b41cf1f82817f Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Fri, 24 Jun 2022 15:27:57 +0000 Subject: gnu: Add python-http-client. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-http-client): New variable. Signed-off-by: Ludovic Courtès --- 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 6c121907e6..088d7eb3d2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -51,6 +51,7 @@ ;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; Copyright © 2022 Felix Gruber ;;; Copyright © 2022 Peter Polidoro +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -7546,3 +7547,25 @@ resources using Web Application Description Language (WADL) files as guides.") @end itemize") (license license:expat))) +(define-public python-http-client + (package + (name "python-http-client") + (version "3.3.7") + (home-page "https://github.com/sendgrid/python-http-client") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0z0ziw3f4zw5fj4spiwhhs2x8qs3i5999ry2p6a5sc8b1lkkj2zi")) + (snippet #~(begin + (use-modules (guix build utils)) + (delete-file "tests/profile.py"))))) + (build-system python-build-system) + (synopsis "HTTP REST client for Python") + (description + "This package provides access to any RESTful or RESTful-like API.") + (license license:expat))) -- cgit 1.4.1 From 8d0e69624357c0ce9e7c0b0713910a3e35f16226 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Sat, 25 Jun 2022 04:25:03 +0000 Subject: gnu: Add python-sendgrid. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-sendgrid): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++ 1 file 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 088d7eb3d2..e48e4773df 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7569,3 +7569,28 @@ resources using Web Application Description Language (WADL) files as guides.") (description "This package provides access to any RESTful or RESTful-like API.") (license license:expat))) + +(define-public python-sendgrid + (package + (name "python-sendgrid") + (version "6.9.7") + (home-page "https://github.com/sendgrid/sendgrid-python/") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kvp4gm3bpcsj2mkv05pgvlcv1jlsfhcljcv61wz5kq9d273h7rg")))) + (build-system python-build-system) + (arguments + (list #:tests? #f)) ;241/340 tests fail due to attempted web access + (propagated-inputs (list python-http-client python-starkbank-ecdsa)) + (synopsis "SendGrid API library for Python") + (description + "The @code{sendgrid} Python library allows access to the +SendGrid Web API v3. Version 3+ of the library provides full support for all +SendGrid Web API v3 endpoints, including the new v3 /mail/send.") + (license license:expat))) -- cgit 1.4.1 From 9a2a77b6ada212e5c47d0e9fe8446130ba632afe Mon Sep 17 00:00:00 2001 From: Luis Henrique Gomes Higino Date: Sat, 18 Jun 2022 17:11:27 -0300 Subject: gnu: grip: Update to 4.6.1. * gnu/packages/python-web.scm (grip): Update to 4.6.1. (arguments): Use a gexp. Signed-off-by: Christopher Baines --- gnu/packages/python-web.scm | 77 ++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 40 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e48e4773df..6f951595c8 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -52,6 +52,7 @@ ;;; Copyright © 2022 Felix Gruber ;;; Copyright © 2022 Peter Polidoro ;;; Copyright © 2022 Antero Mejr +;;; Copyright © 2022 Luis Henrique Gomes Higino ;;; ;;; This file is part of GNU Guix. ;;; @@ -5179,50 +5180,46 @@ interfaces, inferring which argument is the path, and which is the address.") (license license:expat))) (define-public grip - ;; No release by upstream for quite some time, some bugs fixed since. See: - ;; https://github.com/joeyespo/grip/issues/304 - (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) - (package - (name "grip") - (version (git-version "4.5.2" "1" commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/joeyespo/grip") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) - (build-system python-build-system) - (propagated-inputs - (list python-docopt - python-flask - python-markdown - python-path-and-address - python-pygments - python-requests)) - (native-inputs - (list python-pytest python-responses)) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (setenv "PATH" (string-append - (getenv "PATH") ":" - (assoc-ref %outputs "out") "/bin")) - (invoke "py.test" "-m" "not assumption")))))) - (home-page "https://github.com/joeyespo/grip") - (synopsis "Preview Markdown files using the GitHub API") - (description "Grip is a command-line server application written in Python + (package + (name "grip") + (version "4.6.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/joeyespo/grip") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vhimd99zw7s1fihwr6yfij6ywahv9gdrfcf5qljvzh75mvzcwh8")))) + (build-system python-build-system) + (propagated-inputs (list python-docopt + python-flask + python-markdown + python-path-and-address + python-pygments + python-requests)) + (native-inputs (list python-pytest python-responses)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (setenv "PATH" + (string-append (getenv "PATH") ":" + #$output "/bin")) + (invoke "py.test" "-m" "not assumption"))))))) + (home-page "https://github.com/joeyespo/grip") + (synopsis "Preview Markdown files using the GitHub API") + (description + "Grip is a command-line server application written in Python that uses the GitHub Markdown API to render a local Markdown file. The styles and rendering come directly from GitHub, so you'll know exactly how it will appear. Changes you make to the file will be instantly reflected in the browser without requiring a page refresh.") - (license license:expat)))) + (license license:expat))) (define-public python-port-for (package -- cgit 1.4.1 From aba4cdc87f1146ccb018d73816d4ec950865a9ae Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 12 Jul 2022 13:27:14 +0300 Subject: gnu: python-tornado-6: Honor tests flag. * gnu/packages/python-web.scm (python-tornado-6)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-web.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6f951595c8..87e65f4d36 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2073,9 +2073,9 @@ connection to each user.") '(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "python" "-m" "tornado.test.runtests") - #t))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "tornado.test.runtests"))))))) (native-inputs (list python-certifi)) (home-page "https://www.tornadoweb.org/") -- cgit 1.4.1 From 79a7c6e81144e34cc6f32b9c022e79f212f7bbb8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 12 Jul 2022 13:40:01 +0300 Subject: gnu: python-tornado-6: Adjust test timeout. * gnu/packages/python-web.scm (python-tornado-6)[arguments]: Adjust custom 'check phase to allow a longer test timeout. --- gnu/packages/python-web.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 87e65f4d36..6bb73fa6d2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2075,6 +2075,7 @@ connection to each user.") (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? + (setenv "ASYNC_TEST_TIMEOUT" "25") ; Like in tox.ini. (invoke "python" "-m" "tornado.test.runtests"))))))) (native-inputs (list python-certifi)) -- cgit 1.4.1