1{ lib, buildPythonPackage, fetchFromGitHub
2, future, python-language-server, mypy, configparser
3, pytest, mock, isPy3k, pytestcov, coverage
4}:
5
6buildPythonPackage rec {
7 pname = "pyls-mypy";
8 version = "0.1.3";
9
10 src = fetchFromGitHub {
11 owner = "tomv564";
12 repo = "pyls-mypy";
13 rev = version;
14 sha256 = "0v7ghcd1715lxlfq304b7xhchp31ahdd89lf6za4n0l59dz74swh";
15 };
16
17 disabled = !isPy3k;
18
19 checkPhase = ''
20 HOME=$TEMPDIR pytest
21 '';
22
23 checkInputs = [ pytest mock pytestcov coverage ];
24
25 propagatedBuildInputs = [
26 mypy python-language-server future configparser
27 ];
28
29 meta = with lib; {
30 homepage = https://github.com/tomv564/pyls-mypy;
31 description = "Mypy plugin for the Python Language Server";
32 license = licenses.mit;
33 maintainers = [ maintainers.mic92 ];
34 };
35}