summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
-rw-r--r--python-attrs.patch12
3 files changed, 26 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 29727663b2c..d8f702d303c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = yle-dl
pkgdesc = Download video and audio from YLE Areena.
pkgver = 20190203
- pkgrel = 1
+ pkgrel = 2
url = http://aajanki.github.io/yle-dl/
arch = any
license = GPL3
makedepends = python-setuptools
depends = ffmpeg
depends = python-attrs>=18.1.0
- depends = python-attrs<18.3.0
+ depends = python-attrs<19.2.0
depends = python-configargparse>=0.13.0
depends = python-future
depends = python-lxml
@@ -20,7 +20,9 @@ pkgbase = yle-dl
optdepends = youtube-dl: an alternative downloader backend to AdobeHDS.php
optdepends = wget: for some rare streams
source = yle-dl-20190203.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-20190203.tar.gz
+ source = python-attrs.patch
sha256sums = 81c3096162657d3d8e9e9a2b4d277261b8be4c8696a31505b1f9b6352cf9996f
+ sha256sums = f34434da4ff3303b51c52b729f9180630505f379c1bb6261887dcf86f75fb9a7
pkgname = yle-dl
diff --git a/PKGBUILD b/PKGBUILD
index b83bffd73a2..beade95c986 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,14 @@
pkgname=yle-dl
pkgver=20190203
-pkgrel=1
+pkgrel=2
pkgdesc="Download video and audio from YLE Areena."
arch=('any')
url="http://aajanki.github.io/yle-dl/"
license=('GPL3')
depends=('ffmpeg'
'python-attrs>=18.1.0'
- 'python-attrs<18.3.0'
+ 'python-attrs<19.2.0'
'python-configargparse>=0.13.0'
'python-future'
'python-lxml'
@@ -24,8 +24,14 @@ optdepends=('php: for downloading live TV and certain news broadcasts'
'youtube-dl: an alternative downloader backend to AdobeHDS.php'
'wget: for some rare streams')
makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-${pkgver}.tar.gz")
-sha256sums=('81c3096162657d3d8e9e9a2b4d277261b8be4c8696a31505b1f9b6352cf9996f')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-${pkgver}.tar.gz" 'python-attrs.patch')
+sha256sums=('81c3096162657d3d8e9e9a2b4d277261b8be4c8696a31505b1f9b6352cf9996f'
+ 'f34434da4ff3303b51c52b729f9180630505f379c1bb6261887dcf86f75fb9a7')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i "${srcdir}/python-attrs.patch"
+}
build() {
cd $pkgname-$pkgver
diff --git a/python-attrs.patch b/python-attrs.patch
new file mode 100644
index 00000000000..6a5baae984a
--- /dev/null
+++ b/python-attrs.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text yle-dl-20190203.orig/setup.py yle-dl-20190203.new/setup.py
+--- yle-dl-20190203.orig/setup.py 2019-01-26 13:24:19.000000000 +0200
++++ yle-dl-20190203.new/setup.py 2019-03-23 10:29:24.209744725 +0200
+@@ -39,7 +39,7 @@
+ include_package_data=True,
+ install_requires=[
+ 'pycryptodomex', 'requests', 'lxml', 'future', 'mini-amf',
+- 'attrs >= 18.1.0, < 18.3.0', 'ConfigArgParse >= 0.13.0'
++ 'attrs >= 18.1.0, < 19.2.0', 'ConfigArgParse >= 0.13.0'
+ ] + ssl_sni_requires,
+ extras_require = {
+ 'youtubedl-backend': ['youtube_dl']