From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KMLWDJh4zmVD5AAAe85BDQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 21:48:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KMLWDJh4zmVD5AAAe85BDQ (envelope-from ) for ; Thu, 15 Feb 2024 21:48:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=aEEh4Lyf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708030103; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UtEXolSSeKb+apqsP36lJdU88okgONPKGNlitHR9PdA=; b=W0H0xoS35WroSsdP1nyLEqJWmM5aWxbrzoMtawT4dbno8C+2ozVw0N+QrW9+5Timf6uA9Z jIoOHSo+ztPnLK+s9FEyVQEvU3HgKNR6HTzauKmSMdJb5iMzoeQu9USTGpJwguN/ad+qaw B8lMdLfQ38UrpVNLiGL+e6JyciSzEM9tH2VYNJos+NPmHyPY9tnuQe5+8d30CC+v3Bb3y2 NSgOYt9YU+FCNliiVunvcxc5SN2EmBpMSFdTBfkjmUhN29Bh8OKOChkEKrYVMASmaq9le5 6w1cS/LD1Ebi/R62g7PAY0Zu/XVIKnoaMnyCcXy8jFmZrUJK4jQ+7dpTBFryYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=aEEh4Lyf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708030103; a=rsa-sha256; cv=none; b=s4nIertAwuSIW4JaFe/dwFki/xvqcBi2QPv4g5WQ13ID9tgReEzBDW3DqosPiCUniV5baw J/uGz/8yaNrN/ng0VLIfMajMiHeOYZ4IqQ4XE3kPhEKTwpDVoNb0DA/LntAaNPbFdz6PWh bRSBLlPNs4WFUqv3FgRYgeqUId4YLNcqw64B/G3frLnlkF2yMh3ax87EQS0U8SBZSfa7NE HTmJF6g3DITF9MAz+lX0YQ9g6RuQbQqEPFVL+htbkuMfRHRU1P2gANbMuFN+J7/QVaEPfs UNq8Wv/uHUhVJPW51Js+XH/b51G+s8CsniOA5qZLZ7Hka9bRaCZYE95PRbAe1A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E5638459DA for ; Thu, 15 Feb 2024 21:48:23 +0100 (CET) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 3.52 X-Spam-Score: 3.52 X-Migadu-Queue-Id: E5638459DA X-Migadu-Scanner: mx13.migadu.com X-TUID: +Y0N9h+OVLTm * 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") -- 2.41.0