summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-04 00:54:48 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-04 01:39:29 +0100
commit221abb5ef7b037a9725df56615d923d729931cf1 (patch)
tree4d21508751a50e402e828f583838ab9f22e636d2 /gnu/packages/python-check.scm
parent0c5be64c58ace125e8cae1f3f3abd0cffa127c81 (diff)
gnu: python-xdoctest: Move to python-check.
* gnu/packages/python-xyz.scm (python-xdoctest): Move from here ... * gnu/packages/python-check.scm: ... to here. Change-Id: Ic20d4d77ac14da286dd8d6438eab3b3a528bf97b
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7e4d8828ddc..a9f79b24c9e 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -59,12 +59,14 @@
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages cmake)
#:use-module (gnu packages nss)
#:use-module (gnu packages check)
#:use-module (gnu packages django)
#:use-module (gnu packages jupyter)
#:use-module (gnu packages maths)
#:use-module (gnu packages mpi)
+ #:use-module (gnu packages ninja)
#:use-module (gnu packages openstack)
#:use-module (gnu packages perl)
#:use-module (gnu packages python-build)
@@ -4283,6 +4285,41 @@ dead code. Also, code that is only called implicitly may be reported as
unused.")
(license license:expat)))
+(define-public python-xdoctest
+ (package
+ (name "python-xdoctest")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xdoctest" version))
+ (sha256
+ (base32 "1m69yvc3bl9jj5av89p9jl08w9lsn0k3lqclpdbiq0g67fdbjb7r"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; A writable HOME is needed by the 'import_module_from_path'
+ ;; test.
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list cmake-minimal
+ ninja
+ pybind11
+ python-pytest-bootstrap
+ python-scikit-build
+ python-setuptools))
+ (home-page "https://github.com/Erotemic/xdoctest")
+ (synopsis "Rewrite of the Python builtin doctest module")
+ (description
+ "This package provides a rewrite of the builtin doctest module which
+ leverages the Python @acronym{AST, Abstract Syntax Tree} instead of
+@acronym{REGEXPs, regular expressions}.")
+ (license license:asl2.0)))
+
(define-public python-xunitparser
(package
(name "python-xunitparser")