Subject: bug#43454: closed (Re: [bug#43454] [PATCH 2/2] gnu: Add python-beren.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 18 Sep 2020 09:50:02 +0000

Your bug report

#43454: [PATCH 1/2] gnu: Add python-apiron.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
43454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43454
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#43454] [PATCH 2/2] gnu: Add python-beren.
From: Mathieu Othacehe <[email-masked]>
To: Vinicius Monego <[email-masked]>
Cc: [email-masked]
Date: Fri, 18 Sep 2020 11:49:42 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> * gnu/packages/python-web.scm (python-beren): New variable.

Pushed both patches, thanks!

Mathieu

Subject: [PATCH 1/2] gnu: Add python-apiron.
From: Vinicius Monego <[email-masked]>
To: [email-masked]
Cc: Vinicius Monego <[email-masked]>
Date: Wed, 16 Sep 2020 16:54:41 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-web.scm (python-apiron): New variable.
---
 gnu/packages/python-web.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7926539233..aaa406d547 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1879,6 +1879,39 @@ WebSocket usage in Python programs.")
       "Purl is a Python package for handling URLs.")
     (license license:expat)))
 
+(define-public python-apiron
+  (package
+    (name "python-apiron")
+    (version "5.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "apiron" version))
+       (sha256
+        (base32 "1qwbqn47sf0aqznj1snbv37v8ijx476qqkjf5l9pac7xjkxsr8qk"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv" "--cov" "-k"
+                     ;; This test tries to connect to the internet.
+                     "not test_call"))))))
+    (propagated-inputs
+     `(("python-requests" ,python-requests)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)))
+    (home-page "https://github.com/ithaka/apiron")
+    (synopsis "Python wrapper for interacting with RESTful APIs")
+    (description
+     "@code{apiron} provides a declarative, structured configuration of
+services and endpoints with a unified interface for interacting with RESTful
+APIs.")
+    (license license:expat)))
+
 (define-public python-requests
   (package
     (name "python-requests")
-- 
2.20.1