# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
DISTUTILS_USE_PEP517=scikit-build-core
PYTHON_COMPAT=( python3_{9,10,11} )

inherit distutils-r1 pypi

DESCRIPTION="Python bindings for spglib."
HOMEPAGE="https://spglib.github.io/spglib/"
#SRC_URI="https://github.com/spglib/spglib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
#S="${WORKDIR}/spglib-${PV}/python"

LICENSE="BSD-3-Clause"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test mirror"

DEPEND="
	${PYTHON_DEPS}
	~sci-libs/spglib-${PV}
	"
#
BDEPEND="${DEPEND}"
RDEPEND="${DEPEND}"


python_install_all() {
	distutils-r1_python_install_all
	rm -rf ${D}/usr/share/doc/* || die
}