summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-02-27 15:51:10 -0300
committerVinicius Monego <monego@posteo.net>2025-05-04 08:16:27 -0300
commiteb6a1d9317aa73fd6fc7103237e1d6a8df745038 (patch)
tree3a27d7adc7ffbb3f140ccb1d7c2a1613da9081fb /gnu/packages/python-science.scm
parent3b5215d06200adb5b568b07d56ad100713fff708 (diff)
gnu: Add python-boost-histogram.
* gnu/packages/python-science.scm (python-boost-histogram): New variable. Change-Id: I91e73a0a3e3a698197b2d309bd5bdf388fd2697a
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index e814d483dd..1d5df1c862 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -912,6 +912,33 @@ logic, also known as grey logic.")
and scientific computing.")
(license license:bsd-3)))
+(define-public python-boost-histogram
+ (package
+ (name "python-boost-histogram")
+ (version "1.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "boost_histogram" version))
+ (sha256
+ (base32 "0p2f90p5jwlwrjz3hq2fzaifkmny33g2mpi89nnhi3w41f1jxr2i"))))
+ (build-system pyproject-build-system)
+ ;; This package bundles files from Boost::Histogram and doesn't provide
+ ;; a way to use a system library.
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list cmake-minimal
+ pybind11
+ python-pytest
+ python-pytest-benchmark
+ python-scikit-build-core
+ python-setuptools-scm))
+ (home-page "https://boost-histogram.readthedocs.io/en/latest/")
+ (synopsis "Python bindings for the Boost::Histogram library")
+ (description
+ "This package provides Python bindings for the Boost::Histogram library,
+one of the fastest libraries for histogramming.")
+ (license license:bsd-3)))
+
(define-public python-scikit-opt
(package
(name "python-scikit-opt")