blob: e93e24406341479ce69decae4c52227cb1fc709f (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, mypy
, pytestCheckHook
, python-lsp-server
, pythonOlder
, tomli
}:
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.6.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-lsp";
repo = "pylsp-mypy";
rev = "refs/tags/${version}";
hash = "sha256-oEWUXkE8U7/ye6puJZRSkQFi10BPGuc8XZQbHwqOPEI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
mypy
python-lsp-server
tomli
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pylsp_mypy"
];
disabledTests = [
# Tests wants to call dmypy
"test_option_overrides_dmypy"
];
meta = with lib; {
description = "Mypy plugin for the Python LSP Server";
homepage = "https://github.com/python-lsp/pylsp-mypy";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}
|