aboutsummaryrefslogtreecommitdiffstats
path: root/python3-platformdirs/python3-platformdirs.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-28 13:39:13 +0100
committerDanilo M. <danix@danix.xyz>2026-11-28 13:39:13 +0100
commitae8a9cc10bd378dac1228cdd376a355964e5329b (patch)
treedf5b75bf0aaf2cbf15822a35f72c9fa28df880a1 /python3-platformdirs/python3-platformdirs.SlackBuild
parent0eb66c8a5b7f960e4bb69ed37c0c5294a08a480a (diff)
downloadmy-slackbuilds-ae8a9cc10bd378dac1228cdd376a355964e5329b.tar.gz
my-slackbuilds-ae8a9cc10bd378dac1228cdd376a355964e5329b.zip
python3-platformdirs: update to 4.14.9
Strip the python-sbom build hook upstream added in 4.14.9. It only writes an SBOM into the wheel and python-sbom is not packaged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'python3-platformdirs/python3-platformdirs.SlackBuild')
-rw-r--r--python3-platformdirs/python3-platformdirs.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/python3-platformdirs/python3-platformdirs.SlackBuild b/python3-platformdirs/python3-platformdirs.SlackBuild
index 41b39c8..301a5af 100644
--- a/python3-platformdirs/python3-platformdirs.SlackBuild
+++ b/python3-platformdirs/python3-platformdirs.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-platformdirs
-VERSION=${VERSION:-4.14.5}
+VERSION=${VERSION:-4.14.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,6 +64,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Since 4.14.9 upstream runs the python-sbom hatchling hook, which only
+# writes a CycloneDX SBOM into the wheel's .dist-info. It is not packaged and
+# nothing uses it at runtime, so drop it from the build requirements and the
+# hook table. The grep stops the build (set -e) if the hook line is gone,
+# so this strip gets revisited instead of silently doing nothing.
+grep -q '^build\.hooks\.python-sbom' pyproject.toml
+sed -i '/"python-sbom\[hatch\]/d; /^build\.hooks\.python-sbom/d' pyproject.toml
+
# platformdirs uses hatch-vcs (setuptools-scm under the hood); provide the
# version so it doesn't need git tags. hatch-vcs writes src/platformdirs/version.py
# during the build, so no manual fixup is needed.