# Copyright 1999-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 git-r3 distutils-r1

DESCRIPTION="010 template library for python"
HOMEPAGE="https://github.com/d0c-s4vage/py010parser/"
EGIT_REPO_URI="https://github.com/d0c-s4vage/${PN}"
#/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"

RESTRICT="test"

src_prepare() {
	distutils-r1_src_prepare
	sed -i \
		-e 's@description-file@description_file@' \
		setup.cfg
	sed -i \
		-e "s@{{VERSION}}@${PV}@" \
		setup.py
	# fixes to avoid QA notices
}