[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/78: gnu: Add python-spython.
From: |
guix-commits |
Subject: |
16/78: gnu: Add python-spython. |
Date: |
Fri, 23 Feb 2024 03:11:59 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 13f64e91054ffe7f8dc3492499046883c9c519b9
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Thu Feb 15 13:57:50 2024 +0000
gnu: Add python-spython.
* gnu/packages/linux.scm (python-spython): New variable.
Change-Id: I758f879608bc4b0c0411918b4ee0fa9cc3abc639
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
---
gnu/packages/linux.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 339add4d82..8eb6d9b7d3 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.
;;;
@@ -5276,6 +5277,51 @@ existing Docker images. Singularity requires kernel
support for container
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")
- 02/78: gnu: Remove duplicate module import., (continued)
- 02/78: gnu: Remove duplicate module import., guix-commits, 2024/02/23
- 01/78: gnu: Add libdbx., guix-commits, 2024/02/23
- 04/78: gnu: vim-asyncrun: Update to 2.12.4., guix-commits, 2024/02/23
- 08/78: gnu: emacs-tramp: Update to 2.6.2.1., guix-commits, 2024/02/23
- 05/78: gnu: Add neovim-asyncrun., guix-commits, 2024/02/23
- 11/78: gnu: python-ruamel-yaml: Update to 0.18.6., guix-commits, 2024/02/23
- 09/78: gnu: tigervnc-client: Update to 1.13.1., guix-commits, 2024/02/23
- 10/78: gnu: python-ruamel.yaml.clib: Update to 0.2.8., guix-commits, 2024/02/23
- 13/78: gnu: Add python-cwlformat., guix-commits, 2024/02/23
- 14/78: gnu: Add python-cwl-upgrader., guix-commits, 2024/02/23
- 16/78: gnu: Add python-spython.,
guix-commits <=
- 18/78: gnu: Add xpenguins., guix-commits, 2024/02/23
- 12/78: gnu: python-schema-salad: Update to 8.5.20240102191335., guix-commits, 2024/02/23
- 15/78: gnu: Add python-cwl-utils., guix-commits, 2024/02/23
- 17/78: gnu: cwltool: Update to 3.1.20240112164112., guix-commits, 2024/02/23
- 20/78: gnu: virglrenderer: Update to 1.0.1., guix-commits, 2024/02/23
- 29/78: gnu: emacs-auctex: Update to 14.0.3., guix-commits, 2024/02/23
- 30/78: gnu: emacs-mmm-mode: Update to 0.5.11., guix-commits, 2024/02/23
- 40/78: gnu: emacs-dtrt-indent: Update to 1.17., guix-commits, 2024/02/23
- 42/78: gnu: emacs-edit-indirect: Update to 0.1.13., guix-commits, 2024/02/23
- 38/78: gnu: emacs-corfu: Update to 1.2., guix-commits, 2024/02/23