mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
Closes: https://bugs.gentoo.org/975326 Signed-off-by: bakedsnake <bakedsnake@vagrantz.xyz>
65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="An extensible music server written in Python"
|
|
HOMEPAGE="https://mopidy.com/"
|
|
SRC_URI="https://github.com/mopidy/mopidy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
BDEPEND="dev-python/setuptools-scm"
|
|
# https://docs.mopidy.com/stable/installation/manual/
|
|
RDEPEND="
|
|
dev-python/gst-python[${PYTHON_USEDEP}]
|
|
dev-python/pykka[${PYTHON_USEDEP}]
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
dev-python/tornado[${PYTHON_USEDEP}]
|
|
media-plugins/gst-plugins-meta[mp3,ogg,flac]
|
|
dev-libs/gobject-introspection
|
|
x11-libs/cairo
|
|
"
|
|
|
|
DEPEND="
|
|
${RDEPEND}
|
|
test? (
|
|
dev-python/responses[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
EPYTEST_PLUGINS=( "${PN}" )
|
|
EPYTEST_LOAD_VIA_ENV=1
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
EPYTEST_IGNORE=(
|
|
# Upstream uses a mix of pytest and unittest
|
|
# Since most tests are pytest, let's ignore unittest tests
|
|
tests/http/test_server.py
|
|
tests/http/test_handlers.py
|
|
)
|
|
|
|
EPYTEST_DESELECT=(
|
|
# Broken test due to network-sandbox
|
|
tests/stream/test_playback.py
|
|
tests/test_help.py::HelpTest::test_help_has_mopidy_options
|
|
# https://github.com/mopidy/mopidy/commit/6c63054fcdb41394e0073a3af8972a589e2a3c59
|
|
tests/test_commands.py::CommandParsingTest::test_missing_positionals
|
|
tests/test_commands.py::CommandParsingTest::test_missing_positionals_subcommand
|
|
# https://github.com/mopidy/mopidy/commit/784073e52af58c51a11ad89eeb793a72ecc01c92
|
|
tests/m3u/test_translator.py::test_path_to_uri[test.mp3-file-file:///test.mp3]
|
|
)
|
|
|
|
src_configure() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
|
distutils-r1_src_configure
|
|
}
|