From cf7b58b4cdd9871fde00044fc29e3823caec586c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 2 Feb 2023 15:43:42 +0100 Subject: dev-python/bitstring: Bump to 4.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/bitstring/bitstring-4.0.1.ebuild | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-python/bitstring/bitstring-4.0.1.ebuild (limited to 'dev-python/bitstring/bitstring-4.0.1.ebuild') diff --git a/dev-python/bitstring/bitstring-4.0.1.ebuild b/dev-python/bitstring/bitstring-4.0.1.ebuild new file mode 100644 index 000000000000..28d8a4c9d103 --- /dev/null +++ b/dev-python/bitstring/bitstring-4.0.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +MY_P=${PN}-${P} +DESCRIPTION="A pure Python module for creation and analysis of binary data" +HOMEPAGE=" + https://github.com/scott-griffiths/bitstring/ + https://pypi.org/project/bitstring/ +" +SRC_URI=" + https://github.com/scott-griffiths/${PN}/archive/${P}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +distutils_enable_tests unittest + +src_prepare() { + [[ ${PV} != 4.0.1 ]] && die "Remove the hack!" + cat >> pyproject.toml <<-EOF + + [build-system] + build-backend = "setuptools.build_meta" + EOF + distutils-r1_src_prepare +} + +src_test() { + cd tests || die + distutils-r1_src_test +} -- cgit v1.2.3