Install this version:
emerge -a =dev-python/pyqrcode-1.2.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
PYPI_PN="PyQRCode"
# upstream doesn't do tags
EGIT_COMMIT="674a77b5eaf850d063f518bd90c243ee34ad6b5d"
DESCRIPTION="A pure Python QR code generator with SVG, EPS, PNG and terminal output"
HOMEPAGE="https://github.com/mnooner256/pyqrcode/ https://pypi.org/project/PyQRCode/"
SRC_URI="https://github.com/mnooner256/pyqrcode/archive/${EGIT_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
S=${WORKDIR}/${PN}-${EGIT_COMMIT}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="png test"
RESTRICT="!test? ( test )"
RDEPEND="png? ( dev-python/pypng[${PYTHON_USEDEP}] )"
BDEPEND="
test? ( dev-python/pypng[${PYTHON_USEDEP}] )
"
src_prepare() {
# don't pull in tkinter for one test
sed -i -e 's:test_xbm_with_tkinter:_&:' \
tests/test_xbm.py || die
distutils-r1_src_prepare
}
distutils_enable_tests pytest
Manage flags for this package:
euse -i <flag> -p dev-python/pyqrcode |
euse -E <flag> -p dev-python/pyqrcode |
euse -D <flag> -p dev-python/pyqrcode
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pyqrcode-1.2.1.gh.tar.gz | 63404 bytes | https://github.com/mnooner256/pyqrcode/archive/674a77b5eaf850d063f518bd90c243ee34ad6b5d.tar.gz |