mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-30 12:02:57 +01:00
pypcapfile: use commit for the last version, add doc and test
the last version contains old dependencies. Even if no new version has been published since, the package has been maintened, and these problems have been fixed.
This commit is contained in:
parent
f687d2f056
commit
b22e210842
4 changed files with 38 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,4 +5,8 @@
|
|||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">kisom/pypcapfile</remote-id>
|
||||
<remote-id type="pypi">pypcapfile</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
|
|||
|
|
@ -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}]"
|
||||
33
dev-python/pypcapfile/pypcapfile-0.12.1_p20240530.ebuild
Normal file
33
dev-python/pypcapfile/pypcapfile-0.12.1_p20240530.ebuild
Normal file
|
|
@ -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}"
|
||||
}
|
||||
Loading…
Reference in a new issue