mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
dev-python/pymisp: drop old version, bump to 2.5.34.1
add test and documentation add more dependencies
This commit is contained in:
parent
a8152dd5ab
commit
9f52a458ae
5 changed files with 50 additions and 185 deletions
|
|
@ -1,3 +1 @@
|
|||
DIST pymisp-2.4.124.tar.gz 243210 BLAKE2B 2c0af2f9d14be90a3d8d5509b81fcb1b7220fdca2ce8ba2e55d95f0c7ecd7dca21d05002d2fc843376034798a9840ea8870044b4fc94632c491c272c53e2026c SHA512 8895941883077fd2490e3a1749e977cb309d8a2e6d9899df5fac05b116e9fdb1003d3648fed3e15efca63626cd42e5aa8530698a2722ce2b85825459331b1946
|
||||
DIST pymisp-2.4.152.tar.gz 338832 BLAKE2B f6effc007bbb08060a0b166fa92a087c781adba647e99b014b38d46727ebec4043b9a2b212017ac5f6bb2cfbb03b99935e2f926861a2c21759fa1bb0d1c91752 SHA512 415ca45e3c5c9470c0bb45511243a8ba4226933b2b245296e2b94dd94af646f7a44111393d917dac1babd94dd596b5eb0d23af0f7f94c0a6752cf298144450e9
|
||||
DIST pymisp-2.5.17.1.tar.gz 1961121 BLAKE2B e4e9a678efdd25bb90c7351c30b8ea17b6fe9b5a452ecbf46e5d6db409dda7daba96ececf098f4e05173d7ba175930353a50248aacc396024b739e74e2f4a9c6 SHA512 f01b9fdca477c8ca04ef2d602b336a94da49806b22684dd15b96f8e9bb22bdee3ee8fb3fe655d77dd2d7e3ebe2f085cd33684857d2a19e9f2fbe6a054c06b48d
|
||||
DIST pymisp-2.5.34.1.tar.gz 2071382 BLAKE2B b884a49419daeb189f822b21eea1dbf94d766a3827ef8f9f810187c81b59ec9c8f1d6fb25252bfefc98120626f99120c6977ced2807e509512df877195d5551c SHA512 c455a160f3c961c6ae7a6125a65f062024c1fd6e2119ceaf9dcc02088436d3e66e0091a144c7d57d579a370698158339bd0bc5c00069c8c409c96d24dafb3222
|
||||
|
|
|
|||
|
|
@ -1,63 +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_{12..14} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A python library for using the MISP Rest API"
|
||||
HOMEPAGE="https://github.com/MISP/PyMISP"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
CDEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/py2neo[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/reportlab[${PYTHON_USEDEP}]
|
||||
dev-python/deprecated[${PYTHON_USEDEP}]
|
||||
dev-python/cachetools[${PYTHON_USEDEP}]
|
||||
dev-python/validators[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
doc? (
|
||||
dev-python/sphinx
|
||||
dev-python/sphinx-autodoc-typehints
|
||||
dev-python/recommonmark )
|
||||
test? (
|
||||
dev-python/python-magic
|
||||
dev-python/requests-mock )"
|
||||
|
||||
src_test() {
|
||||
# FIXME (20191022-2.4.117): maybe it wrong i dont know
|
||||
# test_object_level_tag (tests.test_mispevent.TestMISPEvent) ...
|
||||
# skipped 'Not supported on MISP: https://github.com/MISP/MISP/issues/2638
|
||||
# and https://github.com/MISP/PyMISP/issues/168'
|
||||
esetup.py test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
if use doc; then
|
||||
pushd docs/ >/dev/null || die
|
||||
|
||||
#unable to reproduce
|
||||
# emake -j1 man html
|
||||
|
||||
doman build/man/pymisp.1
|
||||
dodoc -r build/html
|
||||
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A python library for using the MISP Rest API"
|
||||
HOMEPAGE="https://github.com/MISP/PyMISP"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="doc"
|
||||
RESTRICT="test"
|
||||
|
||||
CDEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-python/deprecated-1.2.13[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
doc? (
|
||||
dev-python/sphinx
|
||||
dev-python/sphinx-autodoc-typehints
|
||||
dev-python/recommonmark )
|
||||
test? (
|
||||
dev-python/python-magic
|
||||
dev-python/requests-mock )"
|
||||
|
||||
#src_test() {
|
||||
# FIXME (20191022-2.4.117): maybe it wrong i dont know
|
||||
# test_object_level_tag (tests.test_mispevent.TestMISPEvent) ...
|
||||
# skipped 'Not supported on MISP: https://github.com/MISP/MISP/issues/2638
|
||||
# and https://github.com/MISP/PyMISP/issues/168'
|
||||
# esetup.py test || die
|
||||
#}
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
if use doc; then
|
||||
pushd docs/ >/dev/null || die
|
||||
|
||||
#unable to reproduce
|
||||
# emake -j1 man html
|
||||
|
||||
doman build/man/pymisp.1
|
||||
dodoc -r build/html
|
||||
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A python library for using the MISP Rest API"
|
||||
HOMEPAGE="https://github.com/MISP/PyMISP"
|
||||
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
distutils_enable_sphinx "docs/source" dev-python/sphinx-autodoc-typehints dev-python/myst-parser
|
||||
|
||||
|
||||
#RESTRICT="test"
|
||||
|
||||
#RDEPEND="
|
||||
# >=dev-python/deprecated-1.2.13[${PYTHON_USEDEP}]
|
||||
# >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
# >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}]
|
||||
# >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
|
||||
#"
|
||||
#
|
||||
#DEPEND="
|
||||
# test? (
|
||||
# dev-python/python-magic
|
||||
# dev-python/requests-mock )"
|
||||
|
||||
#src_test() {
|
||||
# FIXME (20191022-2.4.117): maybe it wrong i dont know
|
||||
# test_object_level_tag (tests.test_mispevent.TestMISPEvent) ...
|
||||
# skipped 'Not supported on MISP: https://github.com/MISP/MISP/issues/2638 - https://github.com/MISP/PyMISP/issues/168'
|
||||
# esetup.py test || die
|
||||
#}
|
||||
|
||||
#distutils_enable_tests pytest
|
||||
|
||||
#src_install() {
|
||||
# distutils-r1_src_install
|
||||
#
|
||||
# if use doc; then
|
||||
# pushd docs/ >/dev/null || die
|
||||
#
|
||||
##unable to reproduce
|
||||
## emake -j1 man html
|
||||
#
|
||||
# doman build/man/pymisp.1
|
||||
# dodoc -r build/html
|
||||
#
|
||||
# popd >/dev/null || die
|
||||
# fi
|
||||
#}
|
||||
49
dev-python/pymisp/pymisp-2.5.34.1.ebuild
Normal file
49
dev-python/pymisp/pymisp-2.5.34.1.ebuild
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A python library for using the MISP Rest API"
|
||||
HOMEPAGE="https://github.com/MISP/PyMISP"
|
||||
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=app-forensics/oletools-0.60.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/deprecated-1.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/neo4j-6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/reportlab-4.4.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.33.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-2.6.3[brotli,${PYTHON_USEDEP}]
|
||||
>=dev-python/validators-0.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-util/lief-0.17.6[python]
|
||||
"
|
||||
|
||||
# missing packages to have more functionnalities.
|
||||
# pure-magic-rs
|
||||
# pydeep2
|
||||
# beautifulsoup4
|
||||
# pyfaup-rs
|
||||
# extract_msg
|
||||
# RTFDE
|
||||
|
||||
distutils_enable_sphinx "docs/source" dev-python/sphinx-autodoc-typehints dev-python/myst-parser
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
tests/test_emailobject.py
|
||||
tests/test_fileobject.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
tests/test_reportlab.py::TestPDFExport::test_utf
|
||||
tests/test_reportlab.py::TestPDFExport::test_utf_heavy
|
||||
)
|
||||
Loading…
Reference in a new issue