From 32d17c83e087d75726a40c1f09e8c7bb081cefa3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 8 May 2025 10:01:19 +0100 Subject: gnu: python-adjusttext: Move to python-science. * gnu/packages/python-xyz.scm (python-adjusttext): Move from here ... * gnu/packages/python-science.scm: ... to here. Change-Id: If8c5fa89736dbf8ae29169fb317d43d2c2fbd682 --- gnu/packages/python-science.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 98ec6834de7..c7ae7d14a15 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -180,6 +180,37 @@ scientific codes by steering the implementation towards usability and maintainability.") (license license:bsd-3))) +(define-public python-adjusttext + (package + (name "python-adjusttext") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "adjusttext" version)) + (sha256 + (base32 "18dw5kqxan4m8kvw3w1lm0p69gj95i7rcgmcfs485x1s8pa5rdsa")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #false)) ;there are none + (native-inputs + (list python-setuptools + python-wheel)) + (propagated-inputs + (list python-matplotlib + python-numpy + python-scipy)) + (home-page "https://github.com/Phlya/adjustText") + (synopsis "Adjust text position in matplotlib plots to minimize overlaps") + (description + "Often when we want to label multiple points on a graph the text will +start heavily overlapping with both other labels and data points. This can be +a major problem requiring manual solution. However this can be largely +automated by smart placing of the labels (difficult) or iterative adjustment +of their positions to minimize overlaps (relatively easy). This library +implements the latter option to help with matplotlib graphs.") + (license license:expat))) + (define-public python-algopy (package (name "python-algopy") -- cgit v1.3