summaryrefslogtreecommitdiff
path: root/dev-python/cramjam/cramjam-2.11.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/cramjam/cramjam-2.11.0.ebuild')
-rw-r--r--dev-python/cramjam/cramjam-2.11.0.ebuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/dev-python/cramjam/cramjam-2.11.0.ebuild b/dev-python/cramjam/cramjam-2.11.0.ebuild
index 8bfed61b422c..b293841b36c2 100644
--- a/dev-python/cramjam/cramjam-2.11.0.ebuild
+++ b/dev-python/cramjam/cramjam-2.11.0.ebuild
@@ -1,8 +1,13 @@
-# Copyright 2024-2025 Gentoo Authors
+# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=maturin
+PYPI_VERIFY_REPO=https://github.com/milesgranger/cramjam
+PYTHON_COMPAT=( python3_{10..14} )
+
# Note: you need to use top-level Cargo.lock to generate the crate list.
CRATES="
adler2@2.0.0
@@ -122,10 +127,6 @@ CRATES="
zstd@0.13.3
"
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=maturin
-PYTHON_COMPAT=( python3_{10..14} )
-
inherit cargo distutils-r1 pypi
DESCRIPTION="Thin Python bindings to de/compression algorithms in Rust"
@@ -171,6 +172,11 @@ distutils_enable_tests pytest
QA_FLAGS_IGNORED="usr/lib/py.*/site-packages/cramjam/cramjam.*.so"
+src_unpack() {
+ pypi_src_unpack
+ cargo_src_unpack
+}
+
src_prepare() {
sed -i -e '/strip/d' pyproject.toml || die
distutils-r1_src_prepare