From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WO3nJ0CTaWN9cQEAbAwnHQ (envelope-from ) for ; Tue, 08 Nov 2022 00:22:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yCWkJ0CTaWPuBAEAauVa8A (envelope-from ) for ; Tue, 08 Nov 2022 00:22:40 +0100 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 59C8E18FDA for ; Tue, 8 Nov 2022 00:22:40 +0100 (CET) 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=; 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667863360; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8dX6f5YpaDlbWntyTx2Q3Lk64/dr1BufSkL6VT0/AzA=; b=AkgFTIlgr+LaoU/RLO0UeLbJKrNPLi1InloBHSXmWHWMuW43jF2hGYQM0IJDplhuErq+Zs w5L8CoYJuCaG2xzrodJQGoXoECAiY/n5ZjRS630OslQEwaA4rkHLBOugZtrqCu2RJJQZ8O o1UIut1V8laG6OHoLtjG1SbIlpUe3fgw5R33qJpF8fvRFy0xZD4B4qUbfQq4Ecu2zbU9MT swtxOZgIy8NfugNUwWBakG4jAfJu92qAamES2QcyhekwdEHuXcPuHpYNmy0zcx5KPwNEvg AC8bQLcebOAU9fdCMWoQROZ19GZxklatj39ZcPQXa8oykZRC9Dnn2fIb8Gz0Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667863360; a=rsa-sha256; cv=none; b=OVJNvGlKaeALPow3EwWHGihMAiTezAOHEdw2V1ABx3V5b+a7OU3iBeEkCUn2O8nL31wDd4 fjuVzghEA8bOX504ks4FMVcHTYAgKoqyWqJoJF62AcNTMgpIcJx5FDTCXXloaDCGAJfa0W FBRcNid7w+HMDoW16cdWjYvbQoV1KR99SToJ+SPqdKTyIUuegTgkmf2FwhNY8uglhpD3dt dwB3hGtoS6xeM2io8ZkBI1w29U/RUGQBCoaRpZNElI3uqZbLc4WVo6zWQ9NdBfMx3wncdV 5XqT89SlTU9ibYcgQUfPU2oKGYPMKV5aCCrTs2yUACbzrCKhYfoBpOXDIPbVLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=tNbWfwz9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (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" X-Migadu-Spam-Score: 7.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=tNbWfwz9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (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" X-Migadu-Queue-Id: 59C8E18FDA X-Spam-Score: 7.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: iGWJWpiu0q+u From: Matthieu Simonin --- gnu/packages/python-web.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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+))) base-commit: 8e54584d4448d37ddf8ae995bb545a181ba2493c -- 2.30.2