summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorEvgeny Pisemsky <mail@pisemsky.site>2025-01-25 19:00:46 +0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-25 22:18:09 +0000
commitc74830afebce4f1d10f5426afde4606477c4ee97 (patch)
treecf978791b966e0e2aa2481da2f3a030284f5bdae /gnu/packages/python-xyz.scm
parent41a7e1ad8def2be6de234f058bb4f375bbab6135 (diff)
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>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm28
1 files changed, 27 insertions, 1 deletions
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")