sys-block/bmap-tools - 3.6 (gentoo)

Search

Install

Install this version:

emerge -a =sys-block/bmap-tools-3.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-block/bmap-tools-3.6

Or alternatively:

emerge --autounmask-write -a =sys-block/bmap-tools-3.6

Package Information

Description:
Flashing tool using block maps and sparse files
Homepage:
https://github.com/intel/bmap-tools
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
3.6 8 ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
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

USE Flags

Manage flags for this package: euse -i <flag> -p sys-block/bmap-tools | euse -E <flag> -p sys-block/bmap-tools | euse -D <flag> -p sys-block/bmap-tools

Global/Standard Flags

Inherited Eclasses

Dependencies

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

BDEPEND

	dev-python/setuptools[]
	test? ( dev-python/six[] )

Manifest for 3.6

Type File Size Source URLs
DIST bmap-tools-3.6.tar.gz 97815 bytes https://github.com/intel/bmap-tools/archive/v3.6.tar.gz