diff options
Diffstat (limited to 'python/cryptography')
-rw-r--r-- | python/cryptography/cryptography.SlackBuild | 15 | ||||
-rw-r--r-- | python/cryptography/cryptography.info | 12 |
2 files changed, 15 insertions, 12 deletions
diff --git a/python/cryptography/cryptography.SlackBuild b/python/cryptography/cryptography.SlackBuild index f62a8e83d3..716a83626e 100644 --- a/python/cryptography/cryptography.SlackBuild +++ b/python/cryptography/cryptography.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for cryptography # Copyright 2014-2018 Markus Reichelt, Aachen, DE -# Copyright 2021-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2021-2025 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cryptography -VERSION=${VERSION:-43.0.3} +VERSION=${VERSION:-45.0.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,16 +51,12 @@ 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 @@ -84,6 +80,13 @@ find -L . \ sed -i "s|!=74.1.2,||g" pyproject.toml sed -i "s|,!=75.2.0||g" pyproject.toml +export PATH="/opt/rust/bin:$PATH" +if [ -z "$LD_LIBRARY_PATH" ]; then + export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX" +else + export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH" +fi + # prevent cargo from using the network. # this only works because we have a vendored sources tarball with # everything cargo would have downloaded. diff --git a/python/cryptography/cryptography.info b/python/cryptography/cryptography.info index 983b41b2a6..4ab97aa0ca 100644 --- a/python/cryptography/cryptography.info +++ b/python/cryptography/cryptography.info @@ -1,12 +1,12 @@ PRGNAM="cryptography" -VERSION="43.0.3" +VERSION="45.0.7" HOMEPAGE="https://cryptography.io/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-43.0.3.tar.gz \ - https://sbo-source.s3.ap-southeast-1.amazonaws.com/cryptography-vendored-sources-43.0.3-1.tar.xz" -MD5SUM="e0669c198e0aecdcd68a2adef030f5a6 \ - 2059e7e954b9fd6b113e94a962929872" +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_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-maturin" +REQUIRES="python3-maturin rust-opt" MAINTAINER="Willy Sudiarto Raharjo" EMAIL="willysr@slackbuilds.org" |