diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-15 15:24:46 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-15 15:27:09 +0100 |
| commit | 13fe86851229d6ee95a624db88c5cf9818e9b01f (patch) | |
| tree | 0e013627ce1ab8a27541f936170e7674d586fbac /gnu/packages/python-check.scm | |
| parent | a9f23f01497d1f4aecc17b8aa2f85bb512d5a433 (diff) | |
gnu: python-icontract: Fix tests.
* gnu/packages/python-check.scm (python-icontract)[arguments] <phases>:
Add 'relax-requirements.
[native-inputs]: Remove python-wheel; add python-deal,
python-dpcontracts, and python-pytest.
Change-Id: Ie2d418673f15f7db3128c5a0b81a320765fc5df7
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 7245ef88a04..92ea2355500 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -1195,11 +1195,10 @@ programs, something like CSmith, a random generator of C programs.") | |||
| 1195 | (version "2.7.1") | 1195 | (version "2.7.1") |
| 1196 | (source | 1196 | (source |
| 1197 | (origin | 1197 | (origin |
| 1198 | ;; There are no tests in the PyPI tarball. | ||
| 1199 | (method git-fetch) | 1198 | (method git-fetch) |
| 1200 | (uri (git-reference | 1199 | (uri (git-reference |
| 1201 | (url "https://github.com/Parquery/icontract") | 1200 | (url "https://github.com/Parquery/icontract") |
| 1202 | (commit (string-append "v" version)))) | 1201 | (commit (string-append "v" version)))) |
| 1203 | (file-name (git-file-name name version)) | 1202 | (file-name (git-file-name name version)) |
| 1204 | (sha256 | 1203 | (sha256 |
| 1205 | (base32 "1fix7wx899kn8vp9aa5m6q71la48gx3qqx4qd74535m61pb50r7f")))) | 1204 | (base32 "1fix7wx899kn8vp9aa5m6q71la48gx3qqx4qd74535m61pb50r7f")))) |
| @@ -1207,6 +1206,10 @@ programs, something like CSmith, a random generator of C programs.") | |||
| 1207 | (list | 1206 | (list |
| 1208 | #:phases | 1207 | #:phases |
| 1209 | #~(modify-phases %standard-phases | 1208 | #~(modify-phases %standard-phases |
| 1209 | (add-after 'unpack 'relax-requirements | ||
| 1210 | (lambda _ | ||
| 1211 | (substitute* "setup.py" | ||
| 1212 | (("asttokens>=2,<3") "asttokens")))) | ||
| 1210 | (add-before 'check 'set-icontract-slow | 1213 | (add-before 'check 'set-icontract-slow |
| 1211 | (lambda _ | 1214 | (lambda _ |
| 1212 | ;; Setting ICONTRACT_SLOW, does not enable a slow test suite. | 1215 | ;; Setting ICONTRACT_SLOW, does not enable a slow test suite. |
| @@ -1215,13 +1218,15 @@ programs, something like CSmith, a random generator of C programs.") | |||
| 1215 | (setenv "ICONTRACT_SLOW" "1")))))) | 1218 | (setenv "ICONTRACT_SLOW" "1")))))) |
| 1216 | (build-system pyproject-build-system) | 1219 | (build-system pyproject-build-system) |
| 1217 | (native-inputs | 1220 | (native-inputs |
| 1218 | (list python-astor | 1221 | (list python-asyncstdlib |
| 1219 | python-asyncstdlib | 1222 | python-astor |
| 1223 | python-deal | ||
| 1224 | python-dpcontracts | ||
| 1220 | python-mypy | 1225 | python-mypy |
| 1221 | python-numpy | 1226 | python-numpy |
| 1227 | python-pytest | ||
| 1222 | python-setuptools | 1228 | python-setuptools |
| 1223 | python-typeguard | 1229 | python-typeguard)) |
| 1224 | python-wheel)) | ||
| 1225 | (propagated-inputs | 1230 | (propagated-inputs |
| 1226 | (list python-asttokens | 1231 | (list python-asttokens |
| 1227 | python-typing-extensions)) | 1232 | python-typing-extensions)) |
