[arch-commits] Commit in python2-eyed3/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Oct 23 14:06:52 UTC 2020
Date: Friday, October 23, 2020 @ 14:06:51
Author: felixonmars
Revision: 730688
upgpkg: python2-eyed3 1:0.9.5-1
Modified:
python2-eyed3/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-23 14:05:42 UTC (rev 730687)
+++ PKGBUILD 2020-10-23 14:06:51 UTC (rev 730688)
@@ -4,18 +4,19 @@
pkgbase=python2-eyed3
pkgname=('python-eyed3')
-pkgver=0.8
-pkgrel=5
-# 0.8.1 breaks with python-magic in our repos requires https://github.com/ahupp/python-magic
+pkgver=0.9.5
+pkgrel=1
epoch=1
pkgdesc="A Python module and program for processing information about mp3 files"
arch=('any')
url="http://eyed3.nicfit.net/"
license=('GPL')
-depends=('python-setuptools')
-makedepends=('python-setuptools')
-source=(https://files.pythonhosted.org/packages/source/e/eyeD3/eyeD3-$pkgver.tar.gz)
-sha256sums=('10109b76508a726042b2cd6a8fd02b6d6e551dc277901d74016b70e3c0e29ab5')
+depends=('python-deprecation' 'python-filetype' 'python-setuptools')
+checkdepends=('python-factory-boy' 'python-pytest')
+source=(https://files.pythonhosted.org/packages/source/e/eyeD3/eyeD3-$pkgver.tar.gz
+ http://eyed3.nicfit.net/releases/eyeD3-test-data.tgz)
+sha256sums=('faf5806197f2093e82c2830d41f2378f07b3a9da07a16fafb14fc6fbdebac50a'
+ '8bd11c921e0e34f88b84f1a51e24290d0243f3b2660233a527902f2c13af3a67')
options=(!emptydirs)
build() {
@@ -23,6 +24,14 @@
python setup.py build
}
+check() {
+ cd eyeD3-$pkgver
+ ln -s "$srcdir"/eyeD3-test-data.tgz test/
+ make test-data
+ # Skipping display plugin tests because grako is not packaged, and abandoned upstream
+ python -m pytest --deselect test/test_display_plugin.py
+}
+
package_python-eyed3() {
cd eyeD3-$pkgver
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
More information about the arch-commits
mailing list