summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Alexander Seistrup2024-05-02 17:44:57 +0200
committerKlaus Alexander Seistrup2024-05-02 17:44:57 +0200
commite5859655c5b8c552228fba64097bd56f5817dec3 (patch)
treed2562ff26b4d266e8fd41d935142572ab605c81b
parent774c9523aea8bd5b8b4105f4a53b3fe4a8c538af (diff)
downloadaur-python-metno-locationforecast.tar.gz
Skip the niquests patch
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD9
2 files changed, 2 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dd1e38f4738d..3e6fd93476d5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-metno-locationforecast
pkgdesc = Python interface for the MET Norway Locationforecast/2.0 weather service
pkgver = 1.1.0
- pkgrel = 1
+ pkgrel = 3
epoch = 1
url = https://github.com/Rory-Sullivan/metno-locationforecast
arch = any
@@ -11,7 +11,6 @@ pkgbase = python-metno-locationforecast
makedepends = python-wheel
depends = python
depends = python-requests
- optdepends = python-niquests: a moderne drop-in replacement for python-requests
source = metno-locationforecast-1.1.0.tar.gz::https://github.com/Rory-Sullivan/metno-locationforecast/archive/refs/tags/v1.1.0.tar.gz
source = setup-py.diff
sha256sums = b24fb745fcb307e74e885b632ffdbc8a53a5401d2a8f094a66f02ce1b78bbbf7
diff --git a/PKGBUILD b/PKGBUILD
index 86d0af793646..08e45362334a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgname='python-metno-locationforecast'
_pkgname="${pkgname#python-}"
epoch=1
pkgver=1.1.0
-pkgrel=1
+pkgrel=3
pkgdesc='Python interface for the MET Norway Locationforecast/2.0 weather service'
arch=('any')
license=('MIT') # SPDX-License-Identifier: MIT
@@ -18,9 +18,6 @@ depends=(
'python'
'python-requests'
)
-optdepends=(
- 'python-niquests: a moderne drop-in replacement for python-requests'
-)
makedepends=(
'python-build'
'python-installer'
@@ -39,10 +36,6 @@ prepare() {
cd "$_pkgname-$pkgver"
patch -Np1 -i "$srcdir/setup-py.diff"
-
- # https://github.com/Rory-Sullivan/metno-locationforecast/issues/6
- _try_niquests='try:\n import niquests as requests\nexcept ImportError:\n import requests'
- sed -i "s/import requests/$_try_niquests/g" "${_pkgname/-/_}/forecast.py"
}
build() {