summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-02 20:48:48 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-03-31 21:04:10 +0100
commit8fbb0cc233b9f9ec4eff19608503fb4b5ee2f91e (patch)
treeda13a37d458b22f14e04c377f6392c279b1ea206
parente38e11d9f906fa6f4ebf62a132935858716488d5 (diff)
gnu: Add python-simplify-polyline.
* gnu/packages/python-xyz.scm (python-simplify-polyline): New variable. Change-Id: Ib4030f83db16caa07650f35080e7172f7d611f8f
-rw-r--r--gnu/packages/python-xyz.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8c7a60f3e7..d368e15cc4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -804,6 +804,36 @@ AutoCad format which can encode single line fonts. This format is used for
many CNC and laser operations.")
(license license:expat)))
+(define-public python-simplify-polyline
+ (package
+ (name "python-simplify-polyline")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "simplify_polyline" version))
+ (sha256
+ (base32 "08f6bvwbg04z19pirq4ynsiq89yhbzqh9g6zbnp9fvdnmics7hgw"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-numpy))
+ (home-page "https://github.com/ShayHill/simplify_polyline")
+ (synopsis "Simplify an open or closed polyline")
+ (description
+ "This package implements functionality to work with plyline.
+Features:
+@itemize
+@item Visvalingham-Whyatt - removes the smallest triangles formed by
+three consecutive points in a polyline or polygon
+@item Douglas-Peucker - gives a better representation of the convex hull
+@end itemize")
+ (license license:expat)))
+
(define-public python-takethetime
(package
(name "python-takethetime")