a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
51 lines
927 B
Nix
51 lines
927 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, mypy
|
|
, pytestCheckHook
|
|
, python-lsp-server
|
|
, pythonOlder
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylsp-mypy";
|
|
version = "0.6.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Richardk2n";
|
|
repo = "pylsp-mypy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LQ9Kw/dG3XA67WaVObE72fxERb21eZzk+MCqIp2Qy0o=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|