diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-04-22 11:53:11 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:52 +0100 |
| commit | 75a3b10447c9bf6783c0a0c15615d341fca1f097 (patch) | |
| tree | 396124391a5a0e8ac87788d232069692311ee293 /gnu | |
| parent | 8b36bd856f813baca629fb9242f1067639507168 (diff) | |
gnu: python-passlib: Skip some tests.
* gnu/packages/python-crypto.scm (python-passlib):
[arguments] <test-flags>: Skip 4 tests groups; run tests in parallel.
[native-inputs]: Remove python-wheel; add python-pytest-xdist.
Change-Id: I89d9e7f789137d22a1246d175e561c50965c8ae2
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 6fcbf6c0f13..6a8e94153aa 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm | |||
| @@ -185,6 +185,8 @@ Password Scheme\"} by Niels Provos and David Mazieres.") | |||
| 185 | 185 | ||
| 186 | (define-public python-passlib | 186 | (define-public python-passlib |
| 187 | (package | 187 | (package |
| 188 | ;; TODO: Migrate to a fork as the project is not maintained. | ||
| 189 | ;; See: guix/guix#8068. | ||
| 188 | (name "python-passlib") | 190 | (name "python-passlib") |
| 189 | (version "1.7.4") | 191 | (version "1.7.4") |
| 190 | (source | 192 | (source |
| @@ -199,6 +201,19 @@ Password Scheme\"} by Niels Provos and David Mazieres.") | |||
| 199 | (build-system pyproject-build-system) | 201 | (build-system pyproject-build-system) |
| 200 | (arguments | 202 | (arguments |
| 201 | (list | 203 | (list |
| 204 | ;; tests: 1099 passed, 1011 skipped, 199 warnings | ||
| 205 | #:test-flags | ||
| 206 | #~(list "--numprocesses" (number->string (min 8 (parallel-job-count))) | ||
| 207 | ;; AssertionError: expected 'linux' platform would have native | ||
| 208 | ;; support for 'des_crypt', 'md5_crypt', 'sha256_crypt', | ||
| 209 | ;; 'sha512_crypt' | ||
| 210 | #$@(map (lambda (test) | ||
| 211 | (string-append "--deselect=passlib/" | ||
| 212 | "tests/test_handlers.py::")) | ||
| 213 | (list "des_crypt_os_crypt_test::test_82_crypt_support" | ||
| 214 | "md5_crypt_os_crypt_test::test_82_crypt_support" | ||
| 215 | "sha256_crypt_os_crypt_test::test_82_crypt_support" | ||
| 216 | "sha512_crypt_os_crypt_test::test_82_crypt_support"))) | ||
| 202 | #:phases | 217 | #:phases |
| 203 | #~(modify-phases %standard-phases | 218 | #~(modify-phases %standard-phases |
| 204 | (add-before 'check 'set-PYTHON_EGG_CACHE | 219 | (add-before 'check 'set-PYTHON_EGG_CACHE |
| @@ -206,7 +221,9 @@ Password Scheme\"} by Niels Provos and David Mazieres.") | |||
| 206 | (lambda _ | 221 | (lambda _ |
| 207 | (setenv "PYTHON_EGG_CACHE" "/tmp")))))) | 222 | (setenv "PYTHON_EGG_CACHE" "/tmp")))))) |
| 208 | (native-inputs | 223 | (native-inputs |
| 209 | (list python-pytest python-setuptools python-wheel)) | 224 | (list python-pytest |
| 225 | python-pytest-xdist | ||
| 226 | python-setuptools)) | ||
| 210 | (propagated-inputs | 227 | (propagated-inputs |
| 211 | (list python-argon2-cffi python-bcrypt python-cryptography)) | 228 | (list python-argon2-cffi python-bcrypt python-cryptography)) |
| 212 | (home-page "https://foss.heptapod.net/python-libs/passlib") | 229 | (home-page "https://foss.heptapod.net/python-libs/passlib") |
