summaryrefslogtreecommitdiff
path: root/dev-python/shapely/shapely-1.7.1-r1.ebuild
blob: c3f37aa5b3d842879f2d71ca27d2ac5e0ed9cb0c (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1

DESCRIPTION="Geometric objects, predicates, and operations"
HOMEPAGE="https://pypi.org/project/Shapely/ https://github.com/Toblerity/Shapely"
SRC_URI="https://github.com/Toblerity/Shapely/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P^}"

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

DEPEND=">=sci-libs/geos-3.9"
RDEPEND="${DEPEND}
	dev-python/numpy[${PYTHON_USEDEP}]
"
BDEPEND="${DEPEND}
	dev-python/cython[${PYTHON_USEDEP}]
"

PATCHES=(
	"${FILESDIR}/${P}-tests-support-geos-3.9.patch"
)

distutils_enable_tests --install pytest
distutils_enable_sphinx docs dev-python/matplotlib