guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/26: gnu: Add python-readchar.


From: guix-commits
Subject: 14/26: gnu: Add python-readchar.
Date: Wed, 10 May 2023 13:31:00 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 9220dee75546db999ba34a48908e07011aff1159
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 10 15:18:47 2023 +0200

    gnu: Add python-readchar.
    
    * gnu/packages/machine-learning.scm (python-readchar): New variable.
---
 gnu/packages/machine-learning.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index a3880247a7..40f399495f 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -3465,6 +3465,32 @@ AI services.")
 Actions for the Lightning suite of libraries.")
     (license license:asl2.0)))
 
+(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"))))
+    (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))
+    (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
+characters and key strokes.")
+    (license license:expat)))
+
 (define-public python-torchmetrics
   (package
     (name "python-torchmetrics")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]