diff --git a/dev-python/pypcapfile/Manifest b/dev-python/pypcapfile/Manifest index 7c934e8ee..cfa6c6256 100644 --- a/dev-python/pypcapfile/Manifest +++ b/dev-python/pypcapfile/Manifest @@ -1 +1 @@ -DIST pypcapfile-0.12.0.tar.gz 17205 BLAKE2B 142870bd31386132582aff6e69ad16ae03ea4d647e3298a395123ca78d355835e28219700fa4a3d88d542b3833adc906fb1d4e1c905c8c9d3a06d520152be275 SHA512 6c2c238f2732b4d5bc5f2b4c7b9e66359d964b94ead437c790256f9bef4e27ed10abaa3e4f17cd1bec22ce0d56cab6e2a63b784a49087943911f1dccd63c1127 +DIST pypcapfile-0.12.1_p20240530.gh.tar.gz 46021 BLAKE2B f26993591ebc4e0ab6c7709317936b9404510da0cae07cbbbd04f53d2edf2747f43ad29cbb050d3379225310317a84b9b33e668bf1868800e9994386accfd8cd SHA512 c4e545b8484df614a1d372b1bdd8da51a69427dbb2a631515a942e5fada873b28083ee0ff05d541562e4c4e5e21d1013ab193e2d8e31f1ab3b720f4932b13f64 diff --git a/dev-python/pypcapfile/metadata.xml b/dev-python/pypcapfile/metadata.xml index ace7c2d3a..8e333e6b9 100644 --- a/dev-python/pypcapfile/metadata.xml +++ b/dev-python/pypcapfile/metadata.xml @@ -5,4 +5,8 @@ unknown@pentoo.ch Author Unknown + + kisom/pypcapfile + pypcapfile + diff --git a/dev-python/pypcapfile/pypcapfile-0.12.0.ebuild b/dev-python/pypcapfile/pypcapfile-0.12.0.ebuild deleted file mode 100644 index 22a37766a..000000000 --- a/dev-python/pypcapfile/pypcapfile-0.12.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..13} ) - -inherit distutils-r1 - -DESCRIPTION="Pure Python package for reading and parsing libpcap savefiles" -HOMEPAGE="https://github.com/kisom/pypcapfile" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND="" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" diff --git a/dev-python/pypcapfile/pypcapfile-0.12.1_p20240530.ebuild b/dev-python/pypcapfile/pypcapfile-0.12.1_p20240530.ebuild new file mode 100644 index 000000000..9fd27936b --- /dev/null +++ b/dev-python/pypcapfile/pypcapfile-0.12.1_p20240530.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +LAST_COMMIT="0aeb29ed29cb4dd7318ab2f1bfdd98c5b8236a6f" + +inherit distutils-r1 + +DESCRIPTION="Pure Python package for reading and parsing libpcap savefiles" +HOMEPAGE="https://github.com/kisom/pypcapfile" +SRC_URI="https://github.com/kisom/${PN}/archive/${LAST_COMMIT}.tar.gz -> ${P}.gh.tar.gz" + +S="${WORKDIR}/${PN}-${LAST_COMMIT}" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +distutils_enable_sphinx "doc/source" + +src_prepare() { + sed -i -e "/data_files/,+2d" "setup.py" + eapply_user +} + +python_test() { + "${EPYTHON}" pcapfile/test/ || die "Tests have failed with ${EPYTHON}" +}