diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-04-06 14:14:09 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-05-12 12:45:35 -0400 |
commit | 06aa3cad61291d4a19cda8833074d99ef5282fff (patch) | |
tree | d5ee0884437825f93557e903a5b0cc1c23abe7d3 | |
parent | e91180f450a3ce0c99b778da0d43d11729adfa6f (diff) | |
download | guix-06aa3cad61291d4a19cda8833074d99ef5282fff.tar.gz guix-06aa3cad61291d4a19cda8833074d99ef5282fff.zip |
gnu: Add python-xdoctest.
* gnu/packages/python-xyz.scm (python-xdoctest): New variable.
-rw-r--r-- | gnu/packages/python-xyz.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9591ced6da..5048b5c04b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15204,6 +15204,36 @@ python-xdo for newer bindings.)") (define-public python2-xdo (package-with-python2 python-xdo)) +(define-public python-xdoctest + (package + (name "python-xdoctest") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xdoctest" version)) + (sha256 + (base32 "0bgbmb9nqv95f9gfxqifqff1qaz5fnanjqy4hv7ygrjp2kksgfvy")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; A writable HOME is needed by the + ;; 'import_module_from_path' test. + (setenv "HOME" "/tmp") + (invoke "pytest" "-vv"))))))) + (propagated-inputs (list python-six)) + (native-inputs (list python-pytest which)) + (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-mako (package (name "python-mako") |