mypy: make it usuable as a library

This commit is contained in:
Jörg Thalheim
2018-05-25 10:42:34 +01:00
parent 1a1799b6f4
commit b76177a625
3 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k }:
buildPythonPackage rec {
pname = "mypy";
version = "0.600";
# Tests not included in pip package.
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "1pd3kkz435wlvi9fwqbi3xag5zs59jcjqi6c9gzdjdn23friq9dw";
};
disabled = !isPy3k;
propagatedBuildInputs = [ lxml typed-ast psutil ];
meta = with stdenv.lib; {
description = "Optional static typing for Python";
homepage = "http://www.mypy-lang.org";
license = licenses.mit;
maintainers = with maintainers; [ martingms lnl7 ];
};
}