guix-commits
[Top][All Lists]
Advanced

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

07/08: gnu: Add python-bresenham.


From: guix-commits
Subject: 07/08: gnu: Add python-bresenham.
Date: Sat, 25 Jan 2025 17:22:26 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit c74830afebce4f1d10f5426afde4606477c4ee97
Author: Evgeny Pisemsky <mail@pisemsky.site>
AuthorDate: Sat Jan 25 19:00:46 2025 +0300

    gnu: Add python-bresenham.
    
    * gnu/packages/python-xyz.scm (python-bresenham): New variable.
    
    Change-Id: Id727ba17765ae73d1920f7042262a8bd849a4111
    Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 912d8db184..7fcf9c3ba8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -157,7 +157,7 @@
 ;;; Copyright © 2024 Rick Huijzer <ikbenrickhuyzer@gmail.com>
 ;;; Copyright © 2024 Peter Kannewitz <petre-vps@posteo.net>
 ;;; Copyright © 2024 Aaron Covrig <aaron.covrig.us@ieee.org>
-;;; Copyright © 2024 Evgeny Pisemsky <mail@pisemsky.site>
+;;; Copyright © 2024, 2025 Evgeny Pisemsky <mail@pisemsky.site>
 ;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
 ;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo>
 ;;; Copyright © 2025 Dariqq <dariqq@posteo.net>
@@ -502,6 +502,32 @@ including arbitrary-length lists, records, mixed types, 
and missing data,
 using NumPy-like idioms.")
     (license license:bsd-3)))
 
+(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 package provides a Python implementation of
+@url{https://en.wikipedia.org/wiki/Bresenham's_line_algorithm, Bresenham's
+line drawing algorithm}.")
+    (license license:expat)))
+
 (define-public python-distance
   (package
     (name "python-distance")



reply via email to

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