diff options
author | Klaus Alexander Seistrup | 2024-05-02 17:44:57 +0200 |
---|---|---|
committer | Klaus Alexander Seistrup | 2024-05-02 17:44:57 +0200 |
commit | e5859655c5b8c552228fba64097bd56f5817dec3 (patch) | |
tree | d2562ff26b4d266e8fd41d935142572ab605c81b | |
parent | 774c9523aea8bd5b8b4105f4a53b3fe4a8c538af (diff) | |
download | aur-python-metno-locationforecast.tar.gz |
Skip the niquests patch
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 2 insertions, 10 deletions
@@ -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 @@ -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() { |