diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-05-11 08:35:53 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-18 14:37:07 +0100 |
| commit | 0ba728f09d9a8679fe6a24daa65568a73fc7fea8 (patch) | |
| tree | 2f473281b1a8f0eb10d4e06112ed910f1fea3eb5 | |
| parent | 5c631521bc0e213a97edc9f5164b9e5c3135e406 (diff) | |
gnu: python-term-image: Update to 0.7.2-0.a40a12b.
* gnu/packages/python-xyz.scm (python-term-image): Update to 0.7.2-0.a40a12b.
[arguments]<#:phases>: Replace phase 'adjust-dependencies by phase
'bump-pillow-requirement.
Change-Id: Ic52f25517e9ae1b8b2a59b781a2d98cf7e4c3b0c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a8f6225a36..b609ff32d3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -37492,31 +37492,43 @@ background.") (define-public python-term-image (package (name "python-term-image") - (version "0.7.2") + (properties '((commit . "a40a12bb0a12944b7d7a182e93f1caad4261693a") + (revision . "0"))) + (version (git-version "0.7.2" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) (source (origin - ;; We need the full repo to run the tests. (method git-fetch) (uri (git-reference (url "https://github.com/AnonymouX47/term-image") - (commit (string-append "v" version)))) + (commit (assoc-ref properties 'commit)))) (file-name (git-file-name name version)) (sha256 - (base32 "1lsd5m0k5m99arkca2rzrrlln10c8ax6xfawqwjnspcbf8l3h3dq")))) + (base32 "1g1a5b756l7bj69zwy9c86c72bwfb38iifv7z5lfr870i93f1k8r")))) (build-system pyproject-build-system) (arguments - (list #:test-flags - #~(list "tests" - ;; These tests require network access. - "-k" (string-append "not test_from_url" - " and not test_source" - " and not test_close")) - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'adjust-dependencies - (lambda _ - (substitute* "setup.py" - (("pillow>=9.1,<11") "pillow>=9.1,<12"))))))) + (list + #:test-flags + #~(list "tests" + ;; These tests require network access. + "-k" (string-append "not test_from_url" + " and not test_source" + " and not test_close")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'bump-pillow-requirement + (lambda _ + (substitute* "src/term_image/image/common.py" + (("\\.getdata") + ".get_flattened_data")) + (let* ((major #$(version-major + (package-version + (this-package-input "python-pillow")))) + (next (number->string (+ 1 (string->number major))))) + (substitute* "pyproject.toml" + (("pillow>=9.1,<12") + (string-append "pillow>=9.1,<" next))))))))) (propagated-inputs (list python-pillow python-requests)) (native-inputs (list python-pytest |
