diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-08-24 17:10:38 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-24 20:40:56 +0100 |
| commit | d8a37d96f4ffcc567641216053f09d588b6bf48b (patch) | |
| tree | 1bba12dd3eb497baa8e583b0dea0f7d05cbfd3a3 /gnu/packages/machine-learning.scm | |
| parent | 9ed08ec36794dba7f621550aa3c4bbb9ed1676d8 (diff) | |
gnu: python-readchar: Update to 4.2.1.
* gnu/packages/machine-learning.scm (python-readchar): Update to 4.2.1.
[source]: Switch to git-fetch, providing test data.
[arguments]: Use G-Expressions; remove delete-windows-file #:phase.
[propagated-inputs]: Remove python-setuptools.
[native-inputs]: Remove python-wheel; add python-pytest,
python-pytest-cov and python-setuptools-next.
Change-Id: I6b60de788301c699713504425db08c6e29de3c9d
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
| -rw-r--r-- | gnu/packages/machine-learning.scm | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 6b64ca9a6d0..7f24a449fe3 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5597,24 +5597,23 @@ as torchvision, torchtext, and others.") (define-public python-readchar (package (name "python-readchar") - (version "4.0.5") - (source (origin - (method url-fetch) - (uri (pypi-uri "readchar" version)) - (sha256 - (base32 - "09n8vl2jjbnbnrzfvkynijrnwrqvc91bb2267zg8r261sz15d908")))) + (version "4.2.1") + (source + (origin + ;; There is no tests data in PyPI archive. + (method git-fetch) + (uri (git-reference + (url "https://github.com/magmax/python-readchar/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16ypci664l54ka6ickwkpaa2id14h9h00y7z24z0bv0szld4mrxg")))) (build-system pyproject-build-system) - (arguments - (list - #:phases - '(modify-phases %standard-phases - ;; This one file requires the msvcrt module, which we don't have. - (add-after 'unpack 'delete-windows-file - (lambda _ - (delete-file "readchar/_win_read.py")))))) - (propagated-inputs (list python-setuptools)) - (native-inputs (list python-wheel)) + (native-inputs + (list python-pytest + python-pytest-cov + python-setuptools-next)) (home-page "https://github.com/magmax/python-readchar") (synopsis "Library to easily read single chars and key strokes") (description "This package provides a Python library to easily read single |
