blob: d5d03eb3ab4471f37f01bf1fd34659ec6ef10168 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, mypy
, pytestCheckHook
, python-lsp-server
, pythonOlder
, toml
}:
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.6.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Richardk2n";
repo = "pylsp-mypy";
rev = "refs/tags/${version}";
hash = "sha256-BpYg2noReHFgJ/5iQI09XUWNAN7UdcYgqpZ/IPr17Ao=";
};
propagatedBuildInputs = [
mypy
python-lsp-server
toml
];
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/Richardk2n/pylsp-mypy";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}
|