summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
author Dimitris Zlatanidis <d.zlatanidis@gmail.com>2021-03-28 11:22:13 +0300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-03 08:48:36 +0700
commit9bf649d1c94ff23e0e535e3c5efeb569736f53a2 (patch)
treea7024e81d00ce56b80e2afdc5e2450fffad5291e /python
parentc4e347cf97ce1d9f5b0033473b91b33084efae7c (diff)
downloadslackbuilds-9bf649d1c94ff23e0e535e3c5efeb569736f53a2.tar.gz
slackbuilds-9bf649d1c94ff23e0e535e3c5efeb569736f53a2.tar.xz
python/tzlocal: Updated for version 2.1.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/tzlocal/tzlocal.SlackBuild5
-rw-r--r--python/tzlocal/tzlocal.info8
2 files changed, 7 insertions, 6 deletions
diff --git a/python/tzlocal/tzlocal.SlackBuild b/python/tzlocal/tzlocal.SlackBuild
index 122697c81a..d6495f6f02 100644
--- a/python/tzlocal/tzlocal.SlackBuild
+++ b/python/tzlocal/tzlocal.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for tzlocal
-# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2021 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tzlocal
-VERSION=${VERSION:-1.5.1}
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,6 +70,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
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
diff --git a/python/tzlocal/tzlocal.info b/python/tzlocal/tzlocal.info
index 39288117b2..a5a526dfab 100644
--- a/python/tzlocal/tzlocal.info
+++ b/python/tzlocal/tzlocal.info
@@ -1,10 +1,10 @@
PRGNAM="tzlocal"
-VERSION="1.5.1"
+VERSION="2.1"
HOMEPAGE="https://github.com/regebro/tzlocal"
-DOWNLOAD="https://pypi.python.org/packages/cb/89/e3687d3ed99bc882793f82634e9824e62499fdfdc4b1ae39e211c5b05017/tzlocal-1.5.1.tar.gz"
-MD5SUM="4553be891efa0812c4adfb0c6e818eec"
+DOWNLOAD="https://files.pythonhosted.org/packages/ce/73/99e4cc30db6b21cba6c3b3b80cffc472cc5a0feaf79c290f01f1ac460710/tzlocal-2.1.tar.gz"
+MD5SUM="c0877603ff9de71cd8ca6ee2b50d2ebd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pytz"
+REQUIRES="python3 pytz"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"