Date: Sunday, April 23, 2023 @ 14:41:29
  Author: jelle
Revision: 1448397

archrelease: copy trunk to community-staging-x86_64

Added:
  whipper/repos/community-staging-x86_64/
  whipper/repos/community-staging-x86_64/PKGBUILD
    (from rev 1448396, whipper/trunk/PKGBUILD)
  whipper/repos/community-staging-x86_64/test-fixup.patch
    (from rev 1448396, whipper/trunk/test-fixup.patch)

------------------+
 PKGBUILD         |   70 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 test-fixup.patch |   13 +++++++++
 2 files changed, 83 insertions(+)

Copied: whipper/repos/community-staging-x86_64/PKGBUILD (from rev 1448396, 
whipper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-23 14:41:29 UTC (rev 1448397)
@@ -0,0 +1,70 @@
+# Maintainer : Christian Rebischke <[email protected]>
+# Maintainer : Bruno Pagani <[email protected]>
+# Contributor: Frederik "Freso" S. Olesen <[email protected]>
+# Contributor: Bastien Traverse <firstname at lastname dot email>
+# Contributor: Samantha Baldwin <[email protected]>
+# Contributor: Caleb Reach <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+# Contributor: Mantas Mikulėnas <[email protected]>
+
+pkgname=whipper
+pkgver=0.10.0
+pkgrel=5
+pkgdesc="Python CD-DA ripper preferring accuracy over speed"
+arch=(x86_64)
+url="https://github.com/whipper-team/whipper";
+license=(GPL3)
+depends=(
+  cdrdao
+  flac
+  libcdio-paranoia
+  libsndfile
+  python-discid
+  python-gobject
+  python-musicbrainzngs
+  python-mutagen
+  python-pycdio
+  python-ruamel-yaml
+  python-setuptools
+  sox
+)
+checkdepends=(
+  python-twisted
+)
+makedepends=(python-setuptools-scm python-docutils)
+optdepends=('python-pillow: cover art support')
+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
+       test-fixup.patch)
+sha512sums=('728ad98185aa2d29f4fb215a597136691bb2c3590b3cac4f659238f90a3b4328c377fafe830a725b655f050538739f404b3eca853db4c39001d1b9d721dc7fd8'
+            
'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() {
+  cd ${pkgname}-${pkgver}
+  echo "Version: ${pkgver}" > PKG-INFO
+  python setup.py build
+  cd man
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+  PYTHONPATH="build/lib.linux-${CARCH}-cpython-${python_version}/" python -m 
unittest discover
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm644 -t "${pkgdir}"/usr/share/man/man1/ man/*.1
+}

Copied: whipper/repos/community-staging-x86_64/test-fixup.patch (from rev 
1448396, whipper/trunk/test-fixup.patch)
===================================================================
--- community-staging-x86_64/test-fixup.patch                           (rev 0)
+++ community-staging-x86_64/test-fixup.patch   2023-04-23 14:41:29 UTC (rev 
1448397)
@@ -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