aboutsummaryrefslogtreecommitdiff
path: root/gis/OWSLib
diff options
context:
space:
mode:
authorGiancarlo Dessi <slack@giand.it>2024-04-06 07:08:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-13 22:02:11 +0700
commita7a0144d25f12ff44968a2ebef790be4b911d7c8 (patch)
treeae13c625d51a05d4fe306e9ece82ee803a6cfc34 /gis/OWSLib
parentf78e9a825e7607a8644546b87f5feaca501b96fd (diff)
gis/OWSLib: Fix script if Python 3.11 is found.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/OWSLib')
-rw-r--r--gis/OWSLib/OWSLib.SlackBuild6
-rw-r--r--gis/OWSLib/pytz-not-required.patch13
2 files changed, 18 insertions, 1 deletions
diff --git a/gis/OWSLib/OWSLib.SlackBuild b/gis/OWSLib/OWSLib.SlackBuild
index fd76c9c13151..afdb8084e951 100644
--- a/gis/OWSLib/OWSLib.SlackBuild
+++ b/gis/OWSLib/OWSLib.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OWSLib
VERSION=${VERSION:-0.30.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,6 +76,10 @@ find -L . \
-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 {} \;
+
+if [ -x /usr/bin/python3.11 ]; then
+ patch -p1 < $CWD/pytz-not-required.patch
+fi
python3 setup.py install --root=$PKG
diff --git a/gis/OWSLib/pytz-not-required.patch b/gis/OWSLib/pytz-not-required.patch
new file mode 100644
index 000000000000..03471b2d4d63
--- /dev/null
+++ b/gis/OWSLib/pytz-not-required.patch
@@ -0,0 +1,13 @@
+python-pytz has been removed from Slackware -current because
+not needed with Python 3.11
+This patch prevents pip check from indicating the lack of
+pytz as dependency required by OWSLib in -current
+--- ./requirements.txt 2024-04-05 23:42:52.864498274 +0200
++++ ./requirements.txt 2024-04-05 23:43:13.322499915 +0200
+@@ -1,6 +1,5 @@
+ dataclasses; python_version < '3.7'
+ lxml
+ python-dateutil>=1.5
+-pytz
+ pyyaml
+ requests>=1.0