Add python-bresenham
modules/cogd/packages/python-xyz.scm
| 17 | 17 | (gnu packages xdisorg) | |
| 18 | 18 | (gnu packages xorg)) | |
| 19 | 19 | ||
| 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 | + | ||
| 20 | 42 | (define-public python-shxparser | |
| 21 | 43 | (package | |
| 22 | 44 | (name "python-shxparser") |