unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 66690@debbugs.gnu.org
Cc: "Arun Isaac" <arunisaac@systemreboot.net>,
	"Arun Isaac" <arunisaac@systemreboot.net>,
	"Ludovic Courtès" <ludo@gnu.org>,
	"Leo Famulari" <leo@famulari.name>,
	"Tobias Geerinckx-Rice" <me@tobias.gr>,
	"Wilko Meyer" <w@wmeyer.eu>
Subject: [bug#66690] [PATCH v2 7/8] gnu: Add python-spython.
Date: Thu, 15 Feb 2024 20:46:24 +0000	[thread overview]
Message-ID: <a7407a22c850d3bb4591f6de6e062a91a6e92cc2.1708029746.git.arunisaac@systemreboot.net> (raw)
In-Reply-To: <cover.1708029746.git.arunisaac@systemreboot.net>

* gnu/packages/linux.scm (python-spython): New variable.

Change-Id: I758f879608bc4b0c0411918b4ee0fa9cc3abc639
---
 gnu/packages/linux.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d798c44a8f..99bc517a96 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -80,6 +80,7 @@
 ;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
 ;;; Copyright © 2024 Gabriel Wicki <gabriel@erlikon.ch>
 ;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2024 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5265,6 +5266,51 @@ (define-public singularity
 isolation or root privileges.")
     (license license:bsd-3)))
 
+(define-public python-spython
+  (package
+    (name "python-spython")
+    (version "0.3.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "spython" version))
+       (sha256
+        (base32 "0kly851k6mj7xzcybciav5d0pq5q04pzg7c5a1g712bqbxkha4ck"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Configure absolute path to singularity.
+          (add-after 'unpack 'configure
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((singularity (search-input-file inputs "bin/singularity")))
+                (substitute* "spython/utils/terminal.py"
+                  (("software=\"singularity\"")
+                   (string-append "software=\"" singularity "\"")))
+                (substitute* (list "spython/utils/terminal.py"
+                                   "spython/main/help.py"
+                                   "spython/main/base/command.py")
+                  (("\\[\"singularity\"")
+                   (string-append "[\"" singularity "\"")))
+                (substitute* "spython/main/execute.py"
+                  (("shutil.which\\(\"singularity\"\\)")
+                   (string-append "shutil.which(\"" singularity "\")"))))))
+          ;; Skip tests that require network access.
+          (add-before 'check 'skip-tests
+            (lambda _
+              (delete-file "spython/tests/test_client.py"))))))
+    (inputs
+     (list singularity))
+    (native-inputs
+     (list python-pytest
+           python-pytest-runner))
+    (home-page "https://github.com/singularityhub/singularity-cli")
+    (synopsis "Singularity Python client")
+    (description "@code{python-spython} is a Python library to interact with
+Singularity containers.")
+    (license license:mpl2.0)))
+
 (define-public libnvme
   (package
     (name "libnvme")
-- 
2.41.0





  parent reply	other threads:[~2024-02-15 20:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-22 22:27 [bug#66690] [PATCH 0/7] Upgrade cwltool Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 1/7] gnu: python-ruamel.yaml.clib: Update to 0.2.7 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 2/7] gnu: python-ruamel.yaml: Update to 0.17.40 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 3/7] gnu: python-schema-salad: Update to 8.4.20230927144413 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 4/7] gnu: Add python-cwlformat Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 5/7] gnu: Add python-cwl-upgrader Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 6/7] gnu: Add python-cwl-utils Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 7/7] gnu: cwltool: Update to 3.1.20230601100705 Arun Isaac
2023-11-22 14:37 ` [bug#66690] [PATCH 0/7] Upgrade cwltool Ludovic Courtès
2023-11-23  0:35   ` Arun Isaac
2024-02-15 20:46 ` [bug#66690] [PATCH v2 0/8] " Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 1/8] gnu: python-ruamel.yaml.clib: Update to 0.2.8 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 2/8] gnu: python-ruamel-yaml: Update to 0.18.6 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 3/8] gnu: python-schema-salad: Update to 8.5.20240102191335 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 4/8] gnu: Add python-cwlformat Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 5/8] gnu: Add python-cwl-upgrader Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 6/8] gnu: Add python-cwl-utils Arun Isaac
2024-02-15 20:46   ` Arun Isaac [this message]
2024-02-15 20:46   ` [bug#66690] [PATCH v2 8/8] gnu: cwltool: Update to 3.1.20240112164112 Arun Isaac
2024-02-18 22:39   ` [bug#66690] [PATCH v2 0/8] Upgrade cwltool Ludovic Courtès
2024-02-22 13:16     ` bug#66690: " Arun Isaac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7407a22c850d3bb4591f6de6e062a91a6e92cc2.1708029746.git.arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=66690@debbugs.gnu.org \
    --cc=leo@famulari.name \
    --cc=ludo@gnu.org \
    --cc=me@tobias.gr \
    --cc=w@wmeyer.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).