2021-07-21 07:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, fetchpatch
|
2021-07-21 07:28:18 +00:00
|
|
|
, mypy
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-lsp-server
|
|
|
|
, pythonOlder
|
2022-11-02 22:02:43 +00:00
|
|
|
, toml
|
2021-07-21 07:28:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylsp-mypy";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.6.6";
|
2022-11-02 22:02:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-21 07:28:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Richardk2n";
|
|
|
|
repo = "pylsp-mypy";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-9B+GSEoQEqd1W/g0oup4xULKWOF0TgSG5DfBtyWA3vs=";
|
2021-07-21 07:28:18 +00:00
|
|
|
};
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mypy
|
|
|
|
python-lsp-server
|
|
|
|
toml
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-02 22:02:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2022-11-02 22:02:43 +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";
|
2022-11-02 22:02:43 +00:00
|
|
|
homepage = "https://github.com/Richardk2n/pylsp-mypy";
|
2021-07-21 07:28:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|