Update to DISTUTILS_USE_PEP517

Change SRC_URI to github, in pypi are missing some files (test, etc..)
Remove tests are broken
Require ffmpeg to run
This commit is contained in:
INODE64 2023-02-14 15:24:11 +01:00
parent 84c2381e6c
commit 6bf28dafa5
3 changed files with 15 additions and 21 deletions

View File

@ -1,3 +1,3 @@
DIST ha-ffmpeg-3.0.2.tar.gz 7547 BLAKE2B ea413c1ccdddd69f35b60a31f7c14be500fd1d796c3c9d1fca1db0e2fc3bd35bcff03ffada41f2807a53404852343bd22af5a9fe960cb714a6e4d91667613517 SHA512 113cd0bfbe147c6ac3f8b31b4fd493aa645de0316215f879aceadd7fb7a8eb0af774e59cf4135badb44e4c4e11a9e207a7925445558016a2d90bfe7752f7d991
EBUILD ha-ffmpeg-3.0.2.ebuild 714 BLAKE2B b75e6011cda3f2c177614deb3adee27cbf8b73d8ee96d513939004cf392fe46593a732fae627a0220d6e5446a6f8348903c11cf3a442df8d9c8607fbcee27d53 SHA512 7132e4dcbdef0d55c9240dc4ef4302f8009514ba64e85545a91b19c35cd28ead4c427e7c2c87641151068f61f135f2729c65381f60d4cd8f4a2b72c2bbe53bb5
MISC metadata.xml 512 BLAKE2B 7dcd395009223c1948420fc114c7f127ebf6a8e746417231d6c4a261ff93684f178a75bfea1306a65b7e1867b956250992c1ccc68c4b247c65b80bd05cf76657 SHA512 0f5fa4ccfeef386a0c178b8dce549c438c30f03f65ed46b0322d34ced54657d2d110a197e609d882c4a6617c9616bf0d5bdded658be8269cb190f1e71e4f9587
DIST 3.0.2.gh.tar.gz 10142 BLAKE2B c96bd6c3eec745eb33c785e5e88d42bd1abc7898afb94a47e74e1bcdefeba553dd669a121d374a2bbc2513034879fd608736f7363813d657c7748089240f951d SHA512 589100bb88503142cbebda1f4a9df68d6a26683bf8b5774e3e5b9dc1128a38fbb6736f80adaf0512c949fe62e933f9d61b3c367d3b955011dead4c25e858266a
EBUILD ha-ffmpeg-3.0.2.ebuild 700 BLAKE2B 043d47792ead551ace7ea7d7bf4927b81200ba480ea6ccb892459154b6976c6a879d25767e2f23e3cb3c0cb658fc013d0b8a9310e16de594a09e33bd6e934eff SHA512 e5b39149e63e2de7b12140910727c9d0892d4d77b9f9f8a788c499a63508a86a62e380d5a35a32d618b446e913d4594c98b9b21bc83ca32e5c30dcec84409c1d
MISC metadata.xml 525 BLAKE2B 2c7c317e35e53bdedaa680d4a835e7cfa4111cab82e1c4f5dba60be73783af58e2707694beca908c78b7696894e77ea919e08f07b0a976c989125d679475ce38 SHA512 39bf730c33e2796b786456e9b4d6b74dd4b67a23249898bed5f6f4ffa620740cadaed6262fa2957a3b3b664c8e0dae1487d002212cbc14c38d76481342a57e47

View File

@ -1,33 +1,27 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="A library that handling with ffmpeg for home-assistant"
HOMEPAGE="https://github.com/pvizeli/ha-ffmpeg https://pypi.org/project/ha-ffmpeg/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
HOMEPAGE="https://github.com/home-assistant-libs/ha-ffmpeg https://pypi.org/project/ha-ffmpeg/"
SRC_URI="https://github.com/home-assistant-libs/${PN}/archive/refs/tags/${PV}.tar.gz -> ${PV}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RESTRICT="test"
DOCS="README.md"
RDEPEND="dev-python/async-timeout[${PYTHON_USEDEP}]"
RDEPEND="
dev-python/async-timeout[${PYTHON_USEDEP}]
media-video/ffmpeg
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest
"

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
@ -7,7 +7,7 @@
</maintainer>
<upstream>
<remote-id type="pypi">ha-ffmpeg</remote-id>
<remote-id type="github">pvizeli/ha-ffmpeg</remote-id>
<remote-id type="github">home-assistant-libs/ha-ffmpeg</remote-id>
<maintainer status="unknown">
<email>pvizeli@syshack.ch</email>
<name>Pascal Vizeli</name>