about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyls-mypy/default.nix
blob: dfba421ae58d21b7f1e2348a6eede7c1828e48a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, buildPythonPackage, fetchFromGitHub
, future, python-language-server, mypy, configparser
, pytest, mock, isPy3k, pytestcov, coverage
}:

buildPythonPackage rec {
  pname = "pyls-mypy";
  version = "0.1.3";

  src = fetchFromGitHub {
    owner = "tomv564";
    repo = "pyls-mypy";
    rev = version;
    sha256 = "0v7ghcd1715lxlfq304b7xhchp31ahdd89lf6za4n0l59dz74swh";
  };

  disabled = !isPy3k;

  checkPhase = ''
    HOME=$TEMPDIR pytest
  '';

  checkInputs = [ pytest mock pytestcov coverage ];

  propagatedBuildInputs = [
    mypy python-language-server future configparser
  ];

  meta = with lib; {
    homepage = https://github.com/tomv564/pyls-mypy;
    description = "Mypy plugin for the Python Language Server";
    license = licenses.mit;
    maintainers = [ maintainers.mic92 ];
  };
}