Subject: [bug#59764] [PATCH 3/8] gnu: Add python-ephemeral-port-reserve.

From: kiasoc5 <[email-masked]>
Date: Fri, 2 Dec 2022 00:59:14 -0500

* gnu/packages/python-web.scm (python-ephemeral-port-reserve): New variable.
---
 gnu/packages/python-web.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4f3a587c6a..944fb4c781 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5577,6 +5577,26 @@ (define-public python-port-for
 association.")
     (license license:expat)))
 
+(define-public python-ephemeral-port-reserve
+  (package
+    (name "python-ephemeral-port-reserve")
+    (version "1.1.4")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "ephemeral_port_reserve" version))
+              (sha256
+               (base32
+                "1chl9hil7ggz6l4sfhmp0l2j55qcskbc3pj9360b0309jwndmxxq"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/Yelp/ephemeral-port-reserve/")
+    (synopsis
+     "Find an unused port, reliably.")
+    (description
+     "@code{ephemeral-port-reserve} provides a reliable and race-free
+implementation of the ``port 0 trick'': bind to an ephemeral port, force it into
+the TIME_WAIT state, and unbind it.")
+    (license license:expat)))
+
 (define-public python-livereload
   (package
     (name "python-livereload")
-- 
2.38.1