summaryrefslogtreecommitdiff
path: root/dev-python/vector/vector-1.8.1.ebuild
blob: 84f839d8dc23439ff2bc7c3185ebbfc274816f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
PYPI_VERIFY_REPO=https://github.com/scikit-hep/vector
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.19.3[${PYTHON_USEDEP}]
	>=dev-python/packaging-20[${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
}