summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-12 23:29:20 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:06 +0100
commit76206d748708f6c5be495204da514b2fbfe0ad97 (patch)
tree26a6791d1cadfdd064ba42a468b63b8a8e594424
parent9048edcce22a79f7994d515b067d0857f9419094 (diff)
gnu: Add python-fastnumbers.
* gnu/packages/python-xyz.scm (python-fastnumbers): New variable. Change-Id: I40176b1b621949972be176eed2cd374eeefad8b9
-rw-r--r--gnu/packages/python-xyz.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9c650630149..bbfd764c58e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -761,6 +761,30 @@ Sorensen distance, plus some bonuses. All distance computations are
implemented in pure Python, and most of them are also implemented in C.")
(license license:gpl2+)))
+(define-public python-fastnumbers
+ (package
+ (name "python-fastnumbers")
+ (version "5.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "fastnumbers" version))
+ (sha256
+ (base32 "0jzsylarbckivx762rxmc9syn7a6hqq3xhp5xnpfsln0rlhs0gqq"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-numpy
+ python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (home-page "https://github.com/SethMMorton/fastnumbers")
+ (synopsis "Super-fast and clean conversions to numbers")
+ (description
+ "This package provides provides drop-in replacements for the Python
+built-in @code{int} and @code{float} that are on par or faster with the Python
+equivalents.")
+ (license license:expat)))
+
(define-public python-flake8-class-newline
(package
(name "python-flake8-class-newline")