nixpkgs/pkgs/development/tools/mypy/default.nix

25 lines
630 B
Nix
Raw Normal View History

2017-05-11 21:33:34 +01:00
{ stdenv, fetchPypi, buildPythonApplication, lxml, typed-ast }:
buildPythonApplication rec {
name = "${pname}-${version}";
pname = "mypy";
2017-10-25 19:04:35 +01:00
version = "0.540";
2016-07-11 18:35:00 +01:00
# Tests not included in pip package.
doCheck = false;
2017-05-11 21:33:34 +01:00
src = fetchPypi {
inherit pname version;
2017-10-25 19:04:35 +01:00
sha256 = "5d82f51e228a88e5de6ac1d6699dd09e250ce7de217a5ff1256e317266e738ec";
2016-07-11 18:35:00 +01:00
};
2017-05-11 21:33:34 +01:00
propagatedBuildInputs = [ lxml typed-ast ];
2016-07-12 10:22:24 +01:00
2016-07-11 18:35:00 +01:00
meta = with stdenv.lib; {
description = "Optional static typing for Python";
homepage = "http://www.mypy-lang.org";
license = licenses.mit;
2017-05-11 21:33:34 +01:00
maintainers = with maintainers; [ martingms lnl7 ];
2016-07-11 18:35:00 +01:00
};
}