diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-15 22:26:37 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:08 +0100 |
| commit | 18cd3b9e7620a5a214b204650db90e4b7cd6ecc7 (patch) | |
| tree | f502edebc53df3ee71bc13a61fb72fa01813466e /gnu/packages/python-xyz.scm | |
| parent | 5330cc5dec5fa46308dc53da9eb070ead05747b9 (diff) | |
gnu: python-future: Update to 1.0.0.
* gnu/packages/python-xyz.scm (python-future): Update to 1.0.0.
[build-system]: Switch to pyproject-build-system.
[arguments] <tests?>: Enable them as issues was resolved in 0.17.0.
<test-flags>: Skip some problematic tests.
<phases>: Use default 'check and 'sanity-check.
[native-inputs]: Add python-pytest and python-setuptools.
Change-Id: I2f8c5ab093859022b419ae47264fca7c72aa94fa
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f09e101013..32e38d7b6d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22370,42 +22370,42 @@ development version of CPython that are not available in older releases.") (define-public python-future (package (name "python-future") - (version "0.18.2") + (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "future" version)) (sha256 - (base32 - "0zakvfj87gy6mn1nba06sdha63rn4njm7bhh0wzyrxhcny8avgmi")))) - (build-system python-build-system) - ;; Many tests connect to the network or are otherwise flawed. - ;; https://github.com/PythonCharmers/python-future/issues/210 + (base32 "01bvq2a5vgxffq8555rvwhxw161m9y54z2j5w7d1x1h7jcq6hadx")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (replace 'sanity-check - (let ((sanity-check (assoc-ref %standard-phases 'sanity-check))) - (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) - (let* ((files (find-files (site-packages inputs outputs) - "top_level\\.txt")) - (backups (map (lambda (f) (string-append f ".bak")) - files))) - (for-each copy-file files backups) - (substitute* files - ;; Nobody be usin' winreg on Guix - ;; Also, don't force users to have tkinter when they don't - ;; need it - (("(winreg|tkinter)") "")) - (apply sanity-check args) - (for-each rename-file backups files)))))))) + (list + #:test-flags + ;; Self tests failed. + #~(list "--ignore=tests/test_future/test_futurize.py" + "-k" (string-join + ;; Self tests failed. + (list "not test_division" + "test_functions_unchanged" + "test_mixed_annotations" + "test_multiple_param_annotations" + "test_print" + "test_range_slice" + ;; Network access is required. + "test_ftp" + "test_main" + "test_moves_urllib_request_http" + "test_urllib_request_http") + " and not ")))) + (native-inputs + (list python-pytest + python-setuptools)) (home-page "https://python-future.org") (synopsis "Single-source support for Python 3 and 2") (description - "@code{python-future} is the missing compatibility layer between Python 2 and -Python 3. It allows you to use a single, clean Python 3.x-compatible codebase -to support both Python 2 and Python 3 with minimal overhead.") + "@code{python-future} is the missing compatibility layer between Python 2 +and Python 3. It allows you to use a single, clean Python 3.x-compatible +codebase to support both Python 2 and Python 3 with minimal overhead.") (license license:expat))) (define-public python-cysignals |
