diff options
author | adam <adam@pkgsrc.org> | 2018-11-28 08:15:31 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-11-28 08:15:31 +0000 |
commit | e9eceede67d18790ba2099848b019a9319c1a3b1 (patch) | |
tree | 4a6aa59098898bb93860b9bcf4c9bea3c0629d24 /lang/py-mypy/Makefile | |
parent | 9c4b61b6d1a76bfc9db710158ce4413cc6b9ad00 (diff) | |
download | pkgsrc-e9eceede67d18790ba2099848b019a9319c1a3b1.tar.gz |
py-mypy: added version 0.641
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.
Diffstat (limited to 'lang/py-mypy/Makefile')
-rw-r--r-- | lang/py-mypy/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lang/py-mypy/Makefile b/lang/py-mypy/Makefile new file mode 100644 index 00000000000..d414f3b0eaa --- /dev/null +++ b/lang/py-mypy/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2018/11/28 08:15:31 adam Exp $ + +DISTNAME= mypy-0.641 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= lang python +MASTER_SITES= ${MASTER_SITE_PYPI:=m/mypy/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.mypy-lang.org/ +COMMENT= Optional static typing for Python +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.1.0:../../devel/py-typed-ast +DEPENDS+= ${PYPKGPREFIX}-mypy_extensions>=0.4.0:../../lang/py-mypy_extensions + +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} == 34 +DEPENDS+= ${PYPKGPREFIX}-typing>=3.5.3:../../devel/py-typing +.endif + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +REPLACE_PYTHON= mypy/typeshed/tests/*.py + +post-install: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} dmypy dmypy-${PYVERSSUFFIX} && \ + ${MV} mypy mypy-${PYVERSSUFFIX} && \ + ${MV} stubgen stubgen-${PYVERSSUFFIX} || ${TRUE} + +.include "../../lang/python/application.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" |