~ruther/guix-local

c6ed036bd3274680f9098f0e6441309e79ef6054 — Nicolas Graves 3 months ago cf67f4b
gnu: python-posix-ipc: Update to 1.3.2.

* gnu/packages/python-xyz.scm (python-posix-ipc): Update to 1.3.2.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Ignore file failing test collection.
<#:phases>: Replace phase 'patch-cc-path by 'set-cc-path.
[native-inputs]: Add python-pytest, python-setuptools.

Change-Id: I4ddb86b4683d8477cd37f9a7d4a4712de58369e7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 13 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +13 -11
@@ 34630,26 34630,28 @@ by priority and queues that are emptied in a round-robin fashion.")
(define-public python-posix-ipc
  (package
    (name "python-posix-ipc")
    (version "1.0.5")
    (version "1.3.2")
    (source
     (origin
       ;; The source distributed on PyPI is prebuild.
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/osvenskan/posix_ipc")
             (commit (string-append "rel" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "17y4d0pmvp199c5hbs602ailhlh9f9zv89kmpbd8jhyl6rgaxsvs"))))
    (build-system python-build-system)
        (base32 "0g9zhadssq01q4xcf25lq2qmn7q02p877bx0nyx3b09phgw6860j"))))
    (build-system pyproject-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'patch-cc-path
                 (lambda _
                   (substitute* "prober.py"
                     (("cmd = .cc")
                      (string-append "cmd = \"" #$(cc-for-target)))))))))
     (list
      #:test-flags
      ;; XXX: Collection fails due to stdin configuration.
      #~(list "--ignore=tests/test_memory.py")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-cc-path
            (lambda _
              (setenv "CC" #$(cc-for-target)))))))
    (native-inputs (list python-pytest python-setuptools))
    (home-page "https://semanchuk.com/philip/posix_ipc/")
    (synopsis "POSIX IPC primitives for Python")
    (description