blob: 858cb0ca86fc54ec47abdae2432093d8924a1813 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# 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="Simple framework for creating REST APIs"
HOMEPAGE="
https://flask-restful.readthedocs.io/en/latest/
https://github.com/flask-restful/flask-restful/"
SRC_URI="
https://github.com/flask-restful/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="examples"
RDEPEND="
>=dev-python/aniso8601-0.82[${PYTHON_USEDEP}]
>=dev-python/flask-0.8[${PYTHON_USEDEP}]
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx docs
distutils_enable_tests nose
python_install_all() {
use examples && dodoc -r examples
local DOCS=( AUTHORS.md CHANGES.md CONTRIBUTING.md README.md )
distutils-r1_python_install_all
}
|