Subject: [PATCH] gnu: Add python-bresenham.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Cc: Evgeny Pisemsky <[email-masked]>
Date: Sat, 25 Jan 2025 19:00:46 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-xyz.scm (python-bresenham): New variable.

Change-Id: Id727ba17765ae73d1920f7042262a8bd849a4111
---
 gnu/packages/python-xyz.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4c6a284886..8d8b8d3af3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -157,7 +157,7 @@
 ;;; Copyright © 2024 Rick Huijzer <[email-masked]>
 ;;; Copyright © 2024 Peter Kannewitz <[email-masked]>
 ;;; Copyright © 2024 Aaron Covrig <[email-masked]>
-;;; Copyright © 2024 Evgeny Pisemsky <[email-masked]>
+;;; Copyright © 2024, 2025 Evgeny Pisemsky <[email-masked]>
 ;;; Copyright © 2024 Markku Korkeala <[email-masked]>
 ;;; Copyright © 2025 Jordan Moore <[email-masked]>
 ;;; Copyright © 2025 Dariqq <[email-masked]>
@@ -551,6 +551,28 @@ (define-public python-jsonpath-ng
 @url{http://goessner.net/articles/JsonPath/, JSONPath} proposal.")
     (license license:asl2.0)))
 
+(define-public python-bresenham
+  (package
+    (name "python-bresenham")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/encukou/bresenham")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "07h04l50y35rhp13mqis61d1dkd7426q1gdfy5hd6rcgcfv15kxd"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-pytest python-setuptools python-wheel))
+    (home-page "https://github.com/encukou/bresenham")
+    (synopsis "Implementation of Bresenham's line drawing algorithm")
+    (description
+     "This is a simple implementation of Bresenham's line drawing algorithm.
+It is written in pure python, so it is relatively slow.")
+    (license license:expat)))
+
 (define-public python-pyxdameraulevenshtein
   (package
     (name "python-pyxdameraulevenshtein")

base-commit: d1e3c41abdda9f8e9f1283376feb853670393793
-- 
2.47.1