[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: Add python-enoslib.
From: |
guix-commits |
Subject: |
02/10: gnu: Add python-enoslib. |
Date: |
Mon, 14 Nov 2022 06:32:51 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e24f7762ac79084a289f544dd27b80d05ed298ff
Author: Matthieu Simonin <matthieu.simonin@inria.fr>
AuthorDate: Mon Nov 7 23:52:40 2022 +0100
gnu: Add python-enoslib.
* gnu/packages/python-web.scm (python-enoslib): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-web.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 628e96b87a..72f5cc3405 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)
@@ -8004,3 +8005,59 @@ 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 "8.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.inria.fr/discovery/enoslib";)
+ (commit (string-append "v" 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 "Deploy distributed testbeds on a variety of platforms")
+ (description
+ "EnOSlib is a library to build experimental frameworks on various
+scientific testbeds. It lets you deploy networks of machines on actual
+hardware on Grid'5000 or via OpenStack, to Vagrant, Chameleon, and more.")
+ (license license:gpl3+)))
- branch master updated (4cc746820a -> 4ba780aeb8), guix-commits, 2022/11/14
- 09/10: gnu: wf-recorder: Update to 0.3.0., guix-commits, 2022/11/14
- 05/10: gnu: Add siril., guix-commits, 2022/11/14
- 04/10: gnu: Add librtprocess., guix-commits, 2022/11/14
- 02/10: gnu: Add python-enoslib.,
guix-commits <=
- 08/10: gnu: swayidle: Update to 1.7.1., guix-commits, 2022/11/14
- 10/10: gnu: kanshi: Update to 1.3.0., guix-commits, 2022/11/14
- 03/10: gnu: Add clojure-data-csv., guix-commits, 2022/11/14
- 01/10: self: Mark the generation (guix config) as non-declarative., guix-commits, 2022/11/14
- 06/10: gnu: luajit: Update to commit 6c4826., guix-commits, 2022/11/14
- 07/10: gnu: Add snixembed., guix-commits, 2022/11/14