1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, mypy
6, pytestCheckHook
7, python-lsp-server
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pylsp-mypy";
13 version = "0.5.1";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "Richardk2n";
18 repo = "pylsp-mypy";
19 rev = version;
20 sha256 = "1d119csj1k5m9j0f7wdvpvnd02h548css6ybxqah92nk2v0rjscr";
21 };
22
23 checkInputs = [ pytestCheckHook mock ];
24
25 propagatedBuildInputs = [ mypy python-lsp-server ];
26
27 meta = with lib; {
28 homepage = "https://github.com/Richardk2n/pylsp-mypy";
29 description = "Mypy plugin for the Python LSP Server";
30 license = licenses.mit;
31 maintainers = with maintainers; [ cpcloud ];
32 };
33}