unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#43454] [PATCH 1/2] gnu: Add python-apiron.
@ 2020-09-16 19:54 Vinicius Monego
  2020-09-16 19:57 ` [bug#43454] [PATCH 2/2] gnu: Add python-beren Vinicius Monego
  0 siblings, 1 reply; 3+ messages in thread
From: Vinicius Monego @ 2020-09-16 19:54 UTC (permalink / raw)
  To: 43454; +Cc: Vinicius Monego

* 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#43454] [PATCH 2/2] gnu: Add python-beren.
  2020-09-16 19:54 [bug#43454] [PATCH 1/2] gnu: Add python-apiron Vinicius Monego
@ 2020-09-16 19:57 ` Vinicius Monego
  2020-09-18  9:49   ` bug#43454: " Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Vinicius Monego @ 2020-09-16 19:57 UTC (permalink / raw)
  To: 43454; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index aaa406d547..b0ad2240b6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1912,6 +1912,28 @@ services and endpoints with a unified interface for interacting with RESTful
 APIs.")
     (license license:expat)))
 
+(define-public python-beren
+  (package
+    (name "python-beren")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "beren" version))
+       (sha256
+        (base32 "1v3mdwfqsyza892zvs124ym9w1bkng1j56b7l4dwfjir3723xcgf"))))
+    (build-system python-build-system)
+    (arguments
+     ;; The test tries to open a connection to a remote server.
+     `(#:tests? #f))
+    (propagated-inputs
+     `(("python-apiron" ,python-apiron)))
+    (home-page "https://github.com/teffalump/beren")
+    (synopsis "REST client for Orthanc DICOM servers")
+    (description
+     "@code{beren} provides a REST client for Orthanc, a DICOM server.")
+    (license license:gpl3+)))
+
 (define-public python-requests
   (package
     (name "python-requests")
-- 
2.20.1





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#43454: [PATCH 2/2] gnu: Add python-beren.
  2020-09-16 19:57 ` [bug#43454] [PATCH 2/2] gnu: Add python-beren Vinicius Monego
@ 2020-09-18  9:49   ` Mathieu Othacehe
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Othacehe @ 2020-09-18  9:49 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 43454-done


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

Pushed both patches, thanks!

Mathieu




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-18  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 19:54 [bug#43454] [PATCH 1/2] gnu: Add python-apiron Vinicius Monego
2020-09-16 19:57 ` [bug#43454] [PATCH 2/2] gnu: Add python-beren Vinicius Monego
2020-09-18  9:49   ` bug#43454: " Mathieu Othacehe

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git