python/python3-websockets: Updated for version 13.0.1.

Updating and fixing UNKNOWN issue with permission from Dimitris.
Needed python3-setuptools-opt.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-08-31 20:18:28 -06:00 committed by Willy Sudiarto Raharjo
parent 772e2e85de
commit 50b38ac6d0
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 24 deletions

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-websockets
SRCNAM=websockets
VERSION=${VERSION:-12.0}
VERSION=${VERSION:-13.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -51,20 +48,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
@ -76,9 +59,12 @@ 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 {} \+
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl

View file

@ -1,10 +1,10 @@
PRGNAM="python3-websockets"
VERSION="12.0"
VERSION="13.0.1"
HOMEPAGE="https://github.com/aaugustin/websockets"
DOWNLOAD="https://files.pythonhosted.org/packages/2e/62/7a7874b7285413c954a4cca3c11fd851f11b2fe5b4ae2d9bee4f6d9bdb10/websockets-12.0.tar.gz"
MD5SUM="49d033c8236aa56ba2524f65570a27c5"
DOWNLOAD="https://files.pythonhosted.org/packages/source/w/websockets/websockets-13.0.1.tar.gz"
MD5SUM="b3d1cc7a447c4f91b0c6f24beaf312cc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-wheel python3-build"
REQUIRES="python3-setuptools-opt"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="dslackw@gmail.com"