gentoo-overlay/app-office/jal/jal-2024.7.1.ebuild

47 lines
1.4 KiB
Bash
Raw Normal View History

2024-08-10 12:13:45 +03:00
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..13} )
inherit distutils-r1
DESCRIPTION="Just Another Ledger - project to track personal financial records"
HOMEPAGE="https://github.com/titov-vv/jal"
SRC_URI="https://github.com/titov-vv/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=dev-lang/python-3.8.1
>=dev-python/lxml-4.5.0[${PYTHON_USEDEP}]
>=dev-python/pandas-1.1.1[${PYTHON_USEDEP}]
>=dev-python/pyside6-6.5.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.24.0[${PYTHON_USEDEP}]
>=dev-python/xlsxwriter-1.3.3[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/sqlparse[${PYTHON_USEDEP}]
dev-python/oauthlib[${PYTHON_USEDEP}]
dev-python/requests-oauthlib[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]"
distutils_enable_tests pytest
#python_prepare_all() {
# distutils-r1_python_prepare_all
#
# rm -rf tests || die
#}
python_install_all() {
distutils-r1_python_install_all
# Remove this duplicate that is installed directly to /usr/
# These files are also correctly installed to the python site-packages dir
find "${WORKDIR}/${P}-python*" -type d -name tests -exec rm -rf "{}" \; || die
}