diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-11-05 19:02:56 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-11-05 19:02:56 +0000 |
| commit | 864ccd3aba62b24728eb0b963d8a1093555475c0 (patch) | |
| tree | bb5a89762d7f5ee123655bf5cdf9406b27dc1759 /dev-python/pyglet | |
| parent | 64f2ecf7f878941ddcb49fbeb10e26352844b683 (diff) | |
| download | baldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.tar.gz baldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.tar.xz baldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyglet')
| -rw-r--r-- | dev-python/pyglet/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyglet/pyglet-2.1.10.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest index 8be526d4b50c..c7b2bf710771 100644 --- a/dev-python/pyglet/Manifest +++ b/dev-python/pyglet/Manifest @@ -1,2 +1,3 @@ +DIST pyglet-2.1.10.tar.gz 6594138 BLAKE2B 3b7f00605084856caee4bcde7d8f857b3a0287946c912673965d4451873684d599226440a7cdd6e1f4535cda8bb6feb190450dc94150900244e7cdcbbe831a96 SHA512 b07fa44285982a537ae4616dd8b36e5a4743014ea1d0f0f5317d4222ab6867cc37007973806eb6bada194ff5d8cce8cc057ee0c69afda31f48f3a163845c6004 DIST pyglet-2.1.8.tar.gz 6591905 BLAKE2B 03142754f461402f625225622f6ca53a066b8c3d924762e740b2cbd46dc1851ec661b9263fc90c33949ade25c07d7b63ad92cd243bc12869f50c0b8e77b6b660 SHA512 cd38d7e4d39f26f5188898c822a8f7c53a34429f9098c0f0695df3befadb1d287b92533d264988654def7ceae6f70debc096d546da5d42848ca69644933a4a9b DIST pyglet-2.1.9.tar.gz 6593094 BLAKE2B 0af2ec4b4f7414a644555268b04f71b99fb157c65c8f2d961490676c9182aec524be82397589cb113972197f8bc94a0b00f234732d9559ba4ff85c6ed3b23bf3 SHA512 1d865ee8145245e2afb41aa40c7b4d938ca4b092b02b57480b3d375991428de222016bafaa7111b765e2dd20f4155d962582fb6978a1c7f5e1532c23431dbfcb diff --git a/dev-python/pyglet/pyglet-2.1.10.ebuild b/dev-python/pyglet/pyglet-2.1.10.ebuild new file mode 100644 index 000000000000..8805ed77e0a1 --- /dev/null +++ b/dev-python/pyglet/pyglet-2.1.10.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..14} ) + +inherit distutils-r1 pypi virtualx xdg-utils + +MY_P=${P/_/.} +DESCRIPTION="Cross-platform windowing and multimedia library for Python" +HOMEPAGE=" + https://pyglet.org/ + https://github.com/pyglet/pyglet/ + https://pypi.org/project/pyglet/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="examples image +sound" + +RDEPEND=" + virtual/glu + virtual/opengl + image? ( + || ( + dev-python/pillow[${PYTHON_USEDEP}] + x11-libs/gtk+:2 + ) + ) + sound? ( + || ( + media-libs/libpulse + media-libs/openal + ) + ) +" +# ffmpeg? ( media-libs/avbin-bin ) +BDEPEND=" + test? ( + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/fontconfig + x11-base/xorg-server[-minimal] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + xdg_environment_reset + + local EPYTEST_DESELECT=( + # lacking device/server permissions + tests/unit/media/test_listener.py::test_openal_listener + tests/unit/media/test_listener.py::test_pulse_listener + # fragile to system load + tests/unit/media/test_player.py::PlayerTestCase::test_pause_resume + tests/unit/test_clock_freq.py::test_elapsed_time_between_tick + ) + + # Specify path to avoid running interactive tests + # We could add in integration tests, but they're slow + nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} |
