0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
51 lines
921 B
Nix
51 lines
921 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, mypy
|
|
, pytestCheckHook
|
|
, python-lsp-server
|
|
, pythonOlder
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylsp-mypy";
|
|
version = "0.6.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Richardk2n";
|
|
repo = "pylsp-mypy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-BpYg2noReHFgJ/5iQI09XUWNAN7UdcYgqpZ/IPr17Ao=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
mypy
|
|
python-lsp-server
|
|
toml
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|