diff options
author | David Elsing <david.elsing@posteo.net> | 2024-08-04 22:15:51 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-06 11:46:24 +0200 |
commit | 8f6919f25272c1cb8b5256980fc5f55515317cb1 (patch) | |
tree | d3bbd8e31d7fd0ebfd51a7d4b699165f08b58fb8 | |
parent | 8349d308069ef3d6803afa69f58eff74005232a2 (diff) | |
download | guix-8f6919f25272c1cb8b5256980fc5f55515317cb1.tar guix-8f6919f25272c1cb8b5256980fc5f55515317cb1.tar.gz |
gnu: Add python-parameterized-next.
* gnu/packages/check.scm (python-parameterized-next): New variable.
-rw-r--r-- | gnu/packages/check.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 855480d6db..248d1c4231 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1376,6 +1376,28 @@ syntax validation, ... for every Python test framework. It supports nose, py.test, and unittest.") (license license:bsd-2))) +(define-public python-parameterized-next + (package + (inherit python-parameterized) + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "parameterized" version)) + (sha256 + (base32 "1c89vc40zj5aj2zvbvw875wqpyf0x6xrqhm3q5jg797g5hkhbjbz")))) + (build-system pyproject-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (substitute* "parameterized/test.py" + (("import mock") "from unittest import mock")) + (invoke "python3" "-m" "unittest"))))))) + (native-inputs (list python-jinja2)))) + (define-public python-minimock (package (name "python-minimock") |