blob: 4aa2aa6562062ed9eaf77f83d48ced82d0b9774d (
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
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
inherit distutils-r1
DESCRIPTION="Python Data, Leaflet.js Maps"
HOMEPAGE="https://github.com/python-visualization/folium"
SRC_URI="https://github.com/python-visualization/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}"/${PN}-0.15.1-gentoo.patch
)
RDEPEND="sci-geosciences/xyzservices[${PYTHON_USEDEP}]
sci-libs/branca[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="
dev-python/setuptools-scm
test? (
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
src_prepare() {
rm -r tests/selenium || die # require chromedriver
rm tests/test_folium.py || die # require geopandas
rm tests/test_raster_layers.py || die # require xyzservices
rm tests/plugins/test_time_slider_choropleth.py || die # require geopandas
rm tests/test_repr.py || die # require geckodriver
default
}
python_test() {
epytest -m 'not web'
}
|