pentoo-overlay/dev-python/httpcore/httpcore-0.12.2.ebuild
2021-01-16 10:23:04 +08:00

39 lines
803 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="A minimal low-level HTTP client."
HOMEPAGE="https://github.com/encode/httpcore https://pypi.org/project/httpcore/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
#inline with h11
KEYWORDS="~amd64 ~x86"
IUSE="test"
DOCS="README.md"
# Optionals
#trio==0.17.0
#trio-typing==0.5.0
#curio==1.4
RDEPEND="dev-python/h11[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]"
BDEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}