gentoo/dev-python/vector/vector-1.6.3.ebuild
Sam James 0a91436f70
dev-python/vector: add 1.6.3
Also, added optfeatures as test dependencies, as I don't get the test
which broke w/ new numpy to actually run otherwise (I've backported
the fix for it now).

Bug: https://github.com/scikit-hep/vector/issues/616
Bug: https://github.com/numpy/numpy/issues/29388
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-17 12:12:25 +01:00

51 lines
1.1 KiB
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi optfeature
DESCRIPTION="Vector classes and utilities"
HOMEPAGE="
https://github.com/scikit-hep/vector
https://pypi.org/project/vector/
https://vector.readthedocs.io/
https://doi.org/10.5281/zenodo.7054478
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/numpy-1.13.3[${PYTHON_USEDEP}]
>=dev-python/packaging-19[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/awkward[${PYTHON_USEDEP}]
dev-python/sympy[${PYTHON_USEDEP}]
)
"
EPYTEST_IGNORE=(
# no module named papermill
tests/test_notebooks.py
# testing for exact (not mathematical) equality against sympy
# which changes without being wrong...
tests/compute/sympy/lorentz/
)
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
pkg_postinst() {
optfeature "awkward array support" dev-python/awkward
optfeature "sympy support" dev-python/sympy
}