unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#53777] [PATCH] add python-posix-ipc
@ 2022-02-04  4:53 Ian Ressa
  2022-02-09 13:54 ` Xinglu Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ian Ressa @ 2022-02-04  4:53 UTC (permalink / raw)
  To: 53777; +Cc: Ian Ressa

Adding python-posix-ipc to gnu/packages/python-xyz.scm

---
 gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 46419e8ace..53d5588564 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -116,6 +116,7 @@
 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
 ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
+;;; Copyright © 2022 Ian Ressa <ian@eonn.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28926,3 +28927,34 @@ (define-public python-types-dataclasses
      "This packages provides a collection of library stubs for Python, with
 static types.")
     (license license:asl2.0)))
+
+(define-public python-posix-ipc
+  (package
+    (name "python-posix-ipc")
+    (version "1.0.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "posix_ipc" version))
+              (sha256
+               (base32 "15wbxf67y17g04i3f3vjw9zjbvlvqqk9q1x0ya1y7apl5k7b3pbc"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:modules ((guix build python-build-system)
+                  ((guix build gnu-build-system) #:prefix gnu:)
+                  (guix build utils))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'support-cross-compilation
+           (lambda _
+             (substitute* "prober.py"
+               (("cc") ,(cc-for-target)))
+             #t)))))
+    (home-page "http://semanchuk.com/philip/posix_ipc/")
+    (synopsis
+     "POSIX IPC primitives (semaphores, shared memory and message
+queues) for Python")
+    (description
+     "The Python extension module posix_ipc gives Python access to
+POSIX inter-process semaphores, shared memory and message queues on systems
+that support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993.")
+    (license license:bsd-3)))
-- 
2.34.0





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

* [bug#53777] [PATCH] add python-posix-ipc
  2022-02-04  4:53 [bug#53777] [PATCH] add python-posix-ipc Ian Ressa
@ 2022-02-09 13:54 ` Xinglu Chen
  2022-03-06 21:37   ` Ludovic Courtès
  2022-05-15  3:30 ` [bug#53777] [PATCH v2] gnu: Add python-posix-ipc Ian Ressa
  2023-09-01 22:32 ` bug#53777: [PATCH] add python-posix-ipc Vagrant Cascadian
  2 siblings, 1 reply; 5+ messages in thread
From: Xinglu Chen @ 2022-02-09 13:54 UTC (permalink / raw)
  To: Ian Ressa, 53777; +Cc: Ian Ressa

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

Hi,

Ian schrieb am Freitag der 04. Februar 2022 um 04:53 GMT:

> Adding python-posix-ipc to gnu/packages/python-xyz.scm
>
> ---
>  gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 46419e8ace..53d5588564 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -116,6 +116,7 @@
>  ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
>  ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
>  ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
> +;;; Copyright © 2022 Ian Ressa <ian@eonn.xyz>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -28926,3 +28927,34 @@ (define-public python-types-dataclasses
>       "This packages provides a collection of library stubs for Python, with
>  static types.")
>      (license license:asl2.0)))
> +
> +(define-public python-posix-ipc
> +  (package
> +    (name "python-posix-ipc")
> +    (version "1.0.5")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "posix_ipc" version))
> +              (sha256
> +               (base32 "15wbxf67y17g04i3f3vjw9zjbvlvqqk9q1x0ya1y7apl5k7b3pbc"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:modules ((guix build python-build-system)
> +                  ((guix build gnu-build-system) #:prefix gnu:)
> +                  (guix build utils))

Nothing from (guix build gnu-build-system) seems to be used.  I think
you can drop the ‘#:modules’ arguments all together.

> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'support-cross-compilation
> +           (lambda _
> +             (substitute* "prober.py"
> +               (("cc") ,(cc-for-target)))
> +             #t)))))

Phases no longer have to return #f.


> +    (home-page "http://semanchuk.com/philip/posix_ipc/")

The page supports HTTPS too, so it should be used instead of plain HTTP.

> +    (synopsis
> +     "POSIX IPC primitives (semaphores, shared memory and message
> +queues) for Python")

The things in parenthesis are also mentioned in the description, so I
think you can drop them to make the synopsis a bit shorter.

> +    (description
> +     "The Python extension module posix_ipc gives Python access to
> +POSIX inter-process semaphores, shared memory and message queues on systems
> +that support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993.")
> +    (license license:bsd-3)))
> -- 
> 2.34.0

The rest LGTM!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

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

* [bug#53777] [PATCH] add python-posix-ipc
  2022-02-09 13:54 ` Xinglu Chen
@ 2022-03-06 21:37   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-03-06 21:37 UTC (permalink / raw)
  To: Ian Ressa; +Cc: 53777, Xinglu Chen

Hello Ian,

Did you have a chance to address Xinglu’s comments below?

Thanks in advance!

Ludo’.

Xinglu Chen <public@yoctocell.xyz> skribis:

> Hi,
>
> Ian schrieb am Freitag der 04. Februar 2022 um 04:53 GMT:
>
>> Adding python-posix-ipc to gnu/packages/python-xyz.scm
>>
>> ---
>>  gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
>>  1 file changed, 32 insertions(+)
>>
>> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
>> index 46419e8ace..53d5588564 100644
>> --- a/gnu/packages/python-xyz.scm
>> +++ b/gnu/packages/python-xyz.scm
>> @@ -116,6 +116,7 @@
>>  ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
>>  ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
>>  ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
>> +;;; Copyright © 2022 Ian Ressa <ian@eonn.xyz>
>>  ;;;
>>  ;;; This file is part of GNU Guix.
>>  ;;;
>> @@ -28926,3 +28927,34 @@ (define-public python-types-dataclasses
>>       "This packages provides a collection of library stubs for Python, with
>>  static types.")
>>      (license license:asl2.0)))
>> +
>> +(define-public python-posix-ipc
>> +  (package
>> +    (name "python-posix-ipc")
>> +    (version "1.0.5")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (pypi-uri "posix_ipc" version))
>> +              (sha256
>> +               (base32 "15wbxf67y17g04i3f3vjw9zjbvlvqqk9q1x0ya1y7apl5k7b3pbc"))))
>> +    (build-system python-build-system)
>> +    (arguments
>> +     `(#:modules ((guix build python-build-system)
>> +                  ((guix build gnu-build-system) #:prefix gnu:)
>> +                  (guix build utils))
>
> Nothing from (guix build gnu-build-system) seems to be used.  I think
> you can drop the ‘#:modules’ arguments all together.
>
>> +       #:phases
>> +       (modify-phases %standard-phases
>> +         (add-after 'unpack 'support-cross-compilation
>> +           (lambda _
>> +             (substitute* "prober.py"
>> +               (("cc") ,(cc-for-target)))
>> +             #t)))))
>
> Phases no longer have to return #f.
>
>
>> +    (home-page "http://semanchuk.com/philip/posix_ipc/")
>
> The page supports HTTPS too, so it should be used instead of plain HTTP.
>
>> +    (synopsis
>> +     "POSIX IPC primitives (semaphores, shared memory and message
>> +queues) for Python")
>
> The things in parenthesis are also mentioned in the description, so I
> think you can drop them to make the synopsis a bit shorter.
>
>> +    (description
>> +     "The Python extension module posix_ipc gives Python access to
>> +POSIX inter-process semaphores, shared memory and message queues on systems
>> +that support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993.")
>> +    (license license:bsd-3)))
>> -- 
>> 2.34.0
>
> The rest LGTM!




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

* [bug#53777] [PATCH v2] gnu: Add python-posix-ipc
  2022-02-04  4:53 [bug#53777] [PATCH] add python-posix-ipc Ian Ressa
  2022-02-09 13:54 ` Xinglu Chen
@ 2022-05-15  3:30 ` Ian Ressa
  2023-09-01 22:32 ` bug#53777: [PATCH] add python-posix-ipc Vagrant Cascadian
  2 siblings, 0 replies; 5+ messages in thread
From: Ian Ressa @ 2022-05-15  3:30 UTC (permalink / raw)
  To: 53777; +Cc: Ian Ressa

Sorry, I really dropped the ball on this one.
This patch is against a newer python-xyz.scm and fixes the issues listed.

---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 020f078dee..d6486291d3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -121,6 +121,7 @@
 ;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
 ;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com>
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 Ian Ressa <ian@eonn.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -31150,3 +31151,28 @@ (define-public python-deepmerge
      "The @code{deep-merge} Python library provides a toolset to deeply merge
 nested data structures in Python like lists and dictionaries.")
     (license license:expat)))
