summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorFernando Lopez Jr <fernando.lopezjr@gmail.com>2022-11-12 10:51:59 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-11-12 10:51:59 +0700
commitd61975953f9445104a15b9138ac06a27ce815e42 (patch)
tree973223d11a8e0236c5b925a4d5c6cc79daeb3f28 /python
parent6888a39bbc641cf96545a8fc39c07eb802ce08c9 (diff)
downloadslackbuilds-d61975953f9445104a15b9138ac06a27ce815e42.tar.gz
python/networkx: Updated for version 2.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/networkx/networkx.SlackBuild8
-rw-r--r--python/networkx/networkx.info6
2 files changed, 6 insertions, 8 deletions
diff --git a/python/networkx/networkx.SlackBuild b/python/networkx/networkx.SlackBuild
index da8c473677..e8fd700476 100644
--- a/python/networkx/networkx.SlackBuild
+++ b/python/networkx/networkx.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=networkx
-VERSION=${VERSION:-2.0}
+VERSION=${VERSION:-2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,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
@@ -70,7 +67,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+mv $PRGNAM-$PRGNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
diff --git a/python/networkx/networkx.info b/python/networkx/networkx.info
index 5ee14cc0c1..2107c93ada 100644
--- a/python/networkx/networkx.info
+++ b/python/networkx/networkx.info
@@ -1,8 +1,8 @@
PRGNAM="networkx"
-VERSION="2.0"
+VERSION="2.2"
HOMEPAGE="http://networkx.github.io/"
-DOWNLOAD="https://pypi.python.org/packages/73/58/0add7d81cf64958f7a062aa287237364eb0a0959bf7a817f708d5c25d043/networkx-2.0.zip"
-MD5SUM="34f9cc01b2eca37f362673b8eb65316b"
+DOWNLOAD="https://github.com/networkx/networkx/archive/refs/tags/networkx-2.2.tar.gz"
+MD5SUM="e003e0a05bc7e008a2bc3278593c8240"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""