diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-06 18:57:22 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-06 18:57:22 +0000 |
| commit | 2a0a7842613c7b604b93722ec657df60efede78e (patch) | |
| tree | 1ee2cf14d3e2b9acf11b043a31bb0570dc004d4c /dev-python/adblock | |
| parent | ce06bfef04eb51813858eb7bbf0a90e63db7fb6a (diff) | |
| download | baldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.tar.gz baldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.tar.xz baldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.zip | |
Adding metadata
Diffstat (limited to 'dev-python/adblock')
| -rw-r--r-- | dev-python/adblock/adblock-0.6.0.ebuild | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/dev-python/adblock/adblock-0.6.0.ebuild b/dev-python/adblock/adblock-0.6.0.ebuild index ee74511bd834..84b5cca747a3 100644 --- a/dev-python/adblock/adblock-0.6.0.ebuild +++ b/dev-python/adblock/adblock-0.6.0.ebuild @@ -67,7 +67,8 @@ CRATES=" windows_i686_gnu@0.36.1 windows_i686_msvc@0.36.1 windows_x86_64_gnu@0.36.1 - windows_x86_64_msvc@0.36.1" + windows_x86_64_msvc@0.36.1 +" DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=maturin PYTHON_COMPAT=( python3_{7,8,9,10,11} ) @@ -78,13 +79,15 @@ HOMEPAGE="https://github.com/ArniDagur/python-adblock" SRC_URI=" https://github.com/ArniDagur/python-adblock/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - ${CARGO_CRATE_URIS}" + ${CARGO_CRATE_URIS} +" S="${WORKDIR}/python-${P}" LICENSE="|| ( MIT Apache-2.0 )" LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT MPL-2.0 - Unicode-DFS-2016" # crates + Unicode-DFS-2016 +" # crates SLOT="0" KEYWORDS="amd64 ~arm64 ~x86" @@ -98,16 +101,18 @@ PATCHES=( "${FILESDIR}"/${P}-maturin-0.14.13.patch ) -EPYTEST_IGNORE=( - # not very meaningful here (e.g. validates changelog), - # and needs the deprecated dev-python/toml - tests/test_metadata.py -) - -src_compile() { - distutils-r1_src_compile +python_test() { + local EPYTEST_DESELECT=( + # unimportant (for us) test that uses the dir that we delete below + # so pytest does not try to load it while lacking extensions + tests/test_typestubs.py::test_functions_and_methods_exist_in_rust + ) + local EPYTEST_IGNORE=( + # not very meaningful here (e.g. validates changelog), + # and needs the deprecated dev-python/toml + tests/test_metadata.py + ) - # prevent pytest from using ./adblock that lack the built module - # but the keep directory given tests check ./adblock/adblock.pyi - rm adblock/__init__.py || die + rm -rf adblock || die + epytest } |
