2021-07-21 07:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, mypy
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-lsp-server
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylsp-mypy";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.6.3";
|
2021-07-21 07:28:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Richardk2n";
|
|
|
|
repo = "pylsp-mypy";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-fZ2bPPjBK/H2jMI4S3EhvWJaNl4tK7HstxcHSAkoFW4=";
|
2021-07-21 07:28:18 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_multiple_workspaces"
|
2022-05-18 14:49:53 +00:00
|
|
|
"test_option_overrides_dmypy"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
checkInputs = [ pytestCheckHook mock ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mypy python-lsp-server ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [ "pylsp_mypy" ];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Richardk2n/pylsp-mypy";
|
|
|
|
description = "Mypy plugin for the Python LSP Server";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|