2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
mypy,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-lsp-server,
|
|
|
|
pythonOlder,
|
|
|
|
tomli,
|
2021-07-21 07:28:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylsp-mypy";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.6.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-21 07:28:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-15 17:15:38 +00:00
|
|
|
owner = "python-lsp";
|
2021-07-21 07:28:18 +00:00
|
|
|
repo = "pylsp-mypy";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oEWUXkE8U7/ye6puJZRSkQFi10BPGuc8XZQbHwqOPEI=";
|
2021-07-21 07:28:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mypy
|
|
|
|
python-lsp-server
|
2023-07-15 17:15:38 +00:00
|
|
|
tomli
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylsp_mypy" ];
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests wants to call dmypy
|
|
|
|
"test_option_overrides_dmypy"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mypy plugin for the Python LSP Server";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/python-lsp/pylsp-mypy";
|
2021-07-21 07:28:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|