From patchwork Mon Nov 7 22:52:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matthieu.simonin@inria.fr X-Patchwork-Id: 44386 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 0D93727BBEA; Mon, 7 Nov 2022 23:22:42 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 5EB0927BBE9 for ; Mon, 7 Nov 2022 23:22:40 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osB0M-0005pc-OJ; Mon, 07 Nov 2022 17:54:10 -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 1osB0F-0005kq-Gu for guix-patches@gnu.org; Mon, 07 Nov 2022 17:54:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osB0E-0004fE-Qt for guix-patches@gnu.org; Mon, 07 Nov 2022 17:54:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osB0E-0006qC-3L for guix-patches@gnu.org; Mon, 07 Nov 2022 17:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59112] [PATCH] gnu: add python-enoslib Resent-From: matthieu.simonin@inria.fr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Nov 2022 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59112 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59112@debbugs.gnu.org Cc: Matthieu Simonin X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166786158626215 (code B ref -1); Mon, 07 Nov 2022 22:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Nov 2022 22:53:06 +0000 Received: from localhost ([127.0.0.1]:35636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osAzK-0006ol-0N for submit@debbugs.gnu.org; Mon, 07 Nov 2022 17:53:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:45268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osAzH-0006oc-Tl for submit@debbugs.gnu.org; Mon, 07 Nov 2022 17:53:04 -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 1osAzF-0004yw-CX for guix-patches@gnu.org; Mon, 07 Nov 2022 17:53:01 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osAz8-00006d-GD for guix-patches@gnu.org; Mon, 07 Nov 2022 17:53:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8dX6f5YpaDlbWntyTx2Q3Lk64/dr1BufSkL6VT0/AzA=; b=tNbWfwz9NVTMiWlpDzA+0Zkvy5C4ObKISi3eBz+sPvkHtf/iZjpjZMRq /886ijTGNy+N6ymE72KEbZxlK1c1IRLxL1YudzgjPsbsdcntpRTaUEyjH VLmiCHfeeoJ9rXnkkeNgUT2eaVyoyLdwynTTEBnEHe9uNZxJtgHWmzAIN U=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=matthieu.simonin@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.96,145,1665439200"; d="scan'208";a="77115075" Received: from 82-64-92-6.subs.proxad.net (HELO talouette.local) ([82.64.92.6]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 23:52:49 +0100 From: matthieu.simonin@inria.fr Date: Mon, 7 Nov 2022 23:52:40 +0100 Message-Id: <20221107225240.210685-1-matthieu.simonin@inria.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: pass client-ip=192.134.164.83; envelope-from=matthieu.simonin@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 From: Matthieu Simonin --- gnu/packages/python-web.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) base-commit: 8e54584d4448d37ddf8ae995bb545a181ba2493c diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 905ed6a327..65e511b7e9 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -84,6 +84,7 @@ #:use-module (guix gexp) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) @@ -7889,3 +7890,60 @@ list, create, update, or delete resources (e.g. Order, Product, Collection).") You can use it as a library in your python project or you can explore the Grid5000 resources interactively using the embedded shell.") (license license:gpl3+))) + +(define-public python-enoslib + (package + (name "python-enoslib") + (version "v8.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.inria.fr/discovery/enoslib") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + "0vs6b0bnlv95mzv0rjbxqwrhzkgjkn91gqipgwdf7y4ffpz8nybg"))) + (build-system python-build-system) + (native-inputs + (list python-wheel + python-pytest + python-ddt + python-freezegun)) + (propagated-inputs + (list ansible + python-cryptography + python-grid5000 + python-jsonschema + python-netaddr + python-packaging + python-requests + python-rich + python-sshtunnel + python-pytz)) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Otherwise Ansible fails to create its config directory. + (setenv "HOME" "/tmp") + ;; Ignoring the tests requiring an extra dependency (iotlabcli) + (invoke "pytest" "enoslib/tests/unit" + "--ignore" "enoslib/tests/unit/infra/test_utils.py" + "--ignore-glob" "enoslib/tests/unit/infra/enos_iotlab/*")))) + ;; Disable the sanity check, which fails with the following error: + ;; + ;; ContextualVersionConflict(rich 12.4.1 + ;; (/gnu/store/...-python-rich-12.4.1/lib/python3.9/site-packages), + ;; Requirement.parse('rich[jupyter]~=12.0.0'), {'enoslib'}) + ;; + ;; The optional jupyter dependency of rich isn't critical for + ;; EnOSlib to work + (delete 'sanity-check)))) + + (home-page "https://discovery.gitlabpages.inria.fr/enoslib/index.html") + (synopsis "EnOSlib") + (description "EnOSlib is a library to build experimental frameworks on various + scientific testbeds.") + (license license:gpl3+)))