mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-xdoctest: Update to 1.2.0.
* gnu/packages/python-xyz.scm (python-xdoctest): Update to 1.2.0. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; add 'pre-check phase. [native-inputs]: Add cmake-minimal, ninja, pybind11, python-pytest-cov, python-scikit-build, python-setuptools, and python-wheel. [propagated-inputs]: Remove python-six. Change-Id: Ia12eaa96751191efc2d6aa23ec460b3892cc6428
This commit is contained in:
parent
56f0cc81c0
commit
9562474ebc
1 changed files with 19 additions and 14 deletions
|
@ -20434,26 +20434,31 @@ python-xdo for newer bindings.)")
|
||||||
(define-public python-xdoctest
|
(define-public python-xdoctest
|
||||||
(package
|
(package
|
||||||
(name "python-xdoctest")
|
(name "python-xdoctest")
|
||||||
(version "1.0.0")
|
(version "1.2.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "xdoctest" version))
|
(uri (pypi-uri "xdoctest" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0bgbmb9nqv95f9gfxqifqff1qaz5fnanjqy4hv7ygrjp2kksgfvy"))))
|
(base32 "0qsqxp9bpjzg8kb4k8n3sppzbzdr6l6n0vkm7z9qir4ii5nwmkyq"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list
|
||||||
#~(modify-phases %standard-phases
|
#:phases
|
||||||
(replace 'check
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(add-before 'check 'pre-check
|
||||||
(when tests?
|
(lambda _
|
||||||
;; A writable HOME is needed by the
|
;; A writable HOME is needed by the 'import_module_from_path'
|
||||||
;; 'import_module_from_path' test.
|
;; test.
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp"))))))
|
||||||
(invoke "pytest" "-vv")))))))
|
(native-inputs (list cmake-minimal
|
||||||
(propagated-inputs (list python-six))
|
ninja
|
||||||
(native-inputs (list python-pytest which))
|
pybind11
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-scikit-build
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(home-page "https://github.com/Erotemic/xdoctest")
|
(home-page "https://github.com/Erotemic/xdoctest")
|
||||||
(synopsis "Rewrite of the Python builtin doctest module")
|
(synopsis "Rewrite of the Python builtin doctest module")
|
||||||
(description "This package provides a rewrite of the builtin doctest
|
(description "This package provides a rewrite of the builtin doctest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue