all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#68191] [PATCH] gnu: Add python-portend.
@ 2024-01-01 17:53 Troy Figiel
  2024-01-04 16:10 ` [bug#68191] Sharlatan Hellseher
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Troy Figiel @ 2024-01-01 17:53 UTC (permalink / raw)
  To: 68191

* gnu/packages/python-web.scm (python-portend): 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 06b578dac7..8eed01c3e2 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -60,6 +60,7 @@
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull@hotmail.fr>
 ;;; Copyright © 2023 John Kehayias <john.kehayias@protonmail.com>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan@selidor.net>
+;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -201,6 +202,38 @@ (define-public python-lazr-uri
 reusable library for parsing, manipulating, and generating URIs.")
     (license license:lgpl3)))
 
+(define-public python-portend
+  (package
+    (name "python-portend")
+    (version "3.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "portend" version))
+       (sha256
+        (base32 "0wpvixicc3d0lack65554mvdrrckkn18p1xcgiv9v5cwq59a6l2j"))))
+    (build-system pyproject-build-system)
+    ;; Do not test pyproject.toml with python-pytest-checkdocs as it tries to
+    ;; download dependencies.
+    (arguments
+     '(#:test-flags '("-k" "not project")))
+    (propagated-inputs (list python-tempora))
+    ;; TODO: Add python-pytest-ruff to native-inputs once it has been packaged.
+    (native-inputs (list python-pytest
+                         python-pytest-black
+                         python-pytest-checkdocs
+                         python-pytest-cov
+                         python-pytest-enabler
+                         python-pytest-mypy))
+    (home-page "https://github.com/jaraco/portend")
+    (synopsis "Monitor TCP ports for bound or unbound states")
+    (description
+     "@code{python-portend} can be used to monitor TCP ports for bound or
+unbound states.  For example, waiting for a port to be occupied or freed
+within a set timeout.  @code{python-portend} can also be used directly from
+the command line.")
+    (license license:expat)))
+
 (define-public python-prawcore
   (package
     (name "python-prawcore")

base-commit: ff586211aaf0e3b468ff3cedc5ede18e8ab529dd
-- 
2.40.1





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

* [bug#68191]
  2024-01-01 17:53 [bug#68191] [PATCH] gnu: Add python-portend Troy Figiel
@ 2024-01-04 16:10 ` Sharlatan Hellseher
  2024-01-07 10:33   ` [bug#68191] Troy Figiel
  2024-01-07 15:51 ` [bug#68191] Sharlatan Hellseher
  2024-01-09  9:06 ` bug#68191: [PATCH] gnu: Add python-portend Mathieu Othacehe
  2 siblings, 1 reply; 5+ messages in thread
From: Sharlatan Hellseher @ 2024-01-04 16:10 UTC (permalink / raw)
  To: 68191

Hi,

It looks good to me, passed all phases from comiit:

guix describe
Generation 498  Jan 04 2024 10:55:58    (current)
  guix 7b0863f
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 7b0863f07a113caef26fea13909bd97d250b629e

guix build --quiet --rounds=2 -L . python-portend
/gnu/store/gl6n6pbk5y1hxv6s8xrj02j0lw41a4ll-python-portend-3.2.0

guix lint -L . python-portend
etching CVE database for 2024...e]...
fetching CVE database for 2023...
fetching CVE database for 2022...
./ffab/packages/python-xyz.scm:557:5: python-portend@3.2.0: source not
archived on Software Heritage and missing from the Disarchive database

It would be nice to start packing python-ruff as it's required for
python-huggingface-hub
 which I try to bring to Guix.

Thanks,
Oleg
-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

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

* [bug#68191]
  2024-01-04 16:10 ` [bug#68191] Sharlatan Hellseher
@ 2024-01-07 10:33   ` Troy Figiel
  0 siblings, 0 replies; 5+ messages in thread
From: Troy Figiel @ 2024-01-07 10:33 UTC (permalink / raw)
  To: 68191

Sharlatan Hellseher <sharlatanus@gmail.com> writes:

> Hi,
>
> It looks good to me, passed all phases from comiit:
>
> guix describe
> Generation 498  Jan 04 2024 10:55:58    (current)
>   guix 7b0863f
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 7b0863f07a113caef26fea13909bd97d250b629e
>
> guix build --quiet --rounds=2 -L . python-portend
> /gnu/store/gl6n6pbk5y1hxv6s8xrj02j0lw41a4ll-python-portend-3.2.0
>
> guix lint -L . python-portend
> etching CVE database for 2024...e]...
> fetching CVE database for 2023...
> fetching CVE database for 2022...
> ./ffab/packages/python-xyz.scm:557:5: python-portend@3.2.0: source not
> archived on Software Heritage and missing from the Disarchive database
>
> It would be nice to start packing python-ruff as it's required for
> python-huggingface-hub
>  which I try to bring to Guix.
>
> Thanks,
> Oleg

Hi Oleg,

I have been looking at python-ruff for a bit now. Since it is a Python
package with Rust bindings, it will require a bit more experience
packaging Rust from my side. Plus, we will likely have to add a fair
number of Rust crates first, due to the sheer amount of dependencies.

I was planning to start packaging some of these Rust dependencies, since
we would need these anyway for a recent version of Ruff and the Rust
ecosystem might benefit along the way.

Best wishes,

Troy




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

* [bug#68191]
  2024-01-01 17:53 [bug#68191] [PATCH] gnu: Add python-portend Troy Figiel
  2024-01-04 16:10 ` [bug#68191] Sharlatan Hellseher
@ 2024-01-07 15:51 ` Sharlatan Hellseher
  2024-01-09  9:06 ` bug#68191: [PATCH] gnu: Add python-portend Mathieu Othacehe
  2 siblings, 0 replies; 5+ messages in thread
From: Sharlatan Hellseher @ 2024-01-07 15:51 UTC (permalink / raw)
  To: 68191; +Cc: Efraim Flashner

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

Pinging Rust-team here, some of the packages might be coveted already.

Thanks,
Oleg

[-- Attachment #2: Type: text/html, Size: 177 bytes --]

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

* bug#68191: [PATCH] gnu: Add python-portend.
  2024-01-01 17:53 [bug#68191] [PATCH] gnu: Add python-portend Troy Figiel
  2024-01-04 16:10 ` [bug#68191] Sharlatan Hellseher
  2024-01-07 15:51 ` [bug#68191] Sharlatan Hellseher
@ 2024-01-09  9:06 ` Mathieu Othacehe
  2 siblings, 0 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2024-01-09  9:06 UTC (permalink / raw)
  To: Troy Figiel; +Cc: 68191-done


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

Applied, thanks,

Mathieu




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

end of thread, other threads:[~2024-01-09  9:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-01 17:53 [bug#68191] [PATCH] gnu: Add python-portend Troy Figiel
2024-01-04 16:10 ` [bug#68191] Sharlatan Hellseher
2024-01-07 10:33   ` [bug#68191] Troy Figiel
2024-01-07 15:51 ` [bug#68191] Sharlatan Hellseher
2024-01-09  9:06 ` bug#68191: [PATCH] gnu: Add python-portend Mathieu Othacehe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.