From patchwork Thu Feb 15 20:46:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 60415 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8C01527BBEA; Thu, 15 Feb 2024 20:48:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EF3A527BBE2 for ; Thu, 15 Feb 2024 20:48:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raie8-00011h-6m; Thu, 15 Feb 2024 15:47:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raie4-00010g-7h for guix-patches@gnu.org; Thu, 15 Feb 2024 15:47:48 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raie3-0003YL-Tf; Thu, 15 Feb 2024 15:47:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raieL-0005Ez-HM; Thu, 15 Feb 2024 15:48:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66690] [PATCH v2 7/8] gnu: Add python-spython. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: arunisaac@systemreboot.net, ludo@gnu.org, leo@famulari.name, me@tobias.gr, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 20:48:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66690 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 66690@debbugs.gnu.org Cc: Arun Isaac , Arun Isaac , Ludovic =?utf-8?q?Court=C3=A8s?= , Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer X-Debbugs-Original-Xcc: Arun Isaac , Ludovic =?utf-8?q?Court=C3=A8s?= , Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer Received: via spool by 66690-submit@debbugs.gnu.org id=B66690.170803005719993 (code B ref 66690); Thu, 15 Feb 2024 20:48:05 +0000 Received: (at 66690) by debbugs.gnu.org; 15 Feb 2024 20:47:37 +0000 Received: from localhost ([127.0.0.1]:57561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raids-0005CP-HM for submit@debbugs.gnu.org; Thu, 15 Feb 2024 15:47:36 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:58864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raidp-0005C5-A9 for 66690@debbugs.gnu.org; Thu, 15 Feb 2024 15:47:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UtEXolSSeKb+apqsP36lJdU88okgONPKGNlitHR9PdA=; b=aEEh4LyfHOfiBOS62yB+RTDbda NUmhzwLRlBKGd4W54FzXIExO9A4Sy2jRf4Kb27ZIT2OHcThqx0NGAfwrrnpYD1OpSVKqOADM//8A9 3/JnEir3/mAtarzlbEtZHG+j7BUX587zqBk3WTgi+urEZXCwdeJ/iYm8mXpkCBSvqyD0iLOQ2JDpa 65aLjn2ymi9WjmHfzryr5fhxSzpNlubx9cjOOMw6R9616oYKsrLAslJU6bwcLmW0APE5AHsNfYGO4 BLqkZPaH//VjHjajFQaiwi4Acy5qJUFOHtKlXdJHfYtxgHkEghuhB0beIo7G6fUPmVDkDtyYM5+Xo oSVjKKkg==; Received: from [192.168.2.1] (port=57126 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1raicK-0004iN-0l; Thu, 15 Feb 2024 20:46:00 +0000 From: Arun Isaac Date: Thu, 15 Feb 2024 20:46:24 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2024 Gabriel Wicki ;;; Copyright © 2024 Sharlatan Hellseher +;;; Copyright © 2024 Arun Isaac ;;; ;;; 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")