commit: 4cb594edf14664ac6c2423bbed71f5ccc5f69223 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Thu Feb 1 21:55:58 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Sat Feb 17 17:21:58 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4cb594ed
dev-python/boost-histogram: new package, add 1.4.0 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/sci/pull/1235 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> .../boost-histogram/boost-histogram-1.4.0.ebuild | 39 ++++++++++++++++++++++ dev-python/boost-histogram/metadata.xml | 19 +++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-python/boost-histogram/boost-histogram-1.4.0.ebuild b/dev-python/boost-histogram/boost-histogram-1.4.0.ebuild new file mode 100644 index 000000000..0336c4e87 --- /dev/null +++ b/dev-python/boost-histogram/boost-histogram-1.4.0.ebuild @@ -0,0 +1,39 @@ +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="Python bindings for the C++14 Boost::Histogram library" +HOMEPAGE="https://github.com/scikit-hep/boost-histogram" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + default + sed -i 's/"pytest-benchmark"//g' pyproject.toml || die +} + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + tests/test_benchmark_1d.py + tests/test_benchmark_2d.py + tests/test_benchmark_category_axis.py + tests/test_pickle.py + tests/test_threaded_fill.py +) diff --git a/dev-python/boost-histogram/metadata.xml b/dev-python/boost-histogram/metadata.xml new file mode 100644 index 000000000..345502cba --- /dev/null +++ b/dev-python/boost-histogram/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <longdescription lang="en"> + Python bindings for Boost::Histogram (source), a C++14 library. This is one of the fastest libraries for histogramming, while still providing the power of a full histogram object. See what's new. + </longdescription> + <upstream> + <remote-id type="pypi">boost-histogram</remote-id> + <remote-id type="github">scikit-hep/boost-histogram</remote-id> + </upstream> +</pkgmetadata>
