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-01-20 10:41:00 +00:00
|
|
|
version = "0.6.4";
|
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-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-BpYg2noReHFgJ/5iQI09XUWNAN7UdcYgqpZ/IPr17Ao=";
|
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
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|