From 66993edc172f447b6742c03ae8fb6dbf1b5db56f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 4 May 2023 10:06:47 +0200 Subject: gnu: Add python-iteround. * gnu/packages/python-xyz.scm (python-iteround): New variable. --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7950d4a775..e5d3897bef 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31125,6 +31125,28 @@ sources. For example, it allows you to have all your casting and parsing rules in a single place.") (license license:bsd-3))) +(define-public python-iteround + (package + (name "python-iteround") + (version "1.0.4") + ;; PyPI only has wheels. + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cgdeboer/iteround") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1irw4sqrsgpc0ibxdv1hlx0d0jr1fqs48bj6mpfylzqkag9ywlfj")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/cgdeboer/iteround") + (synopsis "Sum-safe rounding for Iterables") + (description "Iteround is a standard library sum-safe rounding library for +Python iterables (lists, tuples, dicts).") + (license license:expat))) + (define-public python-hypy-utils (package (name "python-hypy-utils") -- cgit v1.2.3