From c74830afebce4f1d10f5426afde4606477c4ee97 Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Sat, 25 Jan 2025 19:00:46 +0300 Subject: [PATCH] gnu: Add python-bresenham. * gnu/packages/python-xyz.scm (python-bresenham): New variable. Change-Id: Id727ba17765ae73d1920f7042262a8bd849a4111 Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- 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 912d8db1845..7fcf9c3ba8f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -157,7 +157,7 @@ ;;; Copyright © 2024 Rick Huijzer ;;; Copyright © 2024 Peter Kannewitz ;;; Copyright © 2024 Aaron Covrig -;;; Copyright © 2024 Evgeny Pisemsky +;;; Copyright © 2024, 2025 Evgeny Pisemsky ;;; Copyright © 2024 Markku Korkeala ;;; Copyright © 2025 Jordan Moore ;;; Copyright © 2025 Dariqq @@ -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")