python/python3-jsonschema: Fix deps.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-04-01 02:15:34 -06:00 committed by Willy Sudiarto Raharjo
parent c1e7848d34
commit 7b88368d43
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 4 additions and 18 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for python3-jsonschema
# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# Copyright 2022-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# Copyright 2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# Based on jsonschema by Dimitris Zlatanidis
# All rights reserved.
@ -52,20 +52,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
@ -77,9 +63,9 @@ cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/source/j/jsonschema/jsonschema-4.17.3
MD5SUM="7c65ceb8923c83cb1f22c2b5a86d99b0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-attrs python3-pyrsistent python3-hatch_vcs python3-hatch_fancy_pypi_readme"
REQUIRES="python3-attrs python3-pyrsistent"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"