diff options
author | Sam James <sam@gentoo.org> | 2020-12-03 07:54:08 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-12-03 07:54:24 +0000 |
commit | f446e41c31d29e780ab491965d8e4c654aaddb50 (patch) | |
tree | c3d3a3d2b30848116911c572298ab056e83b2e1e /dev-python/mediafile | |
parent | profiles/base/package.use.mask: mask blender[doc] (diff) | |
download | gentoo-f446e41c31d29e780ab491965d8e4c654aaddb50.tar.gz gentoo-f446e41c31d29e780ab491965d8e4c654aaddb50.tar.bz2 gentoo-f446e41c31d29e780ab491965d8e4c654aaddb50.zip |
dev-python/mediafile: bump to 0.6.0
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/mediafile')
-rw-r--r-- | dev-python/mediafile/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mediafile/files/mediafile-0.6.0-wavpacktest-fix.patch | 12 | ||||
-rw-r--r-- | dev-python/mediafile/mediafile-0.6.0.ebuild | 48 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/mediafile/Manifest b/dev-python/mediafile/Manifest index 0eb736f7a07b..8b866f0784e8 100644 --- a/dev-python/mediafile/Manifest +++ b/dev-python/mediafile/Manifest @@ -1 +1,2 @@ DIST mediafile-0.2.0.tar.gz 509689 BLAKE2B f79da210a74d55c4709b6fbf08a0675f445001ec49d042fc4a1101def07068bebccb155e770c5cbe8d051d7f101a213e9fcefbcb9590a650de99cfde837a965c SHA512 0fa79f77e0ac9a021b569e78f0edbe8cc63308ad8c89526d8e15dee455a284cb90d29b51aa476287e306717315c3cff290634fc6e4ac0b1726163dd922ee3b0d +DIST mediafile-0.6.0.tar.gz 509351 BLAKE2B 5b8d97be6bd7becd44053d2d1b855252161779d5a01e8fea29443db0b3f524ba3b58dfa372b48451da76672ea5fdb521cd8a2a5c6c110d37e637dcfefbc0842b SHA512 7fd7d8a1d53311c22835041c39413d9dc7e1b4d8afc94a8c578aa4de7f65361f6c998062bb1b2804cae1f672c6b8e7c109fcc3e459e2266b8f19a0bde8673945 diff --git a/dev-python/mediafile/files/mediafile-0.6.0-wavpacktest-fix.patch b/dev-python/mediafile/files/mediafile-0.6.0-wavpacktest-fix.patch new file mode 100644 index 000000000000..e1427b1eb914 --- /dev/null +++ b/dev-python/mediafile/files/mediafile-0.6.0-wavpacktest-fix.patch @@ -0,0 +1,12 @@ +https://github.com/beetbox/mediafile/commit/d2fc3b59f77c515b02dfe7ad936f89264375d2b4 +--- a/test/test_mediafile.py ++++ b/test/test_mediafile.py +@@ -907,7 +907,7 @@ class WavpackTest(ReadWriteTestBase, unittest.TestCase): + 'bitrate': 109312, + 'format': u'WavPack', + 'samplerate': 44100, +- 'bitdepth': 0, ++ 'bitdepth': 16, + 'channels': 1, + } + diff --git a/dev-python/mediafile/mediafile-0.6.0.ebuild b/dev-python/mediafile/mediafile-0.6.0.ebuild new file mode 100644 index 000000000000..a3cd7fdc59e9 --- /dev/null +++ b/dev-python/mediafile/mediafile-0.6.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +inherit distutils-r1 + +DESCRIPTION="Read and write audio files' tags in Python" +HOMEPAGE="https://github.com/beetbox/mediafile" +SRC_URI="https://github.com/beetbox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx ) + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" +DEPEND=" + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=media-libs/mutagen-1.33.0[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-wavpacktest-fix.patch" +) + +python_compile_all() { + if use doc; then + emake -C docs html + rm -r docs/_build/html/_sources || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + nosetests -v || die "Tests failed" + if use doc; then + sphinx-build -W -q -b html docs __doctest || die "Doc tests failed" + fi +} |