Add python-bresenham

Evgeny PisemskySat Jan 25 23:10:17+0300 2025

8aca0ca

Add python-bresenham

modules/cogd/packages/python-xyz.scm

1717
             (gnu packages xdisorg)
1818
             (gnu packages xorg))
1919
20+
(define-public python-bresenham
21+
  (package
22+
    (name "python-bresenham")
23+
    (version "0.2.1")
24+
    (source
25+
     (origin
26+
       (method git-fetch)
27+
       (uri (git-reference
28+
             (url "https://github.com/encukou/bresenham")
29+
             (commit (string-append "v" version))))
30+
       (file-name (git-file-name name version))
31+
       (sha256
32+
        (base32 "07h04l50y35rhp13mqis61d1dkd7426q1gdfy5hd6rcgcfv15kxd"))))
33+
    (build-system python-build-system)
34+
    (native-inputs (list python-pytest python-pytest-runner))
35+
    (home-page "https://github.com/encukou/bresenham")
36+
    (synopsis "Implementation of Bresenham's line drawing algorithm")
37+
    (description
38+
     "This is a simple implementation of Bresenham's line drawing algorithm.
39+
It is written in pure python, so it is relatively slow.")
40+
    (license license:expat)))
41+
2042
(define-public python-shxparser
2143
  (package
2244
    (name "python-shxparser")