Date: Sunday, April 23, 2023 @ 14:41:16
  Author: jelle
Revision: 1448396

upgpkg: whipper 0.10.0-5: python 3.11 rebuild

Added:
  whipper/trunk/test-fixup.patch
Modified:
  whipper/trunk/PKGBUILD

------------------+
 PKGBUILD         |    9 ++++++---
 test-fixup.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-23 14:29:14 UTC (rev 1448395)
+++ PKGBUILD    2023-04-23 14:41:16 UTC (rev 1448396)
@@ -10,7 +10,7 @@
 
 pkgname=whipper
 pkgver=0.10.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Python CD-DA ripper preferring accuracy over speed"
 arch=(x86_64)
 url="https://github.com/whipper-team/whipper";
@@ -37,13 +37,16 @@
 conflicts=(accuraterip-checksum)
 provides=(accuraterip-checksum)
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
-        
whipper-ruamel.yaml-0.17.patch::https://github.com/whipper-team/whipper/pull/543.patch)
+        
whipper-ruamel.yaml-0.17.patch::https://github.com/whipper-team/whipper/pull/543.patch
+       test-fixup.patch)
 
sha512sums=('728ad98185aa2d29f4fb215a597136691bb2c3590b3cac4f659238f90a3b4328c377fafe830a725b655f050538739f404b3eca853db4c39001d1b9d721dc7fd8'
-            
'893e2f23717633971410e0f9917345eaec5af313d83702b36a2693b51eaf54d755d58db864de82e13e8506dc98ab548334d7ba6d02fd6c200bd0670e4bca73bf')
+            
'893e2f23717633971410e0f9917345eaec5af313d83702b36a2693b51eaf54d755d58db864de82e13e8506dc98ab548334d7ba6d02fd6c200bd0670e4bca73bf'
+            
'17e817faf7a9244fe9b0c11f1cba71ec4a4eb7ee880fc16a2a3e2033cf1db9f16ab3cad18e20c2e02d5e656c2ccbc1143f744ffd0e950fe6bfd3512d58731f71')
 
 prepare() {
   cd ${pkgname}-${pkgver}
   patch -p1 -i ../whipper-ruamel.yaml-0.17.patch
+  patch -p1 -i ../test-fixup.patch # tests depend on an external service... 
which can change test data
 }
 
 build() {

Added: test-fixup.patch
===================================================================
--- test-fixup.patch                            (rev 0)
+++ test-fixup.patch    2023-04-23 14:41:16 UTC (rev 1448396)
@@ -0,0 +1,13 @@
+--- whipper-0.10.0/whipper/test/test_common_accurip.py 2021-05-17 
17:46:08.000000000 +0200
++++ whipper-0.10.0.new/whipper/test/test_common_accurip.py     2023-04-23 
16:40:15.123021975 +0200
+@@ -42,8 +42,8 @@
+         self.assertEqual(responses[1].discId1, '0000f21c')
+         self.assertEqual(responses[1].discId2, '00027ef8')
+         self.assertEqual(responses[1].cddbDiscId, '05021002')
+-        self.assertEqual(responses[1].confidences[0], 7)
+-        self.assertEqual(responses[1].confidences[1], 7)
++        self.assertEqual(responses[1].confidences[0], 8)
++        self.assertEqual(responses[1].confidences[1], 8)
+         self.assertEqual(responses[1].checksums[0], 'dc77f9ab')
+         self.assertEqual(responses[1].checksums[1], 'dd97d2c3')
+ 

Reply via email to