2017-03-17 21:39:37 +00:00
|
|
|
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require github [ user="python" ]
|
|
|
|
require pypi
|
|
|
|
require setup-py [ import=setuptools blacklist=2 ]
|
|
|
|
|
|
|
|
SUMMARY="Optional static typing for Python"
|
|
|
|
DESCRIPTION="
|
|
|
|
Add type annotations to your Python programs, and use mypy to type
|
|
|
|
check them. Mypy is essentially a Python linter on steroids, and it
|
|
|
|
can catch many programming errors by analyzing your program, without
|
|
|
|
actually having to run it. Mypy has a powerful type system with
|
|
|
|
features such as type inference, gradual typing, generics and union
|
|
|
|
types.
|
|
|
|
"
|
|
|
|
HOMEPAGE="http://www.mypy-lang.org ${HOMEPAGE}"
|
|
|
|
|
|
|
|
LICENCES="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
MYOPTIONS=""
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
2017-09-16 11:58:36 +00:00
|
|
|
dev-python/typed-ast[>=1.0.4&<1.1.0][python_abis:*(-)?]
|
2017-03-17 21:39:37 +00:00
|
|
|
python_abis:3.4? ( dev-python/typing[>=3.5.3][python_abis:3.4] )
|
|
|
|
"
|
|
|
|
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
|
2017-03-29 11:32:24 +00:00
|
|
|
prepare_one_multibuild() {
|
|
|
|
edo sed -i \
|
|
|
|
-e "/target = /s|lib|$(exhost --target)/lib|" \
|
|
|
|
setup.py
|
2017-03-17 21:39:37 +00:00
|
|
|
|
2017-03-29 11:32:24 +00:00
|
|
|
setup-py_prepare_one_multibuild
|
2017-03-17 21:39:37 +00:00
|
|
|
}
|
|
|
|
|