mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-enoslib: Switch to pyproject.
* gnu/packages/python-web.scm (python-enoslib): [source]: Improve style. [build-system]: Switch to pyproject-build-system. [arguments]: Reorder field. <#:test-flags>: Use to avoid 'check phase replacement. <#:phases>: Replace former 'check with 'pre-check phase. [native-inputs]: Add python-setuptools. Reorder and improve style. [propagated-inputs]: Improve style. Change-Id: Icada22c14f7b936dd562729eb85a6089986e3c8e Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
3225dafe10
commit
85b13a54d3
1 changed files with 47 additions and 43 deletions
|
@ -11576,50 +11576,54 @@ Grid5000 resources interactively using the embedded shell.")
|
||||||
(package
|
(package
|
||||||
(name "python-enoslib")
|
(name "python-enoslib")
|
||||||
(version "8.0.1")
|
(version "8.0.1")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://gitlab.inria.fr/discovery/enoslib")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://gitlab.inria.fr/discovery/enoslib")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
"0vs6b0bnlv95mzv0rjbxqwrhzkgjkn91gqipgwdf7y4ffpz8nybg")))
|
(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
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
(list
|
||||||
(replace 'check
|
#:test-flags
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#~(list "enoslib/tests/unit"
|
||||||
(when tests?
|
"--ignore" "enoslib/tests/unit/infra/test_utils.py"
|
||||||
;; Otherwise Ansible fails to create its config directory.
|
"--ignore-glob" "enoslib/tests/unit/infra/enos_iotlab/*")
|
||||||
(setenv "HOME" "/tmp")
|
#:phases
|
||||||
;; Ignoring the tests requiring an extra dependency (iotlabcli)
|
#~(modify-phases %standard-phases
|
||||||
(invoke "pytest" "enoslib/tests/unit"
|
(add-before 'check 'pre-check
|
||||||
"--ignore"
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
"enoslib/tests/unit/infra/test_utils.py"
|
(when tests?
|
||||||
"--ignore-glob"
|
;; Otherwise Ansible fails to create its config directory.
|
||||||
"enoslib/tests/unit/infra/enos_iotlab/*"))))
|
(setenv "HOME" "/tmp"))))
|
||||||
;; Disable the sanity check, which fails with the following error:
|
;; Disable the sanity check, which fails with the following error:
|
||||||
;;
|
;;
|
||||||
;; ContextualVersionConflict(rich 12.4.1
|
;; ContextualVersionConflict(rich 12.4.1
|
||||||
;; (/gnu/store/...-python-rich-12.4.1/lib/python3.9/site-packages),
|
;; (/gnu/store/...-python-rich-12.4.1/lib/python3.9/site-packages),
|
||||||
;; Requirement.parse('rich[jupyter]~=12.0.0'), {'enoslib'})
|
;; Requirement.parse('rich[jupyter]~=12.0.0'), {'enoslib'})
|
||||||
;;
|
;;
|
||||||
;; The optional jupyter dependency of rich isn't critical for
|
;; The optional jupyter dependency of rich isn't critical for
|
||||||
;; EnOSlib to work
|
;; EnOSlib to work
|
||||||
(delete 'sanity-check))))
|
(delete 'sanity-check))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
|
(native-inputs
|
||||||
|
(list python-ddt
|
||||||
|
python-freezegun
|
||||||
|
python-pytest
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ansible
|
||||||
|
python-cryptography
|
||||||
|
python-grid5000
|
||||||
|
python-jsonschema
|
||||||
|
python-netaddr
|
||||||
|
python-packaging
|
||||||
|
python-requests
|
||||||
|
python-rich
|
||||||
|
python-sshtunnel
|
||||||
|
python-pytz))
|
||||||
(home-page "https://discovery.gitlabpages.inria.fr/enoslib/index.html")
|
(home-page "https://discovery.gitlabpages.inria.fr/enoslib/index.html")
|
||||||
(synopsis "Deploy distributed testbeds on a variety of platforms")
|
(synopsis "Deploy distributed testbeds on a variety of platforms")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue