diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-31 22:06:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-31 22:06:41 +0100 |
commit | 9ab9a2c6661b7cb6bbaeeb3fbdfedd7546b0142f (patch) | |
tree | 8e2efb08866063f75d3d4927f8ac76e6554d4704 /sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild | |
parent | 569e3558cac0a0ecdc6b80debb515b5ed8515df9 (diff) |
gentoo auto-resync : 31:03:2023 - 22:06:41
Diffstat (limited to 'sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild')
-rw-r--r-- | sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild b/sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild new file mode 100644 index 000000000000..5a474a6f2428 --- /dev/null +++ b/sys-block/bmap-tools/bmap-tools-3.6-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Flashing tool using block maps and sparse files" +HOMEPAGE="https://github.com/intel/bmap-tools" + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/intel/bmap-tools.git" + EGIT_BRANCH="master" + inherit git-r3 +else + SRC_URI="https://github.com/intel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="test" + +BDEPEND="${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/six[${PYTHON_USEDEP}] ) +" + +RDEPEND=" + app-arch/pigz + app-arch/lzop + app-arch/lz4 + app-arch/pbzip2 + app-arch/xz-utils + app-arch/bzip2 + app-arch/gzip + app-arch/tar +" + +DOCS=( "${S}/docs/README" ) + +PATCHES=( + "${FILESDIR}"/${P}-unittest-mock.patch + "${FILESDIR}"/${P}-mock-import-pattern.patch +) + +# tests are hanging using default below +RESTRICT="!test? ( test )" + +EPYTEST_DESELECT=( + # remaining tests involve way too much file I/O + tests/test_api_base.py # too many open files + tests/test_bmap_helpers.py::TestBmapHelpers::test_get_file_system_type_symlink # depends on backports.tempfile + tests/test_bmap_helpers.py::TestBmapHelpers::test_is_zfs_configuration_compatible_unreadable_file # fails +) + +distutils_enable_tests pytest |