From 2721b42576c32076c7f548667ba8ea83b97efcc9 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 17 Mar 2017 22:39:37 +0100 Subject: [PATCH] dev-python/mypy: initial import --- packages/dev-python/mypy/mypy-0.501.exheres-0 | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/dev-python/mypy/mypy-0.501.exheres-0 diff --git a/packages/dev-python/mypy/mypy-0.501.exheres-0 b/packages/dev-python/mypy/mypy-0.501.exheres-0 new file mode 100644 index 0000000..9673c63 --- /dev/null +++ b/packages/dev-python/mypy/mypy-0.501.exheres-0 @@ -0,0 +1,39 @@ +# Copyright 2017 Julian Ospald +# 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: + dev-python/typed-ast[>=1.0.0&<1.1.0] + python_abis:3.3? ( dev-python/typing[>=3.5.3][python_abis:3.3] ) + python_abis:3.4? ( dev-python/typing[>=3.5.3][python_abis:3.4] ) +" + +BUGS_TO="hasufell@posteo.de" + +src_install() { + setup-py_src_install + + # misplaced and obsolete + edo rm -r "${IMAGE}"/usr/lib +} +