Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libraries/python3-cffi/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Foreign Function Interface for Python calling C code. The aim of this
project is to provide a convenient and reliable way of calling C code
from Python.

This is Python3 version of cffi
85 changes: 85 additions & 0 deletions libraries/python3-cffi/python3-cffi.SlackBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash

# Slackware build script for python3-cffi

# Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece
# Copyright 2026 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=python3-cffi
SRCNAM=cffi
VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi

if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi

TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM

OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
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 \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-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

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
10 changes: 10 additions & 0 deletions libraries/python3-cffi/python3-cffi.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PRGNAM="python3-cffi"
VERSION="2.0.0"
HOMEPAGE="http://cffi.readthedocs.org"
DOWNLOAD="https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz"
MD5SUM="5e897f6251e614f6bd128a73e81801a4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pycparser python3-build python3-installer python3-setuptools-opt"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"
19 changes: 19 additions & 0 deletions libraries/python3-cffi/slack-desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

|-----handy-ruler------------------------------------------------------|
python3-cffi: python3-cffi (Foreign Function Interface for Python calling C code)
python3-cffi:
python3-cffi: Foreign Function Interface for Python calling C code. The aim of this
python3-cffi: project is to provide a convenient and reliable way of calling C code
python3-cffi: from Python.
python3-cffi:
python3-cffi: Homepage: https://cffi.readthedocs.io/en/stable
python3-cffi:
python3-cffi:
python3-cffi:
python3-cffi:
5 changes: 2 additions & 3 deletions python/cryptography/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ recipes and primitives.
It's available under either the Apache Software License, Version 2.0,
or the BSD license.

NOTE: Cryptography 45.x is the last version working on Slackware 15.0.
Newer version requires newer cffi and they will drop support for
OpenSSL < 3.0 from future releases.
NOTE: Cryptography 46.x is the last version working on Slackware 15.0.
Newer version will drop support for OpenSSL < 3.0.
10 changes: 5 additions & 5 deletions python/cryptography/cryptography.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Slackware build script for cryptography

# Copyright 2014-2018 Markus Reichelt, Aachen, DE
# Copyright 2021-2025 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2021-2026 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=cryptography
VERSION=${VERSION:-45.0.7}
VERSION=${VERSION:-46.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -77,8 +77,8 @@ 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 {} \;

sed -i "s|!=74.1.2,||g" pyproject.toml
sed -i "s|,!=75.2.0||g" pyproject.toml
# This caused build failure on -stable
sed -i "s|\"cffi>=2.0.0; platform_python_implementation != 'PyPy' and python_version >= '3.9'\",||g" pyproject.toml

export PATH="/opt/rust/bin:$PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then
Expand Down Expand Up @@ -106,7 +106,7 @@ PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages

rm -rf tests/bench
git init

python3 -m build --wheel --no-isolation
python3 -m installer -d "$PKG" dist/*.whl

Expand Down
12 changes: 6 additions & 6 deletions python/cryptography/cryptography.info
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PRGNAM="cryptography"
VERSION="45.0.7"
VERSION="46.0.3"
HOMEPAGE="https://cryptography.io/"
DOWNLOAD="https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-45.0.7.tar.gz \
https://sbo-source.s3.ap-southeast-1.amazonaws.com/cryptography-vendored-sources-45.0.7-1.tar.xz"
MD5SUM="c7c51e216abd722be0e8120e220c2473 \
b505011af495e4c1d2f620f0baff4b2a"
DOWNLOAD="https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-46.0.3.tar.gz \
https://sbo-source.s3.ap-southeast-1.amazonaws.com/cryptography-vendored-sources-46.0.3-1.tar.xz"
MD5SUM="862c7fe5edad3a4c7946c6a7c0e3db96 \
b3607700b22f419f2fd357787faa432e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-maturin rust-opt"
REQUIRES="python3-maturin python3-cffi python3-typing-extensions"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"