guru/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
Randall T. Vasquez 11bd1f0be6
dev-python/material-color-utilities: fix and refactor ebuilds
Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
2022-11-26 12:32:15 -08:00

36 lines
931 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=(python3_{8..11})
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1
MY_PN="${PN}-python"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python port of material-color-utilities used for Material You colors"
HOMEPAGE="
https://pypi.org/project/material-color-utilities/
"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python.git"
else
SRC_URI="https://files.pythonhosted.org/packages/source/m/material-color-utilities-python/material-color-utilities-python-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND="
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/poetry-core[${PYTHON_USEDEP}]
dev-python/build[${PYTHON_USEDEP}]"