aboutsummaryrefslogtreecommitdiff
blob: ed147722dee894c7238d97e0998cf84247995b03 (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
EAPI=8

# wait for pytest-mpl before adding 3_13
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi

DESCRIPTION="Histogram plots using matplotlib and HEP compatible styling ROOT."
HOMEPAGE="
	https://mplhep.readthedocs.io
	https://github.com/scikit-hep/mplhep
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/matplotlib-3.4[${PYTHON_USEDEP}]
	>=dev-python/numpy-1.16.0[${PYTHON_USEDEP}]
	sci-physics/mplhep-data[${PYTHON_USEDEP}]
	dev-python/packaging[${PYTHON_USEDEP}]
	>=dev-python/uhi-0.2.0[${PYTHON_USEDEP}]
"
BDEPEND="
	dev-python/hatch-vcs[${PYTHON_USEDEP}]
	test? (
		dev-python/boost-histogram[${PYTHON_USEDEP}]
		dev-python/hist[${PYTHON_USEDEP}]
		dev-python/pytest-mock[${PYTHON_USEDEP}]
		dev-python/pytest-mpl[${PYTHON_USEDEP}]
		>=dev-python/pytest-6.0[${PYTHON_USEDEP}]
		sci-physics/scikit-hep-testdata[${PYTHON_USEDEP}]
		>=dev-python/scipy-1.1.0[${PYTHON_USEDEP}]
		sci-physics/uproot[${PYTHON_USEDEP}]
	)
"

# we do not want to care about old uproot4
EPYTEST_DESELECT=(
	'tests/test_inputs.py::test_inputs_uproot'
	'tests/test_inputs.py::test_uproot_versions[png]'
	'tests/test_inputs.py::test_uproot_versions[pdf]'
	'tests/test_inputs.py::test_uproot_versions[svg]'
)

distutils_enable_tests pytest