summaryrefslogtreecommitdiff
path: root/dev-python/intelhex/intelhex-2.2.1-r1.ebuild
blob: 8d8d9bcfffbcb44378b3fc27e0d1d475ce4c2ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python3_{6,7,8} )

inherit distutils-r1

DESCRIPTION="Python library for Intel HEX files manipulations"
HOMEPAGE="https://pypi.org/project/IntelHex/ https://github.com/bialix/intelhex"
SRC_URI="mirror://pypi/I/IntelHex/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~x86"

distutils_enable_tests setup.py

src_prepare() {
	# upstream don't run their own tests when releasing...
	[[ ${PV} == 2.2.1 ]] || die "Revisit on bump"
	sed -i -e 's:2.2:&.1:' scripts/*.py || die

	distutils-r1_src_prepare
}