# 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_{7..9} )
EGO_PN=github.com/tomato42/${PN}

inherit distutils-r1

if [[ ${PV} = *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/tomato42/tlslite-ng"
	KEYWORDS=""
else
	KEYWORDS="amd64 ~arm64 x86"
	EGIT_COMMIT="v${PV}"
	SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi

DESCRIPTION="New home of the TLS implementation in pure python."
HOMEPAGE="https://github.com/tomato42/tlslite-ng"

LICENSE="MIT"
SLOT="0"
IUSE=""

RDEPEND="dev-python/coverage
	dev-python/hypothesis
	dev-python/pylint
	dev-python/unittest2"
DEPEND="${RDEPEND}"
