2018-08-10 13:22:59 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2018-05-24 12:41:42 +01:00
|
|
|
, future, python-language-server, mypy, configparser
|
|
|
|
, pytest, mock, isPy3k, pytestcov, coverage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyls-mypy";
|
2019-06-27 05:51:23 +01:00
|
|
|
version = "0.1.6";
|
2018-05-24 12:41:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomv564";
|
|
|
|
repo = "pyls-mypy";
|
|
|
|
rev = version;
|
2019-06-27 05:51:23 +01:00
|
|
|
sha256 = "0c1111m9h6f05frkyj6i757q9y2lijpbv8nxmwgp3nqbpkvfnmrk";
|
2018-05-24 12:41:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$TEMPDIR pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock pytestcov coverage ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mypy python-language-server future configparser
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tomv564/pyls-mypy";
|
2018-08-10 13:22:59 +01:00
|
|
|
description = "Mypy plugin for the Python Language Server";
|
2018-05-24 12:41:42 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|