summaryrefslogtreecommitdiff
path: root/dev-python/yara-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-03 18:58:27 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-03 18:58:27 +0000
commitb7c512b0d54f6a44f1cd97ba991219c7887ba91b (patch)
tree9a2fee15e8b482715b25f72164a54ce37318ba15 /dev-python/yara-python
parent0dd4db15f9556ddfeaee24e7d14249d4727d70ef (diff)
downloadbaldeagleos-repo-b7c512b0d54f6a44f1cd97ba991219c7887ba91b.tar.gz
baldeagleos-repo-b7c512b0d54f6a44f1cd97ba991219c7887ba91b.tar.xz
baldeagleos-repo-b7c512b0d54f6a44f1cd97ba991219c7887ba91b.zip
Adding metadata
Diffstat (limited to 'dev-python/yara-python')
-rw-r--r--dev-python/yara-python/Manifest1
-rw-r--r--dev-python/yara-python/yara-python-4.5.2.ebuild40
-rw-r--r--dev-python/yara-python/yara-python-9999.ebuild3
3 files changed, 42 insertions, 2 deletions
diff --git a/dev-python/yara-python/Manifest b/dev-python/yara-python/Manifest
index 93d43b85609b..f97ec5766a46 100644
--- a/dev-python/yara-python/Manifest
+++ b/dev-python/yara-python/Manifest
@@ -1 +1,2 @@
DIST yara-python-4.5.1.gh.tar.gz 39419 BLAKE2B e89677bd8b857e9c7b40b172311245ab7cc2149bfec6de09905494645d65abd67b1a41978101795ddb9dcb9d4344c3a4ffc23c96291580f17f59cdabe66a1d59 SHA512 fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a
+DIST yara-python-4.5.2.gh.tar.gz 39258 BLAKE2B db9038d476654916eb66d72c6e45b93faf61e8e2621b2a6d862620d100a5d5f7b292e586e68c77cf8a76ce728fcf976690bfd468f027a77f28519298dc3a668a SHA512 586f22d50db01b21e47a8b76e069a917018cc86f8931f438c5066b38323f7a477a919d9e10e704e74f2962ae02bb1715834c704dfe16b66311f48f06c0c5165a
diff --git a/dev-python/yara-python/yara-python-4.5.2.ebuild b/dev-python/yara-python/yara-python-4.5.2.ebuild
new file mode 100644
index 000000000000..abe42fd90f95
--- /dev/null
+++ b/dev-python/yara-python/yara-python-4.5.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+inherit distutils-r1
+
+DESCRIPTION="Python interface for a malware identification and classification tool"
+HOMEPAGE="https://github.com/VirusTotal/yara-python"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/VirusTotal/yara-python.git"
+else
+ SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND="
+ =app-forensics/yara-$(ver_cut 1-2)*
+"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests unittest
+
+python_configure_all() {
+ cat >> setup.cfg <<-EOF
+ dynamic_linking = True
+ EOF
+}
+
+python_test() {
+ "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}"
+}
diff --git a/dev-python/yara-python/yara-python-9999.ebuild b/dev-python/yara-python/yara-python-9999.ebuild
index a957933416c0..abe42fd90f95 100644
--- a/dev-python/yara-python/yara-python-9999.ebuild
+++ b/dev-python/yara-python/yara-python-9999.ebuild
@@ -31,11 +31,10 @@ distutils_enable_tests unittest
python_configure_all() {
cat >> setup.cfg <<-EOF
- [build_ext]
dynamic_linking = True
EOF
}
python_test() {
- "${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
+ "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}"
}