2020-01-05 20:54:22 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2016-08-10 09:11:15 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-09-15 19:03:09 +03:00
|
|
|
EAPI=7
|
2020-01-05 20:54:22 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 python3_{6,7})
|
2016-08-10 09:11:15 +03:00
|
|
|
|
|
|
|
inherit eutils distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="An implementation of JSON Reference for Python"
|
2018-04-27 20:48:59 +03:00
|
|
|
HOMEPAGE="https://github.com/gazpachoking/jsonref https://pypi.org/project/jsonref/"
|
2016-08-10 23:23:51 +03:00
|
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
2016-08-10 09:11:15 +03:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2017-05-16 23:51:27 +03:00
|
|
|
IUSE="test"
|
2019-12-11 07:27:31 +03:00
|
|
|
RESTRICT="!test? ( test )"
|
2016-08-10 09:11:15 +03:00
|
|
|
|
2017-05-16 23:51:27 +03:00
|
|
|
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
py.test tests.py || die
|
|
|
|
}
|