Thanks @FabioLolix. Building in a clean chroot seems to work fine.
Search Criteria
Package Details: python-eyed3 0.9.7-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-eyed3.git (read-only, click to copy) |
---|---|
Package Base: | python-eyed3 |
Description: | A Python module and program for processing information about mp3 files |
Upstream URL: | https://eyed3.nicfit.net/ |
Licenses: | GPL |
Submitter: | amish |
Maintainer: | amish |
Last Packager: | amish |
Votes: | 9 |
Popularity: | 0.038308 |
First Submitted: | 2022-11-22 09:00 (UTC) |
Last Updated: | 2023-05-12 07:05 (UTC) |
Dependencies (8)
- python-deprecation
- python-filetype
- python-packaging
- python-requests
- python-yaml (python-yaml-gitAUR)
- python-setuptools (make)
- python-factory-boy (check)
- python-pytest (python-pytest7) (check)
Required by (6)
- abcde (optional)
- audex-git (optional)
- cdrip
- mixramp (optional)
- python-mutagen-git (check)
- xapp-mp3-thumbnailer
Sources (2)
Latest Comments
Rhinoceros commented on 2023-07-26 22:54 (UTC)
FabioLolix commented on 2023-07-26 22:29 (UTC)
Here builded fine both with makepkg (not up to date) and with devtools https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot extra-x86_64-build
command
Rhinoceros commented on 2023-07-26 22:12 (UTC)
I can't get this to build. I tried installing python-yaml
as per the comment from @FabioLolix. I already had python-setuptools
installed.
======================================================================================================================================= FAILURES ========================================================================================================================================
____________________________________________________________________________________________________________________________________ testYamlPlugin _____________________________________________________________________________________________________________________________________
audiofile = <eyed3.mp3.Mp3AudioFile object at 0x7f58b2d4e5d0>
def testYamlPlugin(audiofile):
_initTag(audiofile)
omap, omap_list = "", " "
if sys.version_info[:2] <= (3, 7):
omap = " !!omap"
omap_list = "- "
> _assertFormat("yaml", audiofile, f"""
---
_eyeD3: %(version)s
album: Suffer
artist: Bad Religion
best_release_date: '1988'
info:
size_bytes: %(size_bytes)d
time_secs: 10.68
path: %(path)s
recording_date: '1987'
release_date: '1988'
title: Suffer
track_num:{omap}
{omap_list}count: 9
{omap_list}total: 15
""")
tests/test_jsonyaml_plugin.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
plugin = 'yaml', audio_file = <eyed3.mp3.Mp3AudioFile object at 0x7f58b2d4e5d0>
format = "\n---\n_eyeD3: %(version)s\nalbum: Suffer\nartist: Bad Religion\nbest_release_date: '1988'\ninfo:\n size_bytes: %(si...68\npath: %(path)s\nrecording_date: '1987'\nrelease_date: '1988'\ntitle: Suffer\ntrack_num:\n count: 9\n total: 15\n"
def _assertFormat(plugin: str, audio_file, format: str):
output = _runPlugin(audio_file, plugin)
print(output)
size_bytes = os.stat(audio_file.path)[stat.ST_SIZE]
> assert output.strip() == format.strip() % dict(path=audio_file.path, version=version,
size_bytes=size_bytes)
E AssertionError: assert '---\n_eyeD3:...\n total: 15' == '---\n_eyeD3:...\n total: 15'
E Skipping 121 identical leading characters in diff, use -v to show
E .68
E + path:
E - path: /tmp/pytest-of-rhino/pytest-1/testYamlPlugin0/924ff078-0bf1-4b18-acba-49486186fdf0.mp3
E ? ^^^^^
E + /tmp/pytest-of-rhino/pytest-1/testYamlPlugin0/924ff078-0bf1-4b18-acba-49486186fdf0.mp3
E ? ^...
E
E ...Full output truncated (6 lines hidden), use '-vv' to show
tests/test_jsonyaml_plugin.py:33: AssertionError
gabor_zoka commented on 2023-04-07 13:52 (UTC)
Hello amish,
Would you consider this patch? https:// makes more credibility, and not just relying on the chksum in the PKGBUILD
Thank you,
Gábor
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ depends=('python-deprecation' 'python-filetype' 'python-packaging' 'python-reque
checkdepends=('python-factory-boy' 'python-pytest')
#source=("eyed3-${pkgver}-${_eyed3_gitrev}.tar.gz::https://github.com/nicfit/eyeD3/archive/${_eyed3_gitrev}.tar.gz"
source=("eyed3-${pkgver}.tar.gz::https://github.com/nicfit/eyeD3/archive/refs/tags/v${pkgver}.tar.gz"
- 'http://eyed3.nicfit.net/releases/eyeD3-test-data.tgz')
+ 'https://eyed3.nicfit.net/releases/eyeD3-test-data.tgz')
sha256sums=('808f2d376b585ff13c35f614b970f3392c0f15de191c5a96c6b04532bf2217ec'
'b7cd2fe8d7114f597dbe1e06c11587af566cf92f640cef9af6408a824face37f')
options=(!emptydirs)
yochananmarqos commented on 2022-12-15 23:12 (UTC)
@FabioLinux: You're right. I'm maintaining it myself. I think you know where to find it.
FabioLolix commented on 2022-12-15 22:50 (UTC)
@unphysicalix delete eyeD3-test-data.tgz and try again
@amish python-setuptools is missing from makedepends, fails to build with devtools
python-yaml missing as depends (according to namcap), without it fail to pass tests building with devtools
Version is now 0.9.7? https://github.com/nicfit/eyeD3/tags
--deselect tests/test_display_plugin.py
can be removed, display-plugin has been removed https://github.com/nicfit/eyeD3/pull/587/files
szanni commented on 2022-11-21 00:43 (UTC)
This PKGBUILD works for me pip2pkgbuild
with a fix for the name.
pkgbase='python-eyed3'
pkgname=('python-eyed3')
_module='eyeD3'
pkgver='0.9.7'
pkgrel=1
pkgdesc="Python audio data toolkit (ID3 and MP3)"
url="https://eyeD3.nicfit.net/"
depends=('python')
makedepends=('python-setuptools')
license=('GPL')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('93b18e9393376a45114f9409d7cca119fb6f4f9a37d4b697b500af48b4c5cf0f')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
}
package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
unphysicalix commented on 2022-10-20 22:33 (UTC) (edited on 2022-10-20 22:33 (UTC) by unphysicalix)
Hi, does not compile for me:
==> Validating source files with sha256sums...
eyed3-0.9.7pre.tar.gz ... Passed
eyeD3-test-data.tgz ... FAILED
==> ERROR: One or more files did not pass the validity check!
-> error downloading sources: python2-eyed3
context: exit status 1
Pinned Comments