+
+(define-public python-posix-ipc
+  (package
+    (name "python-posix-ipc")
+    (version "1.0.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "posix_ipc" version))
+              (sha256
+	       (base32 "15wbxf67y17g04i3f3vjw9zjbvlvqqk9q1x0ya1y7apl5k7b3pbc"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'support-cross-compilation
+           (lambda _
+             (substitute* "prober.py"
+               (("cc") ,(cc-for-target))))))))
+  (home-page "https://semanchuk.com/philip/posix_ipc/")
+  (synopsis "POSIX IPC primitives for Python")
+  (description
+   "The Python extension module posix_ipc gives Python access to POSIX
+inter-process semaphores, shared memory and message queues on systems that
+support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993.")
+  (license license:bsd-3)))
-- 
2.36.0





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

* bug#53777: [PATCH] add python-posix-ipc
  2022-02-04  4:53 [bug#53777] [PATCH] add python-posix-ipc Ian Ressa
  2022-02-09 13:54 ` Xinglu Chen
  2022-05-15  3:30 ` [bug#53777] [PATCH v2] gnu: Add python-posix-ipc Ian Ressa
@ 2023-09-01 22:32 ` Vagrant Cascadian
  2 siblings, 0 replies; 5+ messages in thread
From: Vagrant Cascadian @ 2023-09-01 22:32 UTC (permalink / raw)
  To: Ian Ressa, 53777-done

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

On 2022-02-04, Ian Ressa wrote:
> Adding python-posix-ipc to gnu/packages/python-xyz.scm

python-posix-ipc was added in:

b12da85668c40be322204e1ca04fb70b4d709411 gnu: Add python-posix-ipc.

Marking as done.

live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

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

end of thread, other threads:[~2023-09-01 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-04  4:53 [bug#53777] [PATCH] add python-posix-ipc Ian Ressa
2022-02-09 13:54 ` Xinglu Chen
2022-03-06 21:37   ` Ludovic Courtès
2022-05-15  3:30 ` [bug#53777] [PATCH v2] gnu: Add python-posix-ipc Ian Ressa
2023-09-01 22:32 ` bug#53777: [PATCH] add python-posix-ipc Vagrant Cascadian

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).